this post was submitted on 08 Jun 2025
852 points (97.2% liked)

Programmer Humor

24206 readers
529 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 2 years ago
MODERATORS
 
top 50 comments
sorted by: hot top controversial new old
[–] dejected_warp_core@lemmy.world 44 points 6 days ago (1 children)

Rust is still in the locker room having an argument with their coach (borrow checker).

[–] Sylvartas@lemmy.dbzer0.com 20 points 6 days ago (1 children)

C++ is home sick, currently the doctor (compiler) is not sure whether it's got the flu or a terminal cancer.

[–] epicstove@lemmy.ca 14 points 6 days ago

terminal cancer

"I'm sorry, you've been diagnosed with :(){:|:&};:"

"You have a couple seconds to live."

[–] ILikeBoobies@lemmy.ca 42 points 1 week ago (1 children)

Why is the crab not Rust. This is outrageous, it’s unfair

[–] d_k_bo@feddit.org 36 points 6 days ago* (last edited 6 days ago) (6 children)

Rust would be some borrow checker compile error like

borrowed data escapes outside of associated function
argument requires that `'1` must outlive `'static`
[–] pewgar_seemsimandroid@lemmy.blahaj.zone 17 points 6 days ago (2 children)

rust errors are funny if you don't know rust

[–] milicent_bystandr@lemm.ee 13 points 6 days ago

News at Ten: Borrowed Data Escapes Outside of Associated Function

[–] Ephera@lemmy.ml 8 points 6 days ago (1 children)

Those also happen to be errors you'd typically run into, if you don't yet really know Rust...

[–] d_k_bo@feddit.org 2 points 6 days ago* (last edited 6 days ago)

I do run into them even though I use Rust for ~3 years now, but only in non-obvious cases, e. g. when all references to the borrowed data are dropped before the end of the function.

load more comments (5 replies)
[–] lobut@lemmy.ca 32 points 6 days ago (3 children)

Not a word of a lie, I saw a "segmentation fault" error in JavaScript.

Can't remember how we resolved it, but it did blow my mind.

[–] jj4211@lemmy.world 12 points 6 days ago (1 children)

Technically any language runtime can end in a segmentation fault.

For some languages, in principle this shouldn't be possible, but the runtimes can have bugs and/or you are calling libraries that do some native code at some point.

[–] gagootron@feddit.org 7 points 6 days ago

Even safe rust can do it, if we allow compiler bugs

[–] apelsin12@lemm.ee 10 points 6 days ago

Ive also seen this, but not from js but node

[–] VitabytesDev 6 points 6 days ago (1 children)

I have seen a Java program I wrote terminate with SIGSEGV. I think a library was causing it.

[–] burlemarx@lemmygrad.ml 2 points 6 days ago

Yup, can confirm. We had a wrapper to a C++ library using JNI, so whenever this library crashed so did the entire JVM.

[–] M33@lemmy.sdf.org 17 points 6 days ago (1 children)
[–] mmddmm@lemm.ee 6 points 6 days ago

Yep, it's the one starting everything.

And doing nothing else. And still something manages to no be right.

[–] andioop@programming.dev 17 points 6 days ago

I find it funny that the pufferfish blows up at its own gunshot

[–] Jankatarch@lemmy.world 17 points 6 days ago

Why is openbsd the referee?

[–] jenesaisquoi@feddit.org 7 points 6 days ago

Rust isn't shown because it's already completed the course

[–] glorkon@lemmy.world 3 points 6 days ago (1 children)

No NullPointerExceptions in Kotlin.

[–] anton@lemmy.blahaj.zone 4 points 6 days ago (1 children)
[–] glorkon@lemmy.world 1 points 5 days ago

Well, also the fact that all variables are non-nullable by default anyway.

load more comments
view more: next ›