this post was submitted on 13 Jun 2024
9 points (100.0% liked)

Programmer Humor

19423 readers
97 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 1 year ago
MODERATORS
 
top 13 comments
sorted by: hot top controversial new old
[–] xlash123@sh.itjust.works 2 points 4 months ago

Lol, it took me a while to realize it's the compiler essentially saying "how high".

[–] Gork@lemm.ee 1 points 4 months ago

WRONG, PRIVATE!

Now drop and give me int(ceil(19.9))!

[–] bamfic@lemmy.world 0 points 4 months ago (1 children)

i dislike rust, but have to give them credit for helpful error messages. not quite racket level but impressive

[–] crispy_kilt@feddit.de 0 points 4 months ago

What made you dislike it?

[–] embed_me@programming.dev 0 points 4 months ago (1 children)

That's what makes us humans different from computers. We don't ask how high, we just do it. Now, if it were a C pointer it would jump anywhere from 0 to 2^32-1. That's why C is more suited for artificial intelligence than it might initially seem. Thanks for coming to my tedx talk

[–] crispy_kilt@feddit.de 0 points 4 months ago (1 children)

Pointers are ackshully 48 bits on amd64 (which is most PCs and servers)

[–] ___qwertz___@feddit.de 0 points 4 months ago

Well ackshully newer CPUs support 5-level-paging which uses 56 bits.

[–] tempest@lemmy.ca 0 points 4 months ago (1 children)

I do enjoy the rust compiler error messages. They are nicely formatted

[–] 30p87@feddit.de 0 points 4 months ago (1 children)

Yeah, but to observe such error messages you'll basically need to wait for 20 mins for it to compile.

[–] PlexSheep@infosec.pub 1 points 4 months ago

No? The steps are compiled once and afterwards your project just gets compiled. Besides, rust-analyzer exists.

[–] trxxruraxvr@lemmy.world 0 points 4 months ago (2 children)
[–] fossphi@lemm.ee 1 points 4 months ago

Chad quantised rust

[–] crispy_kilt@feddit.de 0 points 4 months ago

Never use floats.