Old thread: What are you working on, Sup Forums?
/dpt/ - Daily Programming Thread
Other urls found in this thread:
nth for reimplementing rust in c++
New fags don't remember lesbian gnu/Linux and porn-get
It's already written in C++. The whole thing is a lie.
bit early for a new thread but nice choice of picture
...
Interpreted rust.
Isn't it already interpreted? Lazy evaluation can't be compiled.
pretty accurate
Rust is written in Rust an OCaml
What's the book in the Amazon box? Becoming a trap for dummies?
What is oCamel written in?
>Lazy evaluation can't be compiled.
Tell that to the GCH guys.
>GHC*
>Lazy evaluation can't be compiled.
but it can
OCaml
>apparently great company
>has a system built on php
do you take the job y/n
It's a bag of underwear.
>this function causes my program to segfault
void to_lower(char *s)
{
while (*s) {
if (*s >= 65 && *s
> while (*s)
baka
what you mean?
explain pls
kek
Are you sad no one really responds to your meme?
You're skipping past the null terminator.
Use while (*++s)
...
60059881
60059696
Head back to Sup Forums if you are here to post your memes
A pretty rddit thing 2bh, embarrassing.
did you find CS really hard in uni, my fellow /dpt/ bros?
even the business fags take CS because it's part of a MIS degree
please do common lisp
now it doesn't segfault, but in some cases it doesn't print the complete string, only half of it
while (*++s) {
if (*s >= 64 && *s
discord.gg
Sup Forums discord
stop with the magic numbers.
Fuck off to autistic manchild.
maybe later
Use character literals, you baka.
*posts anime*
@60059929
Are you a hue?
Protip: you don't need any braces for that function.
At all.
no shit sherlock
that doesn't solve my problem tho
brodib xDDD
. . .
hashOut.data = hashes + SSL_MD5_DIGEST_LEN;
hashOut.length = SSL_SHA1_DIGEST_LEN;
if ((err = SSLFreeBuffer(&hashCtx)) != 0)
goto fail;
if ((err = ReadyHash(&SSLHashSHA1, &hashCtx)) != 0)
goto fail;
if ((err = SSLHashSHA1.update(&hashCtx, &clientRandom)) != 0)
goto fail;
if ((err = SSLHashSHA1.update(&hashCtx, &serverRandom)) != 0)
goto fail;
if ((err = SSLHashSHA1.update(&hashCtx, &signedParams)) != 0)
goto fail;
goto fail; /* MISTAKE! THIS LINE SHOULD NOT BE HERE */
if ((err = SSLHashSHA1.final(&hashCtx, &hashOut)) != 0)
goto fail;
err = sslRawVerify(...);
. . .
this shit is why we have exceptions nowadays
use the MaybeT monad transformer
i'm using like
table->str = to_lower(table->str);
but when i print table->str, it doesn't show the complete string
fuck this
char *to_lower(char *s)
{
while (*++s) {
if (*s >= 'A' && *s
Is there a performance difference between x++ and x += 1?
Why not MonadError?
Any sane or insane compiler will produce identical machine code for both.
there isn't an instance for MonadError () Maybe (or maybeT) sadly
similarly there should be an instance for
>MonadWriter w ((,) w)
The reason Rust is being pushed so hard is because social justice warriors have found great difficulty penetrating the communities of open source system coders who use C and/or C++.
The "safety" features give advantages to lobotomised Feminist studies "coders" who are trying to "disrupt" these communities while breaking the knee caps of everyone else who knows what they are doing.
Literally nothing in Rust actually solves problems that haven't already been solved by RAII in C++ and even some GC/stack/heap techniques in the arguably superior but slower D compiler.
The advocates are all social justice warriors and this is their "long march through the development communities". They are employing critical theory against their main targets C and C++, by criticising everything it is and does and demonising its users. They've held back their "cis het white male" jargonism for now, but once they have established a foot hold "killer app", expect them to go wild with it. Just read through the big throbbing CoC they've erected on their main website.
Rust is kill. Don't touch it, spit on all its advocates.
do codecademy exercises help out with programming?
the python language isn't that hard, but i have trouble coding and developing the algorithms. i failed all the CS labs in uni
Even assuming -O0?
>CoC
Calculus of Constructions?
Rust compiler is in Rust retard.
R*st isn't that advanced.
I heard it doesn't even have HKTs.
Less magic numbers. Maybe something like
*s += ('a'-'A');
do people here really use and enjoy rust?
Not many. There are 3 or 4 maybe, and then there's 1 who shills it nonstop
only cute programmer bois will get this
If programming is what professionals do, do amateurs do amagramming?
how do i practice coding? my basics are bad to get through CS in uni
Neither does 'c'
>You need to know how to program before starting college
Well I am installing it right now, let's see if I can join in
C never claimed it was going to support FP.
When C doesn't have features, thats a feature.
When something else doesnt have features, theyre shit.
ripip
I fucking wish this was enforced.
You shouldn't enter a 4 year program without already knowing the basics of computer programming.
They waste so much time getting the slowest people up to speed and the worst ones graduate without knowing a single language in any meaningful way.
HKT's are useless.
>When C doesn't have features, thats a feature.
>When something else doesnt have features, theyre shit.
Pretty much
>""""""""advanced""""""""
What makes you think it's git anything to do with being """"""""advanced""""""""?
HKTs are for pure brainlets
I wrote a small program and it runs perfectly in IntelliJ. But when I pack everything into a .jar and try to run it from the windows command prompt with "jave -jar" it behaves differently and shows errors...
why is that?
What do HKTs have to do with FP?
got*
>What makes you think it's git anything to do with being """"""""advanced""""""""?
Is this completely unreadable on purpose or are you just that retarded?
>t. Freshman
You don't get taught how to program in college, so you better get over your autism now.
I'm pretty sure that he's retarded.
Learn how to read a thread before posting like a 12 year old
Do one for SHITKELL
it's called assembly, not assembler
Ok
[12:59] == asdf_ [0128d688@gateway/web/freenode/] has joined #ghc
[12:59] Lazy evaluation can't be compiled.
[13:03] == afarmer [[email protected]] has joined #ghc
[13:03] what?
[13:05] What don't you understand about what I said?
[13:07] == petermw [[email protected]] has quit [Ping timeout: 245 seconds]
[13:07] asdf_: well, it seems to be a false statement. So why can it not be compiled
[13:07] Idk, someone told me to say it here.
[13:08] ahhh
[13:08] ok
>Learn how to read a thread
Your post isn't a thread.
What were you even trying to say? I genuinely can't understand.
Now ask them why Hasklel failed so hard
Make it yourself
>Your post isn't a thread.When did I claim otherwise? Have you spoken to a doctor yet? It seems pretty obvious you are mentally disabled
>it's called assembly, not assembler
Both are valid, the latter is more common among old fags
Can you just rewrite your post? I really want to understand it.
Or can anyone else who speaks his language translate it for me?
It's not like you have anything better to do. Or have you got a soft spot for SHITKELL?
It's called English. Translate it yourself to your language.
I have work, because I am employed, unlike you
That definitely isn't standard English. It might be syntactically similar, but it doesn't make any sense.
>I have work
Oh right. So how many memes are you making today at your "work"?
>That definitely isn't standard English
May be you have been taught English by illiterates
>I have work
Are you and ?
How much do you get paid as NEETbux, user?
I wouldn't consider my parents to be "illiterates".
Are you home "schooled"? Why do you think your opinion counts? Your illiterate parents have produced another illiterate just like them. May be your family was too poor to afford school for you.
my laptop's got an intel processor but it's linux, should i use GAS or NASM assembler?
it's an epic meme where he pretends to be retarded by pretending that ">" means quoting, when no where in any official documentation on Sup Forums does it say that. it's only referred to officially as greentexting. report him and then ignore him. he doesn't know how c structs work either
they do indie gaming
You should use Nasm regardless of your CPU vendor or OS.
Gas and AT&T are appropriate nowhere.
>form repo
>commit changes to forked master
>make pull request master
how do I freeze or swap my master branch so that I can commit to it again without adding more trash to the pull request