| ▲ | raphlinus 17 hours ago | |||||||||||||
There's a straightforward answer to the "why not" question: because it will result in codebases with the same kind of memory unsafety and vulnerability as existing C code. If an LLM is in fact capable of generating code free of memory safety errors, then it's certainly also capable of writing the Rust types that guarantee this and are checkable. We could go even further and have automated generation of proofs, either in C using tools similar to CompCert, or perhaps something like ATS2. The reason we don't do these at scale is that they're tedious and verbose, and that's presumably something AI can solve. Similar points were also made in Martin Kleppmann's recent blog post [1]. [1]: https://martin.kleppmann.com/2025/12/08/ai-formal-verificati... | ||||||||||||||
| ▲ | nu11ptr 17 hours ago | parent | next [-] | |||||||||||||
It is also equally odd to me that people want to cling so hard to C, when something like Rust (and other modern languages for that matter), have so much nicer eco systems, memory safety aside. I mean C doesn't even have a builtin hashtable or vector, let alone pattern matching, traits and sum types. I get this is about AI and vibe coding, but we aren't at a point yet where zero human interaction is reasonable, so every code base should assume some level of hybrid human/AI involvement. Why people want so badly to start a new code base in C is beyond me (and yes, I've written a lot of C in my time, and I don't hate it, but it didn't age well in expressiveness). | ||||||||||||||
| ||||||||||||||
| ▲ | doug_durham 16 hours ago | parent | prev [-] | |||||||||||||
Proofs of what? "This new feature should make the 18 to 21 year old demographic happy by aligning with popular cultural norms". This would be difficult to formalize as a proof. | ||||||||||||||
| ||||||||||||||