861
race conditions (lemmy.zip)
you are viewing a single comment's thread
view the rest of the comments
[-] ILikeBoobies@lemmy.ca 42 points 10 months ago

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

[-] d_k_bo@feddit.org 36 points 10 months ago* (last edited 10 months ago)

Rust would be some borrow checker compile error like

borrowed data escapes outside of associated function
argument requires that `'1` must outlive `'static`

rust errors are funny if you don't know rust

[-] milicent_bystandr@lemm.ee 13 points 10 months ago

News at Ten: Borrowed Data Escapes Outside of Associated Function

[-] Ephera@lemmy.ml 8 points 10 months ago

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 10 months ago* (last edited 10 months 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.

[-] jumping_redditor@sh.itjust.works 0 points 10 months ago

you can still segfault in rust iirc

[-] jenesaisquoi@feddit.org 1 points 10 months ago

Not in safe Rust. Only if you explicitly tell the compiler "I got this, don't worry" but then fuck up.

[-] jumping_redditor@sh.itjust.works 0 points 10 months ago

I guess they fixed the weirdness involving calling main later in the program

[-] Ephera@lemmy.ml 1 points 10 months ago

As in, you call main() recursively? Don't think, I've ever tried that in any language...

load more comments (7 replies)
this post was submitted on 08 Jun 2025
861 points (97.3% liked)

Programmer Humor

30995 readers
1104 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