upvote
The “juicy” test suite is private. I think they may have had some foresight here, because my view is that this model will only get more popular going forward given how cheap it is clone/steal projects.
reply
More and more the team behind the software is a source of value. Anyone who can write a few paragraphs can produce software that looks good from the outside, but do you trust the team behind it?

Keeping an extensive suite of tests private is just an artificial way to boost the trust in the team. It's an interesting way for open-source developers to have their cake and eat it too.

reply
You see artificial; I see tangible :)

I think it is either going to be this or open core for OSS going forward.

reply
also there's a sense of... some of the feeling of double-blind science or something difficult to express along those lines when you have a separate test suite which is private to verify the first to avoid some kind of "overfitting" which is even more helpful in the LLM days
reply
If you enough token budget, you can an LLM to replicate the unit tests.
reply
If bun can be ported by LLM with tokens to burn budget. I don’t see why reimplementing in whatever language and the test suite is not possible. Writing tests good and stupid is definitely a job LLM can smash out
reply
As far as I know, Bun had a rigorous E2E test suite (i.e. language agnostic) that the LLM could evaluate its progress against.

My impression is that compilers are probably among the easiest software to port because they rely heavily on E2E tests, have large test suites, and have inputs that are relatively well specified.

reply
A person could get LLM to generate a lot of sql tests thou. Sql is been around for a while
reply
I would highly recommend reading up on what the SQLite test suite actually covers. There is also this recent lecture by Richard Hipp (creator) that might give you a better idea: https://www.youtube.com/watch?v=V_qzqY1bb7I
reply
I believe turso did build a sqlite clone in rust that they call libSQL. I think the test suite is proprietary, though, so I'm not sure if they were able to use that.
reply
Most of the SQLite test suite is public. There's a small additional private test suite that's mainly useful for people porting it to novel hardware.
reply
Ah, thanks for the clarification.
reply
Honest question, why? Is SQLite not performant or lacking in some fashion?
reply
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
Turso Database has already written a rust version of SQLite that is used in production environments. https://github.com/tursodatabase/turso
reply
A substantial portion of the SQLite test suite is proprietary, so unless Hipp blesses your port and gives you access to that, you'll be at a significant disadvantage.
reply
"Substantial" isn't quite right - the vast majority of the SQLite test suite is public.
reply
Hmm, the wording on https://sqlite.org/testing.html#test_harnesses made it seem like the proprietary test suite was bigger; however, I've never glanced at the public (TCL) tests, and making it sound like their private tests are better no doubt helps ensure they get more contracts.
reply
TH3 is closed source, and is about 50% of the test suite.
reply
Simon I believe you’re mistake here. The public test suite is quite extensive, to the tune of hundreds of thousands of LoC. Word is that the private test suite is orders or magnitude larger than the public one.

For the record I have no problems with their business model, they have managed to fund development of a truly unique piece of OSS infrastructure and for this, I’m always thankful to them

reply
Ah, I didn't know that.
reply