this post was submitted on 28 Feb 2024
1009 points (97.0% liked)

Programmer Humor

32386 readers
741 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 
top 50 comments
sorted by: hot top controversial new old
[–] [email protected] 19 points 8 months ago (1 children)

Joke on you until the python program segfaults

[–] [email protected] 2 points 8 months ago

If it does it's because of C/C++ code

[–] [email protected] 22 points 8 months ago (3 children)

Nevermind that the C++ program is two orders of magnitude faster when completed.

I would love to learn and use Rust but I'm a embedded systems guy. Everything of consequence is C and C++.

[–] [email protected] 3 points 8 months ago (1 children)
[–] [email protected] 6 points 8 months ago (1 children)

I meant faster than Python, not faster than Rust. Rust is fast.

[–] [email protected] 1 points 8 months ago

Ah. OK. Makes more sense.

[–] [email protected] 7 points 8 months ago

There's embedded rust for a few platforms. Using it on ESPs is fun

[–] [email protected] 12 points 8 months ago

If the embedded system is old or poorly-maintained enough, there might be more Rust than you'd think.

[–] [email protected] 73 points 8 months ago* (last edited 8 months ago) (1 children)

Rust developer: I'd like to compile some code

Rust compiler: the fuck you are

[–] [email protected] 43 points 8 months ago (6 children)

The rust compiler holds your hand, wraps you in blankets, makes you hot chocolate, kisses you on the forehead before it gently and politely points out what you did wrong and how you can solve it step-by-step. It would never think of something as heinous as swearing at you, shame on you for insulting my wife's honour like this.

[–] [email protected] 2 points 8 months ago

I don’t know from where this legend comes from but lifetimes/concurrency/macros errors are brain-hurting.

Most of the time I find myself dropping project because I wrote my program in a correct way but Rust just does not like how it is designed lol. I can’t get shit done with this language

[–] [email protected] 4 points 8 months ago

except when it gives errors about lifetimes of some object.

boy, that makes my brain hurt

[–] [email protected] 4 points 8 months ago

The rust compiler produces a flawless understanding of your code, and then quits out because understanding that code is a Nightly-only feature and you're using the stable build.

[–] [email protected] 29 points 8 months ago (1 children)

Rust compiler is passive agressive, like:

"There's an error at line 286 because you still don't know how to use the borrow checker after all this time ♥️"

[–] [email protected] 4 points 8 months ago

its a compiler. That is at best projection, especially considering how the compiler's error feedback is designed to be firm yet gentle.

[–] [email protected] 8 points 8 months ago (1 children)

Damn right. And once it compiles… it works.

[–] [email protected] 1 points 8 months ago (1 children)
[–] [email protected] 2 points 8 months ago
[–] [email protected] 20 points 8 months ago

I need a rust compiler in my life 😍

load more comments
view more: next ›