810
you are viewing a single comment's thread
view the rest of the comments
[-] ChairmanMeow@programming.dev 89 points 3 days ago

This was caught during review, so nothing was "introduced" quite yet. And there's no indication that Linus wouldn't have produced a race condition (a notoriously more easy to miss kind of bug) without the use of AI tools.

It's only being exaggerated so much because he used AI.

[-] tatterdemalion@programming.dev 22 points 3 days ago

I could attribute the race condition just as much to their use of the C language as to AI.

[-] ChairmanMeow@programming.dev 3 points 3 days ago

Race conditions I'm pretty sure aren't language specific. Rust can have them too.

[-] tatterdemalion@programming.dev 1 points 1 day ago

You are correct to point out the distinction between race conditions and data races. Rust only rules out data races.

I don't know whether the race in question was a data race or not.

I would still wager that Rust code generally has fewer race conditions than C, given that mutable aliasing can be used as symbolic prevention of race conditions, i.e. your &mut T doesn't necessarily need to hold data; it can represent some domain concept.

aren’t language specific

There are actually languages that guarantee deterministic concurrent execution, and this can rule out larger classes of race conditions than just data races. See the Bloom language and CALM theorem.

[-] jjj@piefed.blahaj.zone 5 points 3 days ago

Yes, but the tools provided by Rust:

  1. Prevent most common ones via aliasing^mutability, Send and Sync marker traits, etc.
  2. Require explicitly marking the cases not handled by this, e.g. unsafe features require an unsafe {} block to be used.
[-] Fmstrat@lemmy.world 5 points 3 days ago

Yea he basically said "This seems to work but is slop, lead Dev, make it real."

[-] LH0ezVT@sh.itjust.works 19 points 3 days ago

That is something I am surprisingly okay with. Quickly figuring out if something is feasible is good, and doing it in a back of the napkin style is the norm, even without LLMs. Of course then you need to do it properly, without falling into the trap of reimplementing the slop.

this post was submitted on 26 Oct 2026
810 points (95.7% liked)

Programmer Humor

33859 readers
984 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 3 years ago
MODERATORS