[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

/dpt/ - Daily Programming Thread

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 318
Thread images: 52

File: functional programming.jpg (64KB, 440x389px) Image search: [Google]
functional programming.jpg
64KB, 440x389px
What aren't you working on, /g/?

Previous Thread: >>56515662
>>
First for the simplicity of Java.
>>
>>56521698
Please use an anime image next time.
>>
Second for the complexity of Haskell
>>
File: java poogrammer.png (371KB, 800x600px) Image search: [Google]
java poogrammer.png
371KB, 800x600px
>>56521707
>>
>>56521713
Will do
>>
>>56521715
Too slow, just like Hasklel.
>>
>>56521713
no
>>
>people are this upset over a 65 line Ruby program

Lord have mercy
>>
>>56521717
>c babby doesn't know how object equality is evaluated
>>
>>56521781
>java babby can't overload operator==
>>
>>56521781
>Java babby is too stupid for operator overloading that isn't done for you already by daddy Java
>>
File: Screenshot_2016-09-09_17-34-37.png (1MB, 2560x1080px) Image search: [Google]
Screenshot_2016-09-09_17-34-37.png
1MB, 2560x1080px
Tkinter
And trying to get my terminal to stop displaying shitty font.
>>
>>56521802
>>56521805
samefag
>>
>>56521818
>everyone I disagree with is the same delusional individual
>>
>>56521781
>>56521802
>>56521805

None of this would have been an issue if we'd just used monads.
>>
>>56521802
>>56521805
overloading was very intentionally left out of java because so many c++ retard babbies were abusing it, and continue to do so.
>>
>>56521818
>posts made within 4 seconds
>samefag
>>
>>56521871
Or because Java babbies couldn't comprehend it, especially with its fucked up semantics conflating values and references.
>>
>>56521871
Java itself fucking abused operator overloading. String concatenation isn't commutative yet it uses +.
>>
>>56521896
>it uses +
So does C++ and a whole list of other languages.
>>
File: N5BJnrK.png (61KB, 781x389px) Image search: [Google]
N5BJnrK.png
61KB, 781x389px
HAHAHAHAHAHAHAHAAHAHA
>>
>>56521893
>>56521896
>this is your average c++ programmer
You can't make this shit up
>>
>>56521919
I didn't say that it was okay in those languages.
>>
>>56521896
it also made runescape
>>
>>56521818
>>56521925
>>56521931
>this is your average pro-Java "argument"
>>
>>56521717
>>56521818
>>56521919
nice digits
>>
>>56521923
They can read the documentation but can't read intellisense? Or is this some elaborate "haha they'll reply with their password" shit

>>56521951
>all in this thread
nice, fp op is blessed
>>
>>56521923
What's so funny?
That the guy opened an issue for a stackoverflow type question?
>>
>>56521931

That can't be an argument against Java, because Runescape is entertaining.
>>
>>56522173
rsn?
>>
File: Well Okay!.gif (794KB, 200x281px) Image search: [Google]
Well Okay!.gif
794KB, 200x281px
About to start working on a C++ IDE plugin for Atom... I've been told I need to use libclang and libtooling, any good books/sites to learn them?
>>
>>56522231

"no"
>>
File: 1469129719862.png (57KB, 174x139px) Image search: [Google]
1469129719862.png
57KB, 174x139px
>>56521717
This meme is posted so much I'm going to tear it a new anus.

Ok faggots let's start the ball rolling

1. You're creating objects of type "Integer". Those variables (e.g a100, b100) hold the reference to those objects not the value (e.g 100, 1000).
2. With "==" on objects, you're comparing references not values.
3. These objects are initialised with constants. Java optimises during compile time by utilising a dedicated cache for Integers (interning).
4. Only small integers are caches (interned) and the value range is -128 to 127 for 256 possible values.
5. Always use equals() when working with objects for fucks sake.

Why does a1000 != b1000? Because it's not being cached so use equals().
a100 works because a100 and b100 are both pointing to the same thing due to compiler optimisation.

Lession over.
>>
File: java2.png (17KB, 384x298px) Image search: [Google]
java2.png
17KB, 384x298px
>>56522306
this doesnt work either though
>>
I've seen people here bashing C99 a bit, but is there any real reason to not make use of its features?
>>
File: 1311196079155.jpg (82KB, 381x346px) Image search: [Google]
1311196079155.jpg
82KB, 381x346px
>>56522329
>>
File: 1471742580941.jpg (39KB, 600x375px) Image search: [Google]
1471742580941.jpg
39KB, 600x375px
>>56522329
I know you're joking but it's triggering me so stop.
>>
>>56522345
there's nothing wrong with C as far as low high-level languages go
>>
>import Control.Monad.Random
>>Failed to load interface for 'Control.Monad.Random
>>Perhaps you meant Control.Monad.Fail (from base-4.9.0.0)
>>...

What the heck? Why can't I import this? I can import just Control.Monad fine
>>
>>56522345
>>56522443
I meant as opposed to using C89. I've seen people adopt a 'C89 is superior' attitude and I wonder if there's any reason for it.
>>
>>56522345
Too little, too late. C is spartan language, and C99 is mainly a library, not really much of core language thing except stardadizing couple of gnu extensions everyone was using anyway.

That's not enough to get that woo factor for people to get excited.

Bring something radical, like local type inference, maybe obj-c style blocks and ARC. Then we're talking.
>>
>>56522469
Do you have a proper cabal instance?
>>
>>56522520
>>56522469
base is the standard library and doesn't need linking or anything, but otherwise you want cabal to handle stuff like that

set up a cabal project using "cabal init" in a particular directory (it'll ask for the rest of the details)
you can then add the dependency "MonadRandom"


are you using Haskell Platform?
>>
>>56522306
It's completely unnecessary. The only reason such a shitty workaround even exists is to make up for bad design decisions at the foundation of Java, such as conflating objects with reference types, separating objects from primitives, shitty tacked-on generics with type erasure that don't allow primitives, etc.

Even in C++, which has a lot of convoluted and bad design decisions on its own, this is no problem at all, because the roles of int and Integer in Java are delegated neatly to int and int *, respectively. There is no need to create a whole wrapper object for a primitive, because there is no Object class each object is supposed to inherit from, so there's no need to cache them either.
>>
>>56522345

No, unless you are working on some stupid proprietary platform that has outdated compilers which is very rare and niche nowadays. Even C++ supports some of its features, even if it doesn't support most of the syntax and therefore, Visual Studio has now even supported it.

C11 is even default on Clang and GCC now so you should go even further and use that.

C89 pundits are IMO the stupidest form of tech luddites I've seen especially when the C99 and C11 standard hasn't killed your C89 code other than doing the right thing and fixing very vague or undesirable effects and language and the removal of gets() which is inherently unsafe and should rightfully be removed.
>>
>>56522478
Okay, so I'm right to declare and initialize variables in a for loop then?

I'm still learning it, and so far it's not a big deal to just stick with the C89-style, but I don't know if there's any merit to doing so.
>>
File: sad.png (203KB, 704x400px) Image search: [Google]
sad.png
203KB, 704x400px
pub fn binarySearch(targetVal: i32, low: usize, high: usize, arr: &[i32]) -> i32 {
if high < low {
return -1;
}

let mid = (low + ((high - low) / 2)) as usize;

let midVal = *arr.get(mid).unwrap() as i32;

println!("low: {}, high: {}, mid: {}, midVal: {}", low, high, mid, midVal);

if midVal > targetVal {
return binarySearch(targetVal, low, mid - 1, arr);
} else if midVal < targetVal {
return binarySearch(targetVal, mid + 1, high, arr);
} else {
return mid as i32;
}
}


This took me an hour to get.

And I couldn't even solve it myself. I had to look up a pseudo-code solution because my first try was cutting the area every function call

time to neck myself
>>
>>56521717

>>> x=256
>>> print(x is 256)
True
>>> x=257
>>> print(x is 257)
False
>>>

Requesting obligatory macro picture for my collection.
>>
>>56522559
>C11 is even default on Clang and GCC now so you should go even further and use that.
I will do, thanks for the help.
>>
>>56522560
The only merit is obsolete/broken compilers (vc++ and proprietary embedded). If you need to support that, you have to stick with C89, or even subset of it.
>>
File: 1466528608251.jpg (12KB, 474x473px) Image search: [Google]
1466528608251.jpg
12KB, 474x473px
>kind polymorphic type families
>>
How did you learn vim?

How should I learn vim?
>>
>>56522607
int x = 256, y = 256;
std::cout << x == y; // 0
std::cout << *x == *y; // 1
x = 257;
y = 257;
std::cout << x == y; // 0
std::cout << *x == *y; // 1

There, that's what it means to have a properly defined distinction between values and references.
>>
>>56522749
woops, the output should be
std::cout << &x == &y; // 0
std::cout << x == y; // 1
>>
>>56522586

I mean, it's not entirely your own fault. You are also using Rust.
>>
>>56522748
man vimtutor
>>
>>56522765
thank you!
>>
>>56522544
"because the roles of int and Integer in Java are delegated neatly to int and int *, respectively."
I assume you meant C++ not Java.

Java generics are just syntax sugar. Primitives aren't allowed because they caved in for backwards compatibility purposes. I get it, it's shit. They'd have to redesign Java in a significant way to allow primitives types for generics since Sun has an obsession with the Object type.

Java has a lot of patchwork for compatibility reasons but I don't think they should get shit for "conflating objects with reference types". A good teacher in Java will beat the idea of reference vs value and == vs equals() into their students.
>>
Anyone here use FASM or assembly?

I'm making a packer and FASM is a fucking god-send.
>>
File: 1362615363786.png (199KB, 782x421px) Image search: [Google]
1362615363786.png
199KB, 782x421px
>>56521923
>aaaaabbbbbbcccccdddddeeeeefffffggggg
Classic.
>>
>>56522586

Forgot to mention, since you're using Rust, you may want to make use of Option.
>>
Is this true?

https://twitter.com/RReverser/status/768516742251503616
>>
they've finally done it
now you have no excuse

http://sigtbd.csail.mit.edu/pubs/veryconference-paper10.pdf
>>
>>56522824
I mean the roles of the Java types int and Integers are delegated to int and int * in C++.

>A good teacher in Java will beat the idea of reference vs value and == vs equals() into their students.
That's exactly the problem. It is a complete non-issue in C/++, and the only reason it exists is to hide pointers from the user, which has been a large part of the Java sales pitch and the cause of a lot of ugly boilerplate.
>>
File: wewtus jeb.jpg (124KB, 350x350px) Image search: [Google]
wewtus jeb.jpg
124KB, 350x350px
>>56523217
>>
Hey /dpt/, I was wondering what YOU personally think is required for someone to be a employable programmer? As in, what you think is essentially for a non-gaming programmer to know? Is C++ also the best language to focus on for this purpose?
>>
>>56523293
Monads
>>
>>56523293
Be able to learn a new language in a month.
>>
>>56523293
comonads
>>
>>56523293
Understand that a monad is a monoid in the category of endofunctors.
>>
File: le meme snek.png (71KB, 780x530px) Image search: [Google]
le meme snek.png
71KB, 780x530px
>python is so slow and bloated that checking a simple conditional has more overhead than exception handling
>>
What's a good program for me to study to learn good C++ paradigms in action?


>inb4 flamewar
>>
File: 1473442000360.png (407KB, 700x463px) Image search: [Google]
1473442000360.png
407KB, 700x463px
>>56523362
>Pointlessly inefficient
>caring for efficiency in a scripted lang
baaaaka
>>
Why the fuck do people use scripted languages for anything over 200 lines?
>>
>>56523531
prototypes of bigger programs, programs where efficiency doesn't matter at all
>>
>>56523362
>python function calls are "UGLY"
>exception handling is more efficient and "pythonic" than conditionals
>>
>>56523546
My problem is that I need to remember the type of every variable and type of returns and fields of classes etc. When it's big, it's bad.
>>
>>56523362
This is just the same as regular python advice.
"Python libraries should be written in a better language and FFI'd."
>>
JUST FUCK MY PREFLIGHT REQUESTS UP SENPAI
[spoiler]FUCK CORS[/spoiler]
>>
>>56523633
suddenly scripted language == dynamically typed language
>>
>>56523668
90% of the time
>>
>>56523668
Most of them are dynamically typed, and I'm talking about Python mostly
>>
>>56523025
Yeah I dunno what that is. I picked up basic control structures and functions and started fucking around
>>
Whats with the monad meme
>>
>>56523851
effects
>>
>>56523851
basically lua is better than python
>>
>>56523792
>Yeah I dunno what that is.

Then look it up.
>>
did i mention i'm making a packer, anyone wanna know how they work?
>>
>>56523851
composing effects together
it also formalizes the
>take state and value as arguments
>mutate state based on value
>return state
logic of some destructive operators, as in
x = y = 2; // "y = 2" returns the mutated y
cout << x << '=' << y << '\n'; // "cout << x" returns the mutated cout
>>
all paradigms are imperitave
>>
>>56524016
it is imperative that this is not the case
>>
>>56524022
counterexample?
>>
>>56524033
haskell

even declarations aren't imperative
>>
File: 7SH34eq.png (84KB, 251x238px) Image search: [Google]
7SH34eq.png
84KB, 251x238px
https://www.youtube.com/watch?v=vXeF6Uot8pk
>>
>>56524038
show me a haskell program that isn't imperative
>>
File: 1470955843833.png (389KB, 756x678px) Image search: [Google]
1470955843833.png
389KB, 756x678px
>>56524045
>Why can’t girls code? Maybe because they’re girls.
>Obviously that's ridiculous.
>>
>>56524067
main :: IO ()
main = pure ()
>>
>>56524088
you understand that this is like saying void main(void) {} isn't an imperitave program right
>>
>>56523531

>200 lines
Mate, that's not a lot. Scripting languages are pretty great for a lot of tasks that just involve string and list parsing, and those can get up to a few thousand lines before one should really consider using another language for performance reasons. By my guesses, my makemake program will likely take somewhere between 200 and 1000 lines of code, and be heavily I/O bound. It wouldn't get much benefit from being written in C.
>>
>>56524116
within reason it isn't imperative either
>>
>>56524045
Girls are bad at coding but excellent at making infuriating passive aggressive attacks on men that fail to prove anything.
>>
>>56524169
the sad thing the impression this recent push will leave towards the actual female programmers and mathematicians
>>
>>56524045
>tfw all the girls in this video are actresses who cannot code yet are getting a kick out of sticking it to the man
>>
>>56524169

Some girls can program well, just not the "look at me I'm a girl and programming!" types. Too much ego; would fuck with concentration.
>>
excluding security, is there anything wrong with just using md5 to generate a string that can be used as a license key?
>>
>>56524291
yes
>>
>>56524294
but why
>>
>>56524339
http://stackoverflow.com/questions/3002067/how-are-software-license-keys-generated
>>
>>56524246

This is true. I've met a few female programmers who actually know what they're doing. They're not too bothered with the whole "wow look at me!" thing because they're aren't very attractive.
>>
File: 1446595911539.jpg (9KB, 225x225px) Image search: [Google]
1446595911539.jpg
9KB, 225x225px
>>56524418
>thing because they're aren't very attractive.
>>
>>56522825
I use NASM to optimize some functions when the compiler sucks.
>>
>tfw my Systems Software course is literally just "Build a VM and a compiler that compiles a simple language to it, in C" the course
I wanted to learn systems programming :(
Also building a compiler in C nowadays smfh
>>
I just took a C++ programming job. I'm coming from finance and don't have tons of experience. I don't start until october, what's some cool stuff I can do until then to perfect my skillz
>>
>>56524686
Just fap, you've already got the job.
>>
>>56524600

You could learn a fuckton about systems programming just from building a VM. That said, compilers should be their own separate course.
>>
>>56522748
type "emacs -nw" and then forget vim exists
>>
So anyone working on something interesting?
>>
>>56524834
no
>>
>>56521698
>>56524834
I'm working on making my life more miserable as days pass, while always remembering how I could have had a bright future, and could have fucked the prettiest girls.
depression and a shitty social environment make a terrible combination.
>>
>>56524870
Fuck off, emo. Nobody thinks you're deep or cool for talking about your depression.
>>
>>56524891
OK, m8. anyway, let's cry together this friday night
>>
So, now that I'm using VHDL, I don't actually hate it. The end.

/blog
>>
File: 1471215772936.jpg (37KB, 279x500px) Image search: [Google]
1471215772936.jpg
37KB, 279x500px
>>56523881
Hey man. Word around Oz is that you have a big cock. I have a big cock too. Perhaps we can rub them together sometime?

But seriously, what does GTP stand for? In the back of my mind I remember "One slow gtp jujube" but what is the gtp?
>>
>>56524916
Sorry for being rude. People talking about depression rub me the wrong way. Not when they're asking for help, but when they simply whine about it. Still, I got triggered and was unnecessarily rude.
>>
this icon looks oddly similar to the indian flag
>>
>>56524834
packer/crypter
>>
>>56524891
>emo
Shit I haven't heard that word since High School..

Wait... Anon you aren't in high school are you?
>>
>>56524961
it looks like a plaster on an infected spot

the perfect logo for C#
>>
>>56521698
Adding SVG support for my image viewer. Also, adding a checkerboard background for images that have alpha channels.
>>
File: 255px-Flag_of_India.svg.png (5KB, 255x170px) Image search: [Google]
255px-Flag_of_India.svg.png
5KB, 255x170px
>>56524961
for comparison
>>
File: the-big-bang-theory.jpg (113KB, 540x720px) Image search: [Google]
the-big-bang-theory.jpg
113KB, 540x720px
>mfw i build websites on wordpress with a little bit of extra coding in 4hours and charge 1500 per website while dumb fuck coders write codes which takes them 6 months and only charge 50 for it
>>
>>56525055
Nobody charges $50 for 6 months of work.
>>
>>56525055
>coders
Nice try, bait harder next time nigger.
>>
File: pontiac-grand-prix-gtp-07.jpg (103KB, 800x600px) Image search: [Google]
pontiac-grand-prix-gtp-07.jpg
103KB, 800x600px
>>56524934
>jujube

It's funny, because that's what I always remembered when I thought about my shitcode, too.

In any case, a GTP is this.
>>
>>56522345
The changes and features in C99 make ANSI C obsolete, especially since stuff like intermingled code/declarations, single line comments, and inline functions were already compiler extensions in GCC and Clang. I don't find I need C11 though, maybe if library implementers end up implementing threads.h more widely I'd use it.

This doesn't mean you can't use ANSI C, It's good to write code that uses as little standards as possible, but the syntactic changes that you already use with extensions you might as well be using C99
>>
>>56523851
Endofunctors, etc
>>
>>56523244
>That's exactly the problem. It is a complete non-issue in C/++, and the only reason it exists is to hide pointers from the user, which has been a large part of the Java sales pitch and the cause of a lot of ugly boilerplate
This is really the most ridiculous part about classes/people that teach Java. They introduce it like C++ without pointers and memory management (the concept is nice but the execution...), then when you are working on something semi serious and not a merge sort you realize you actually have to deal with pointers in Java. In fact, you work with more pointers in Java than you do in C++ because only primitives and pointers to objects are stack allocated in Java, and 99% of using the language is working with objects. I know that HotSpot sometimes stack allocates objects but it only does so if it's analysed that the object doesn't leave a function.

And the point is, I've had the (mis)fortune of discovering how pointers work in Java, but CS grad who only did assignments and was told by professors that java doesn't have pointers is going to fail those interview questions.
>>
>enable -pedantic
>10,000 compiler warnings
>mixed code and declarations forbidden in C90
>specific index array initializers forbidden in C90
>variable length arrays are forbidden
why do people like C89 again?
>>
>>56521698
Fixing a C library I wrote to handle stdout redirection to files.
>>
>>56525515
you mean like piping
?
Sorry I just can't comprehend the use of such a library without really getting what you mean
>>
>>56525486
>why do people like C89 again?

Because it's what they know.
>>
>>56525639
Why haven't you switched to Haskell yet?
>>
>>56525654
Nobody actually uses Haskell
>>
>>56525654
THERE

WILL

NEVER

BE

HASKELL

EMPLOYABILITY
>>
>>56525664
>>56525671
I didn't ask either of you
>>
>>56524045
Is it ironic? Please be ironic.
>>
File: wha.jpg (24KB, 457x86px) Image search: [Google]
wha.jpg
24KB, 457x86px
hmmmm
>>
>>56525654

I'm not smart enough for monads.
>>
>>56525744
looks like your input handler is shit

>>56525811
me neither dude, learning hasklel right now and I feel like I need to slow it down, it gets complicated quickly
>>
>>56525876
Haha all it does is scramble your input and feed it back
>>
What should I try to make in c++ to test my mettle in actual problem solving programming?
>>
File: 1434319208815.gif (89KB, 256x256px) Image search: [Google]
1434319208815.gif
89KB, 256x256px
>>56525938
>C++
>actual problem solving
tip top kek
>>
>>56525811

Hey, what are you working on right now?
>>
>>56525938
Go through the bjarne bible and do all the exercises
>>
File: ProgrammingChallenges, 4.0 (HD).png (2MB, 3840x2160px) Image search: [Google]
ProgrammingChallenges, 4.0 (HD).png
2MB, 3840x2160px
Just finished the Eight Queens Problem Solver!

But it kind of doesn't work when I do 9 + rows and I have no idea why (it's always about twenty off, and every time I run it I get a different number of unique solutions), but it works for n=8 so I'll take my losses.

>>56525938
>>
>>56526013
Rolling for easy
>>
>>56526081
Why is this even an option...?
>>
>>56526013
rol
>>
Anyone experienced with n-body simulations? I'm doing a gravity sim.
When my objects clump together, they seem to gain velocity on their own when they shouldn't, is this normal? what am I doing wrong?
>>
File: bool.png (54KB, 379x815px) Image search: [Google]
bool.png
54KB, 379x815px
Hey /dpt/,

I'm currently stuck with this exercise, I don't really get it.
I don't know what I'm supposed to do when it says that "not" is evaluated first, then and and then or.

Can anyone explain it in their own words or has a link that explains it well?
>>
This started happening recently. Writing C# using Visual Studio, if I do something like this:
var list = new List<ExampleClass>();
// then I want to type
list.Add(new ExampleClass());
// but THE MOMENT I close the ExampleClass bracket, Visual Studio ALWAYS changes my input to
list.Add(new global::ExampleClass());

How do I fix this? I don't want the extraneous global namespace bullshit. Deleting it with backspace EVERY TIME is a huge pain in the ass.
>>
>>56526209
order of operations

like

a & !b


is like

a & (!b)
>>
>>56526199
Yeah I did one, but without clumping. Basically if two bodies' centers came extremely close, one of them would fly off at an extreme velocity.
>>
>>56526211
1. Stop using VS
2. Stop using auto-complete
>>
>>56526227
I have that same problem, I solved it be softening gravity a bit, but I think it's still causing my objects to gain velocity.
>>
>>56526226
I'm an absolute beginner, could you explain it in words please and not code? Because I can't really take anything from what you posted.
>>
>>56526209
It means that you should interpret an expression such as
True or not False and False
by first putting parentheses around all terms "not X"; then around all terms "X and Y"; and finally around all terms "X or Y".

This yields:
"True or not False and False" =>
"True or (not False) and False" =>
"True or ((not False) and False)" =>
"(True or ((not False) and False))"

As the exercise claims, this last expression yields True (work it out).
>>
>>56526249
it's like in math, if you have a + b * c you evaluate b * c first and then add a
>>
>>56526256
Continued:

This is similar to how in arithmetic, you put imaginary parentheses around multiplications before doing so around additions:

"1 + 2 * 3 + 4 * 5" =>
"1 + (2 * 3) + (4 * 5)" =>
"(1 + (2 * 3) + (4 * 5))"

This is (part of) the PEMDAS rule. >>56526209 describes something similar for the logical operators NOT / AND / OR.
>>
>>56526242
You have to solve collision somehow. One way (which I think is a pretty clever way) is to have the bigger object "absorb" the smaller, i.e. bigger.mass += smaller.mass, and then compute the new velocity using the force of the collision
>>
File: fragzeichenidol.jpg (174KB, 640x640px) Image search: [Google]
fragzeichenidol.jpg
174KB, 640x640px
can somebody redbull me on why people thought [spoiler](syntax-rules)[/spoiler] was a good idea in Scheme instead of just using tried-and-true Lisp macros?

It's cute and clever (like Haskell's built-in pattern matching), but it all falls apart the moment you have to do anything non-trivial

hygiene is a meme and is perfectly obtainable with standard macros anyway. plus you don't always want it in the first place
>>
>>56526256
>>56526259
Ahhhh, now I get it. I didn't look at it like in a math way, which made it seem illogical.
Thanks guys.
>>
>>56526283
I thought of that, but I specifically wanted it to clump so I could smash it apart with collisions.
But I just can't seem to get the objects to behave properly when touching each other. there must be a solution to this.
If not, maybe I'll just have to go with eating the smaller object.
>>
>>56526297
Check out syntax-case
>>
>>56526297
>instead of just using tried-and-true Lisp macros?
Because they are a pain in the ass to use. https://www.gnu.org/software/guile/manual/html_node/Defmacros.html#Defmacros
>>
>>56525955

Nothing at the moment.
>>
>using lisp
>>
>>56526323
honestly I feel really bad for people who don't use Lisp

they unironically think computer science is about dancing in front of a machine and making it follow your moves

they will never see the forest instead of the trees
>>
File: screeny.webm (1MB, 1366x768px) Image search: [Google]
screeny.webm
1MB, 1366x768px
working on an editor for box2d
>>
>>56526344
honestly I feel really bad about people who don't use C

they unironically think programming is about circlejerking over meaningless academic bullshit and abusing advances in hardware to write slow "but elegant!!!" code

they will never program something that takes full advantage of their CPU
>>
Hello sorry for bothering with this question.

objc[20140]: Class SFApplication is implemented in both /Library/Frameworks/sfml-window.framework/Versions/2.4.0/sfml-window and /usr/local/lib/libsfml-window.2.4.dylib. One of the two will be used. Which one is undefined.

Which one should I delete, the framework, or the dylib? I want this error to go away but I want to keep the one that is most sensible.
>>
>>56526361
>C
>taking full advantages of the CPU
Chose one and only one
>>
>>56526361
I use both nerd.

It's common knowledge that C and Lisp are the only languages you need to know.

The difference between me and you is that you can only think in mechanical terms. You are forever relegated to being an imperative monkey.
>>
>>56526412
name a language with faster memory allocation
>>
File: 1450201444830.jpg (51KB, 907x718px) Image search: [Google]
1450201444830.jpg
51KB, 907x718px
>>56526431
Memory allocation is just a syscall.
>>
>>56526440
t. shitter who doesn't need to know anything about segfaults
>>
File: 1459269465745.jpg (19KB, 262x274px) Image search: [Google]
1459269465745.jpg
19KB, 262x274px
>>56526462
You shouldn't post if you don't know what you are talking about.
>>
>>56526361
>lisp
>slow
>>
>>56526472
>>56526440
>avatarpedo
>not knowing about the dangers of flippant memory allocation
>>
File: smug aura.png (204KB, 500x374px) Image search: [Google]
smug aura.png
204KB, 500x374px
>>56526485
>he's triggered by anime girls
>>
File: saruman.jpg (65KB, 800x470px) Image search: [Google]
saruman.jpg
65KB, 800x470px
I just came into this thread to say;
RIP Christopher Lee
>>
>>56526492
https://www.youtube.com/watch?v=KaqC5FnvAEc :p
>>
>>56526361
>abusing advances in hardware
You do know what Lisp machines were, do you?
>>
What's it called when an IDE gives descriptions for what functions do (like pressing ctrl-space in BlueJ), and how can I get it to work for OpenGL in CodeBlocks?

Seeing things like "wcex.lpfnWndProc" really isn't nice.
>>
File: wat.png (61KB, 1113x674px) Image search: [Google]
wat.png
61KB, 1113x674px
Guys, I gotta ask once again...

I have no idea how to solve this. It's also adding to my confusion that I haven't learned in the course yet what "return" and "def" means and what it does specifically.

I'm sure the answer is in "greater_less_equal_5(answer)" but I don't know what it is.
How do I check if "answer" is greater than 5?
>>
I'm bored. What's a fun thing to code?
>>
>>56526638
You could help an absolute noob learn Python... >>56526615
>>
>tfw learning nonmeme language from author i've never heard of
>anxiety grips me and worry i'm learning bad programming practices
>want to ask /dpt/ if the book is good
>want to ask /dpt/ what authors are best and/or for an infographic on what books cover certain topics/languages best
>know i'll get made fun of for being a noobie wannabe programmer trying to learn
>continue flipping burgers at wendy's
>>
>>56526615
Don't worry about all the stuff around the if statements yet. It will be explained.
Use < > and ==
So for example: if answer > 5:
Would execute the following code if that statement is true.
>>
>>56526615
def greater_less_equal_5(answer):
return answer - 5;
>>
>>56526664
God damnit, it was that easy. Thanks man.
>>
>>56526615
I'm not sure what "def" means, since I've never used Python, but it looks like it's the Python equivalent of a function.

print greater_less_equal(4) will run that function, which is everything from lines 1 to 7.

For the first "if" you're checking if "answer" (answer will be 4 when you run "print greater_less_equal_5(4)" ) is more than 5.
You write that as "if answer > 5".
"return 1" will only run if "answer > 5" is true.
What "return" does is it finishes the function and whatever called the function receives what you returned.

So say that you run "print greater_less_equal_5(4)".

Is 4 greater than 5?
No, so return 1 isn't run.

Is 4 less than 5? (line 4 would be "elif 4 < 5")
Yes, so return -1 is run, and the function finishes.

Now that means that "print greater_less_equal_5(4)" is equivalent to "print -1" because that's what that function with that input returns.
>>
What the fuck is this mandatory usage of spaces in Python? How is this a real language?
>>
>>56526722
they wanted python to resemble psuedocode like from a dry algo textbook
and so they made it look like psuedocode, down to the lack of semicolons and significant whitespace

also, it's not a real language, it's just a scripting language
>>
>>56526722
>he fell for the python meme
>>
>tfw can make own programs
>but if it's someone else's code I can't debug it worth fuck
>literally feels like an alien planet even though i'm amiliar with what's happening
>retarded formatting fucking everywhere triggers my dyslexia and autism

is there a term for this?
>>
>>56526475
>Look ma, my synthetic benchmarks!
>>56526554
>muh meme machines that were only invented to con the government out of money
>>
>>56526742
>they
it was made by one guy, by saying 'they' you make it sound more legit than it actually is
>>
>>56526013
rolling
>>
>>56526752
Dyslexia and Autism
>>
>>56526475
What's a good book/author on lisp for a beginner?
>>
>>56526764
Land of Lisp
>>
>>56526756
What's not legit about python?
It's been around 26 years and it's a mature scripting language that lets "coder" weenies feel like real programmers by importing premade libraries for every possible use case.
>>
>>56526778
https://www.youtube.com/watch?v=HM1Zb3xmvMc

This guy's autism entertains me, sold
>>
>>56526781
just because it's popular and "works" doesn't mean it isn't shit
>>
>>56526475
if you used real benchmarks they would prove that only c/c++ is fast
>>
>>56526781
Python is pretty much an imaginary fake language nobody has ever used at work
>>
>>56526902
You can make more money writing python than writing C++
>>
>>56526811
>>56526902
not the guy you replied to, but these sound like things autistic basement dwellers would say. i use python at work. it's not used in heavily performance-oriented applications, but for mocking up or prototyping something, i honestly can't imagine what else you would suggest using. and it's performant enough that for the operations that aren't that resource-intensive in the first place, you can just leave that code as it is. rewrite what you need in C and hook into it.

people who work just use whatever gets the work done. your arrogant bullshit just makes you look like a tool.
>>
>>56526919
I'm a tool? You're the one telling lies on the internet to shill your stillborn pet meme language from the 80s. The only people who think Python is usable for real work are academics who have never left the lab.
>>
>>56526953
Isn't reddit's backend completely written in python?
>>
>>56526991
I think they changed it to Go or something, I'm not sure.
>>
>>56526953
this definitely reads like someone who's employed, and not a child having a temper tantrum. definitely.
>>
>>56526995
>>56526991
nvm
https://github.com/reddit/reddit
>>
>>56526991
does that explain why reddit crashes so often?
>>
  int *a = 10;
printf("%d\n", a);


This prints 10. Why? What is 'a' pointing to? I thought pointers pointed at memory addresses/variables. Where does this '10' reside?
>>
File: bad_man_this_feels.jpg (25KB, 314x306px) Image search: [Google]
bad_man_this_feels.jpg
25KB, 314x306px
>fired up my game stuff in RenderDoc
>capture one frame
>so many drawcalls
>so inefficient shaders
>everything's just so poorly done

I knew it was bad, but I had no idea it was THAT bad. I've set aside everything else on my todo list and rewriting the renderer is now the only thing I care about.

It doesn't help that just yesterday I read an article about how the new DOOM renders its frames. One frame took 1331 drawcalls and 132 textures. I'm rendering maybe 1/1000th of what DOOM renders, yet I have more drawcalls and crappiness going on.
>>
>>56527046
one day you can be like mdickie anon
>>
>>56527040
a is a pointer to an int, the value of a is 10, meaning that the address that a is pointing to is 10.
>>
>>56526991
does that explain why they keep hemorrhaging massive amounts of money due to server expenses?
>>
>>56527070
So it's not pointing to an integer with a value of 10? It's pointing to an address which is 10. Interesting.
>>
File: reddit_is_that_way.jpg (94KB, 478x487px) Image search: [Google]
reddit_is_that_way.jpg
94KB, 478x487px
>>56527037
Reddit is that way <---
>>
>grills cant code

Guarantee this grill can code better than you

https://youtu.be/8I0BmT1ccuw
>>
>>56527046
are you using an engine or something? how could you not know it was this bad?
>>
>>56527090
Exactly.
>>
>>56527097
>professor
>with coloured hair
Why the hell?
>>
>>56527097
>meme science class
>>
>>56527112
it's the current year
>>
>>56527046
At least you do care about it, instead of doing it like most programmers and throw hardware at your problem, until you can't notice it anymore.
Good for you, people are proud.
>>
>>56527116
Does that mean that I can crossdress in my CS class?
>>
>>56527094
You always know when reddit is down because people come here and make threads about it.
>>
>>56527131
yes, i see it all the time
pretty much all the women in my upper level CS courses are trannies.
>>
>>56527100
It's a homemade engine. I'm not batching very efficiently. There's too many textures, sometimes I need three textures per triangle and the textures change too often. I've tried texture atlases and array textures, but nothing seems to really reduce the number of state changes. And that's for the opaque geometry; when I start depth-sorting transparent stuff, it gets even worse.

It seems I'm not really a graphics programmer :-(
>>
>>56527097
>people actually pay hundreds of thousands of dollars for MIT courses
>to be taught pseudocode by a frog lady

man that's gonna suck when these "ivy league" school degrees are worthless thanks to the current and previous generation of trash it's produced coming to roost
>>
>>56527147
Are they cute? Like in animes?
Can I crossdress after I have appeared as male?
>>
>>56526953
>shill your stillborn pet meme language
Its like you're writing rap lyrics with buzz words
>>
>>56527192
get memed on son
>>
>>56521812
>Sublime Text
>Python
>Skype Icon

kys
>>
>>56527166
they're cute in a moe "trying my hardest to be a girl" kinda way, but i'm sure that's not what they're going for.
You can do pretty much whatever you want if it makes you happy.
Be the best crossdressing anime you can be.
>>
>>56527166
>Are they cute? Like in animes?
Of course not you triple faggot. This is how autistic trannies look in real life:
https://encyclopediadramatica.se/Trolling_Induced_Transsexuality_Syndrome
>>
>>56527223
> linking to encyclopedia dramatica
> in 2016
kek
>>
>>56527223
>angry ginger became a tranny
how in the fuck
>>
File: 1472413714359.png (756KB, 2022x1450px) Image search: [Google]
1472413714359.png
756KB, 2022x1450px
>>56527223
But I want to be like Hime ;_;
>>
File: le smug anime jesus.jpg (17KB, 539x398px) Image search: [Google]
le smug anime jesus.jpg
17KB, 539x398px
>>56527223
You seem to be frustrated.
>>
File: 1464525031761.jpg (150KB, 1282x1901px) Image search: [Google]
1464525031761.jpg
150KB, 1282x1901px
>>56523322
lmao are you a retard? if you already know even just one language, picking up another should take at most a week, for shit like Ruby it takes a fucking weekend
>>
File: horror.jpg (8KB, 160x255px) Image search: [Google]
horror.jpg
8KB, 160x255px
>>56527252
It'll never happen.
>>
>>56527250
this
>>
>>56527157
MIT is not Ivy League, never was.
MIT excels in electrical engineering, their compsci is lacking these days. So if you want Robotics or circuit prototyping you go to MIT. If you want computer science you go to CMU.

If you want to argue female profs, the best on earth is Tanja Lange. Her and Daniel Bernstein (djb) are literally the only 2 people on earth qualified to talk about post quantum crypto.

As for politics, because everybody loves it, Applebaum who doesn't have a university degree and was kicked out of Tor by SJWs is a PhD student of Tanja Lange now in EC crypto and quantum crypto. Yes, you can apply to be a PhD if you have the experience and not the undergrad my fellow anon
>>
File: cute little girl.png (553KB, 510x537px) Image search: [Google]
cute little girl.png
553KB, 510x537px
>>56527252
Don't listen to that insecure bigot, You can be anything you feel you are deep inside. That is, until you kill yourself due to estrogen-induced depression.
>>
>>56527290
What the hell is wrong with her left eye?
>>
>>56527223
Is transgenderism becoming the new ADHD/Autism?
Or is it all related?

It's so over-diagnosed and literally any 20-something scrawny white kid with a personality disorder hand is now led to believe that becoming a girl is a life upgrade.
>>
>>56527252

>I want to be like Hime
You want to be a boy who cross-dresses purely so that a couple of high school girls can do a poor job of defending him from debt collectors and perverts?
>>
>>56527416
did you even read the manga?
>>
>>56527426
Is the story at the manga different than the one in the anime?

>>56527416
>purely so that a couple of high school girls can do a poor job of defending him from debt collectors and perverts
No, they protect him from debt collectors but in return he has to crossdress for their own amusement.
>>
File: Poltards.jpg (81KB, 960x692px) Image search: [Google]
Poltards.jpg
81KB, 960x692px
>>56527368
>Appelbaum
Oh boy, now poltards will come out of the woodwork saying he only got in because of Jewish privilege. That's what they all say when Jewish people are more successful than them. They're no different than black people blaming their shortcomings on whites.
>>
File: 1442039798567.png (6KB, 273x115px) Image search: [Google]
1442039798567.png
6KB, 273x115px
>>56526615

def greater_less_equal(answer):
if answer > 5:
return 1
elif answer < 5:
return -1


def is a keyword you use to define a function
like so:

def function(parameters):
print(paremeters)


^ that's a function that just prints out what you put in as an argument, so to call it you would just use the name of the function("function") followed by "()" in which you put your argument.
so if you called it with:

function('g is autistic')


it would just print out 'g is autistic on the screen'


'return' is used when you want the function to actually return something when called.
As in, it just gives you some value back and you can do things with that value.

def function(x):
return x


just returns whatever value x has

to compare things you just use:
>
<
>=
<=

and equal would be == instead of just one =
one = is assignment, when you're giving a value to a variable like x = 5
two == is when you want to compare if two things are of the same value

x = 5
y = 5
if x == y:
print('they're equal')


I think that covers all you asked. Glad I could help.
>>
File: shekel grabbler.png (132KB, 432x600px) Image search: [Google]
shekel grabbler.png
132KB, 432x600px
>>56527416
>>56527432
>debt collectors
>>
>>56527368
>was kicked out of Tor by SJWs
What happened?
>>
>>56527432
well for starters, the anime only covers the first 6 chapters. The rape scene (both of them) was just a throwaway gag that happened early in the manga and wasn't made out to be forced drama shit like in the anime

>>56527432
but he ends up liking it tho
>>
>>56527444
Somewhat related, if anybody here wants a master class in modern crypto theory/post quantum crypto/crypto analysis then read djb's posts to the IETF crypto working group.

Every single day he absolutely blasts the idiot engineers who are trying to sabotage the IETF standards. He responds with 10 page fully proofed arguments on why such-and-such algorithm or mode is totally flawed, and a dozen different ways to flaw them.

His presentation on cryptography for the black hat examining how to sabotage ECC is awesome. His chacha20 libraries are the only thing since the mid 90s that has been new in cryptography because of sabotage by governments.

Finally, him and Tanja give talks continually about the state of post quantum crypto. They are extremely low level talks, meaning full of math proofs but in the end they explain how nobody is ready for the post quantum world, and how him and Larange (and applebaum) are the only 3 people on this ENTIRE PLANET who are at least trying to side channel the McEliece cryptosystem to see if it can survive in a post quantum world.

Btw, that world is getting closer by the day, check MIT's 'technology review' news site and both IBM and Google are ready to release their fully quantum systems in 2017 so they claim.

Also this little tidbit: https://www.technologyreview.com/s/602304/bill-gates-doubles-his-bet-on-wiping-out-mosquitoes-with-gene-editing/

Gates is in the picture too, developing gene editing algorithms for CRISPR/CaS9.. what work on a quantum computer. Be afraid my friends
>>
>>56527466
To be honest nobody knows what happened.

Some other (lesser) Tor devs accused Applebaum of rape, no formal charges were ever tabled or anything. He said nothing about this and abruptly left Tor to become a PhD student under Larange, who as I said before is (besides djb) literally the only 2 people in this entire solar system who are qualified to side channel/timing attack quantum crypto ciphers. Applebaum wrote some 'off to go do something.

I don't care/know and all Tor board has been replaced completely
>>
>>56527528
>all Tor board has been replaced completely
Could this mean that this was intentional so they could fill tor with backdoors?
>>
File: kosher tor-ah.png (84KB, 1060x850px) Image search: [Google]
kosher tor-ah.png
84KB, 1060x850px
>>56527528
>I don't care/know and all Tor board has been replaced completely
>>
File: 1444888955300.jpg (2MB, 2000x2228px) Image search: [Google]
1444888955300.jpg
2MB, 2000x2228px
>>56527546
only natural
>>
>>56527368
Did you study at CMU? I would like to go there for my MSci or Phd however I do not know how difficult it is to get accepted.
>>
File: 1472585785634.jpg (51KB, 640x511px) Image search: [Google]
1472585785634.jpg
51KB, 640x511px
>>56527555
wait, so jews are against other jews and you're wrong if you side with the side you agree with just because they're jews EVEN THOUGH they are acting against those other jews whose side you don't like?

That doesn't make any logical sense you racist fuck. You just jews even when they are for the same things as you are. That's beyond funny.

Sent from my Synagogue
>>
>>56527546
Schneier is a lifelong defender of civil liberties and anti spying, also a major contrib to the crypto world since the 80s

btw Schneier and Niels Ferguson's (Dutch cryptographer) submission to SHA3 was probably the best design.

It was a block crypto device (Threefish + Skein 1024) but it allowed for tweakable block ciphers.

The major problem with XTS, is that it is malleable, and has no formal proof of correctness in fact Rogaway proved that all the claims XTS makes for security are invalid (and it's the most widely used mode for block crypto). Schneier and Ferguson solved this by creating a tweak, so all the attacks on XTS failed to work and a formal proof could be made of block crypto.

Anyway, Schneier being on the Tor board is a good thing regardless of Jew conspiracy theories
>>
>>56527426
I've read the first volume thus far.

>>56527432
That's pretty much the same thing. He crossdresses not out of a love of crossdressing, but in exchange for a service.

>>56527463
Objectively the worst people out there. There's some debt collectors trying to collect on my dad's debt, and they keep calling me asking where he is. They also keep mispronouncing his name. I'm thinking if they ever call me again, I'm going to send them a C&D telling them to stop inquiring about his debts, spelling his name as they pronounced it, rather than as it is actually spelled. If they call me again after that, I'm going to sue them outright.

>>56527474
>he ends up liking it
Stockholm syndrome and acquired tastes run on a similar principle, which is also what is going on here. It is difficult for the mind to dislike that which is familiar.
>>
>>56527267
maybe to get a pajeet-tier understanding of the syntax and such but not to be really good at it and know all the ins and outs of the language
>>
>>56527568
I self study there since 4 years ago, since all their courses are open.

I specialize in database systems currently, they have an excellent grad course @ CMU for the current state of modern, in memory dbms http://15721.courses.cs.cmu.edu/spring2016/ all lectures are here: https://www.youtube.com/playlist?list=PLSE8ODhjZXjbisIGOepfnlbfxeH7TW-8O

Depends what kind of PhD you want on where you should go. If it's anything to do with software verification, or databases you absolutely go to CMU for grad school. If it's engineering/machine learning/robotics you go to MIT ect
>>
>>56527616
>but in exchange for a service
No, he crossdresses because he is blackmailed, true femdom :3

>There's some debt collectors trying to collect on my dad's debt, and they keep calling me asking where he is. They also keep mispronouncing his name. I'm thinking if they ever call me again, I'm going to send them a C&D telling them to stop inquiring about his debts, spelling his name as they pronounced it, rather than as it is actually spelled. If they call me again after that, I'm going to sue them outright.
Have you seen https://en.wikipedia.org/wiki/Collection_agency#United_States_2 ? I would record the phone call (and inform them of that of course), if they said anything weird I would sue them and use the recording as a proof.
>>
>>56527616
>There's some debt collectors trying to collect on my dad's debt

Maybe he shouldn't have collected massive debt then?

I know you're autistic and live in liberal fantasyland aka college, but in the real world, there exists this thing called "personal responsibility", and if you borrow people's money and refuse to pay it back, then those people have every right to use every legal avenue of debt collection available to them.
>>
>>56527637
>software verification
Such as formal proofs, dependent type etc? I would really be interested on that and on anything that concerns programming languages, functional programming and optimisation really.
>>
>>56527639

Much as it feels like blackmail, the girls don't control the debt collectors, so it is a service, not a threat.

Also, yes, I have read up on some of those laws. Hence, why I plan to send a C&D.
>>
>>56527663
Debt collectors buy the debt for next to nothing, usually 1-6%.

You call the people harassing you and offer to pay them 5%. Take it or leave it. They get their "investment" back from buying your debt but don't get any jew gold out of it collecting from you.

They do all sorts of criminal action to defeat the laws on 7+ year debt in order to keep it constantly destroying your credit rating.

tl;dr fuck debt
>>
>>56527616
>I've read the first volume thus far.

There's a character that derives sexual gratification from being stepped on by kaguya.
Which one is it?
>>
>>56527555
Nice trips.
RMS is atheist, btw
>>
>>56527555
this image keeps crashing the chrome tab wtf
>>
>>56527688
moral of the story: don't accept more debt than you can pay back

or are you one of those retards who makes only the minimum payment on everything because he thinks credit is cheap.
>>
>>56527670
Such as SAT solvers, Partial order reduction, SPIN model checkers, SMV, Symbolic Model Checking, Binary Decision diagrams, Coq, proving entire programs in Coq and other methods, ect.

If you like this work you want to go to CMU, as every course even undergrad is full of formally verifying software

Their very first programming intro course, 15-122 is all using invariants and contracts to test correctness of C programs. https://www.cs.cmu.edu/~rjsimmon/15122-s16/schedule.html (this guy also teaches an awesome grad student compiler class in ML who's lectures are open too).


All their algorithms courses are parallel too, using functional languages since the future is multicore processors.
>>
>>56526902
Python has been steadily replacing NCL and IDL as the primary tool for analysing earth observation science data. It's free (no shitty IDL license required) and has some excellent libraries to do the tedious stuff, such as h5py or netCDF4.

People at JPL have mostly ditched IDL for Python as well, NASA is supporting the development of some Python libraries with a small bucket of money (e.g. matplotlib).

It's a very efficient tool, but you can't expect people here to know anything about scientific applications and workflows, since most of them are too busy working on that online-shopping system #598123.
>>
>>56527670
btw Moxie Marlinspike (of signal/textsecure fame) is also a CMU grad.

most of his early SSL stripping and what not came from all the formal verification classes he took to fuck with functions and manipulate them to do his evil bidding.
>>
>>56527736
I really like this, thank you anon. I will definitely keep track on it for the future.
>>
>>56527743
There's also tensorflow library by google which is pretty much the machine learning library out there and it has a python DSL (guts are written in C++)

Most scientific computing is entirely done in Python now, including Sagemath (Sage is a 'python like syntax').

I absolutely hate Python but there's no question every single scientist is using it as I write this (and still using Fortran, because it's math libraries are free compared to Wolfram.. but Sagemath is catching up (in 20 years))
>>
>>56527767
They are all open for the most part, you can see videos or lectures http://coursecatalog.web.cmu.edu/schoolofcomputerscience/

Just don't ever post the assignments or anything from the courses as they use automatic software to check for students cheating and will close everything if they find your git full of answers
>>
>>56527743
>>56527772
scripting != programming
>>
>>56527663

My dad has his own issues. I'm not concerned with them. What I am concerned with is that the collectors are contacting me. Aside from the fact that my dad never listed me as a contact number, there is the fact that I explicitly told them a few times, "never call this number again," and they'll call back a couple of months later. I do not like getting phone calls at 11 in the morning when I have gone to bed at 7 in the morning. In fact, I do not like receiving calls from anyone for any reason if they do not have business with me.

I know you may be retarded, but there's these things called laws in the United States. One of those laws is the Fair Trade Debt Collection Practices Act. It details what is and isn't acceptable with regards to debt collection. One of those things is harassing phone calls. If I tell you, "don't call me again," you can only call me again for two reasons. One is to inform me that you won't call me again, the other is to tell me that you're going to sue me.

You can bitch on about personal responsibility all you want, but I would like to point out that this isn't my debt and that I should not have to so much as be discomforted for someone else's problem. If you send me harassing calls over someone else's debt, not only will I not help you, but I will seek ways to make you regret involving me with another person's problems. My time is worth money, and no one is entitled to it without a contract.

>>56527690

I am very, VERY bad with names, mate.
>>
>>56527794
Call it 'typey-typey-number-writey' for all I care. It's orders of magnitude more efficient that doing the same tasks in FORTRAN or C/C++.
>>
>>56527809
Do they say bad and harassing things to you?

>In fact, I do not like receiving calls from anyone for any reason if they do not have business with me.
>I am very, VERY bad with names, mate.
You are like me ;_;
>>
>>56527828
>the same tasks
those use cases are irrelevant for >99% of programmers
>>
>>56527828
Depends what you are doing, as Fortran has existing libraries from the 60s that are 100% free for almost any scientific field which is why it's still heavily in use.

In comparison you would have to write the same single library in Python which would take you about a year to complete. Fortran has hundreds of these kinds of libraries, it will take Python about 40 years to catch up.

But anything else yes it would be an hour's work to program in Python and about 2-3 days in C to do the same thing. Abstractions and shit
>>
>>56527836

They do not say anything threatening. If they did, I'd have called the police in the city they were located, and requested the employee who called me be thrown into a jail cell. My problem is the phone call was made at all. If the phone rings even once from them, despite being told "don't do it ever again," that is grounds for a civil suit.
>>
>>56527792
Do you have any email or frequent any irc so I could talk with you if I have any questions? I-if you don't mind of course.
>>
>>56527872
btw what I mean about Fortan libraries is stuff like Finite Automata, experimental CPU simulators of different arch, and Nuclear research libraries that entire teams worked on, then formally verified, in the late 1960s and 70s that cost nothing to use, whereas Mathematica (Wolfram) would cost hundreds of thousands for a major research lab to use. Sagemath and Python will eventually get to that state but probably not in our lifetimes.
>>
>>56527900
Much more than that is written in FORTRAN. We have a bunch of FORTRAN codes that we use on a daily basis, simply because most scientists were pressured into using FORTRAN due to 'muh performance', ignoring the fact that it's an utter nightmare to maintain and expand.

And nowadays it would just cost too much to re-write them, so most of those 'legacy' codes are just not touched at all..
>>
hey /g/, can we get a new Pro/g/ramming Challenges version?
>>
File: syntaax error.png (105KB, 1920x797px) Image search: [Google]
syntaax error.png
105KB, 1920x797px
Hey /dpt/,

it's me once again, having trouble with Python.
What did I do wrong here? It says on line 16 there is a syntax error but I don't see anything off?
if days >= 7

seems completely normal to me.
>>
>>56527993
:
>>
>>56528006
Ooooh, fugg. You're right, sorry.
>>
>>56527993
need colon at the end
if days >= 7:
>>
New thread: >>56528017
>>
>>56527886
I would but I literally don't have time. I follow this guy's blog, where i schedule every hour of my day to a T http://calnewport.com/blog/2008/02/15/fixed-schedule-productivity-how-i-accomplish-a-large-amount-of-work-in-a-small-number-of-work-hours/ (that whole blog full of gold mine info, he's now a professor at Georgetown, read his discrete math post ect)

I get up at 6am, I watch a lecture on advanced in memory dbms then I program new hash joiners and rewrite MemSQL and other dbs. I do this until 9am then I do math until 11am, drilling myself in satisfiability/formal logic.

Then I go to work where I employ these methods. After work I come home and have planned out entirely what I"ll be doing that evening and checking emails is something I can do 5mins a day, enough to reply to my parents. After that it's girlfriend time and I'm done for the day. This sched allows me for insane productivity and I learned it all from that Cal Newport dude's blog. The only reason I've been shit posting on 4chins all week is because my g/f has been out of town and is coming back Sunday then I'm back to work/life and nothing else. I don't even watch TV.

My advice is do 15-213 at CMU (open course, open video lectures) and buy the book which you can get on Abe books for only 10% of the price (get the international, 3rd version).

After that do https://microcorruption.com/ and the stockfighter "AVR" challenge. They will hire you and teach you everything CMU will teach you (i used to work there).

I worked with a guy, who used mathematical proofs to find bugs in the control flow graph of swift/C/C++ binaries. You follow branches and discover where SAT or UNSAT exists then write up proof of concept exploits for them. No joke, complete microcorruption and literal job offer. All the info is in this book: http://csapp.cs.cmu.edu/ then work with CMU grads. (CMU also hires to work with grad students.. anybody can apply check their website) http://db.cs.cmu.edu/courses
>>
File: Jewish Pepe.jpg (136KB, 655x650px) Image search: [Google]
Jewish Pepe.jpg
136KB, 655x650px
>>56527555
All that proves is that Jews do everything in this country.
Literally how can Goyim even compete?
>>
New thread: >>56528793
>>
What are some good websites with practice code problems? Which ones make you gitgud at coding?
>>
>>56529032
the only thing that makes you good at coding is actually coding. Like a work. And maybe learning/using common algorithms
>>
>>56529393
Thread posts: 318
Thread images: 52


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.