this post was submitted on 16 Sep 2025
263 points (96.8% liked)

Programmer Humor

27215 readers
443 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
 
you are viewing a single comment's thread
view the rest of the comments
[–] CanadaPlus@lemmy.sdf.org 9 points 1 month ago* (last edited 1 month ago) (34 children)

That sounds pretty great. My impression is that relatively little code actually runs that often.

but with none of the footguns of manual memory management, no garbage collection pauses, but yet also no evil stepparent style borrow checker to be beaten by.

That part sounds implausible, though. What kind of memory management are they doing?

[–] davidagain@lemmy.world 5 points 1 month ago* (last edited 1 month ago) (33 children)

Reference counting.

They pay a lot of attention to preventing cache misses and branch prediction failures, which is how they get away with reference counting and still being fast.

[–] CanadaPlus@lemmy.sdf.org 10 points 1 month ago (28 children)

Oh, you just mean it's a kind of garbage collection that's lighter on pauses. Sorry, I've had the "my pre-Rust pet language already does what Rust does" conversation on here too many times.

[–] BatmanAoD@programming.dev 8 points 1 month ago (1 children)

To be fair, the drop/dealloc "pause" is very different from what people usually mean when they say "garbage collection pause", i.e. stop-the-world (...or at least a slice of the world).

[–] CanadaPlus@lemmy.sdf.org 2 points 1 month ago (1 children)

Yeah, it might be better, I don't actually know. It's not as novel as OP maybe thinks it is, though.

[–] BatmanAoD@programming.dev 2 points 1 month ago (1 children)

That's fair; Python, Swift, and most Lisps all use or have previously used reference-counting. But the quoted sentence isn't wrong, since it said no "garbage collection pauses" rather than "garbage collection."

[–] CanadaPlus@lemmy.sdf.org 3 points 1 month ago* (last edited 1 month ago)

Yes, I read or interpreted that wrong at first.

load more comments (26 replies)
load more comments (30 replies)
load more comments (30 replies)