this post was submitted on 05 Jul 2025
298 points (99.0% liked)

Programmer Humor

24815 readers
635 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
[โ€“] PlexSheep@infosec.pub 1 points 22 hours ago (1 children)

Oh, I did not know that. Well, it makes sense that it has a heap allocation, as it becomes more or less global. Though not sure why the atomic operations are needed when the value inside is immutable.

[โ€“] Miaou@jlai.lu 1 points 16 hours ago

How can you otherwise keep track of an object's lifetime if copies are made concurrently?