upvote
Security, presumably. It’s written in C.
reply
Red herring? Airbus uses SQLite inside the flight software for the A350 XWB family of aircraft. It has certified Aviation-Grade Testing (DO-178B/C). The proprietary TH3 test harness, which features roughly 600 times more test code than actual source code and achieves 100% Modified Condition/Decision Coverage (MC/DC) at the assembly level. It must some of the most scrutinised source code on the planet.
reply
by people who have put incredible amounts of effort into its safety and correctness, so I don't really think it matters if its written in C.
reply
There is some merit for the memory safety angle here, so I can see why someone would be interested in doing that.

A look at the CVE list reveals that there were some CVEs with read freed memory or array overflows. That said the amount of CVEs is comparatively tiny to other software, so as you said, it really shows that they put incredible amounts of efforts into safety and correctness. Still, there would probably still be some value to it, even if very minimal (is it worth it though?)

https://sqlite.org/cves.html

reply
Possibly controversial opinion: as the frontier of LLMs improves, things like memory safety can be a solved problem in any language capable of it.

The solution to sqlite memory safety isn't porting it to Rust. It's for someone to spend a hundred dollars a year auditing the C code for vulnerabilities with each new frontier model as they're made available.

reply
I don't think using a statistical model to solve a very mechanical problem is the best use of resources.
reply
It's certainly one way things could go. Personally, I hope not. Why check for memory safety with a non-sovereign, non-deterministic process once a year, when the compiler can do it deterministically on standard hardware every build?
reply
> Personally, I hope not.

Personally I hope so. If software vulnerabilities become a disease that we cure, that is a good thing for everyone. (For me the LLM coding revolution hasn't really changed what I do, or how much I do. What's changed is the expectation of code quality and resilience has gone up a non-hyperbolical 10x.)

reply
The same is said about the Linux kernel and other projects.

And just look what's been happening.

reply
I feel like most of the Linux vulnerabilities lately haven't been kernel level vulnerabilities but rather vulns at distro level or application level like openssh
reply
I saw a video by a kernel developer on this subject recently (probably found it here on HN) which basically said, "Most of the 'vulnerabilities' found by AI were not real. Those that were real were mostly minor. In total, AI has helped find a few real problems, but the signal to noise is low, and the reports of large numbers of vulnerabilities found by AI are overhyped."
reply
Not really my point I was making, I was just explaining why GP jumped to wanting to rewrite in Rust.
reply
eh but I think at this point we can all assume when somebody says they want to reimplement something in rust they mean vague security things, asking why is really asking for anything more specific than that
reply
Because Rust is a cult first and a programming language second. Everything not written in Rust is “impure”
reply