this post was submitted on 17 Aug 2026
239 points (89.4% liked)

Technology

87685 readers
3517 users here now

This is a most excellent place for technology news and articles.


Our Rules


  1. Follow the lemmy.world rules.
  2. Only tech related news or articles.
  3. Be excellent to each other!
  4. Mod approved content bots can post up to 10 articles per day.
  5. Threads asking for personal tech support may be deleted.
  6. Politics threads may be removed.
  7. No memes allowed as posts, OK to post as comments.
  8. Only approved bots from the list below, this includes using AI responses and summaries. To ask if your bot can be added please contact a mod.
  9. Check for duplicates before posting, duplicates may be removed
  10. Accounts 7 days and younger will have their posts automatically removed.

Approved Bots


founded 3 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] piyuv@lemmy.world 181 points 2 weeks ago (25 children)

Never seen a non-deterministic compiler though

[–] ryannathans@aussie.zone 92 points 2 weeks ago* (last edited 2 weeks ago) (8 children)

C/C++ compilers are non deterministic due to support of super macros that change run to run, non-deterministic optimisation strategies or ordering due to parallelism, and linkers often produce different outputs every time they are run where subtle bugs can cause crashes when addresses don't line up how you expect. And that's without mentioning projects that use a configuration step.

It's actually a big problem in producing reproducible builds for security.

[–] piyuv@lemmy.world 15 points 2 weeks ago (3 children)

I’m not very good with C/C++ so please correct me, isn’t that what’s called a “race condition”? Parallelism can cause non-determinism but not in the same sense LLMs generate non-deterministic output. Compilers are not statistical machines.

[–] wonderingwanderer@sopuli.xyz 0 points 2 weeks ago

From my understanding, which is very limited, race conditions are more an issue with concurrent programming. Parallel computing uses separate processor cores for each task so there's less reliance on stack machines. But I guess each core still shares the memory, so maybe it still happens. Like I said, my understanding is limited. Just use rust.

load more comments (2 replies)
load more comments (6 replies)
load more comments (22 replies)