Hacker News new | ask | show | jobs
by arnath 63 days ago
Why would you rewrite something that’s widely considered one of the best written and tested pieces of software in the world?
9 comments

Among many other things, they built a system that can provide substantially better concurrency and a better async story.

Also, they're building a project that's more open to outsiders.

They were aiming for better concurrency, I believe. If you're rewriting something regardless, might as well use a more modern language that's easier to reason about during development.
Another way of describing Turso is a SQLite-compatible (same file format and C API) embedded database. If you start with SQLite but find you need async i/o, concurrent writers, and local replicas then Turso is a good option.
Because they wanted something like this story to happen. It's what VC does to open source, they aren't here to help or build communities they are here to make money. Nothing else matters.
it's funny, because money is the number 1,000 or even lower thing on my priorities.

Turso has a booming OSS community with many contributors from outside the company and is fully MIT.

What you believe versus what outcomes your decisions actually lead to are two totally different things.
That's how you push the field forward. Good isn't good enough.
The Rust rewrite? I had the same question.

It’s fast, with unparalleled stability, arguably better managed than any other software on earth, deployed on literally everything, so let’s… fork it for street cred?

Rewriting in Rust is usually an exercise in reducing serious security vulnerabilities and memory bugs, not improving speed or stability.

But with LLMs and massive, human-written test suites, rewrites aren’t a bad idea like they used to be. Rust is a perfect target language because it’s compiler is so strict and surfaces issues in a way that’s easy for either humans or LLMs to use.

Something tells me the test suites won't be human written, for most of them. They probably won't be fully human reviewed even.
For existing, mature projects like SQLite, the tests are human-written.

Even if they weren’t, LLMs are pretty good at writing tests because of Github being in their training sets. I rarely find that their tests are bad unless I underspecified what the project is supposed to do.

Disclaimer that I only vibe-code for personal projects, so I haven’t tested this at business scale.

If yiu had the resources/time, why wouldn't you challenge or improve status quo?

Sqlite is excellent but I still have many gripes with it, especially around defaults.

I think Richard Hipp has quipped “if you think you can build a better SQLite by god you’re welcome to try!”
I do not recall ever saying that.
https://m.youtube.com/watch?v=x8_ZZhRL3YU&ra=m

54min in was what I was thinking of.

“Lots of people have tried, you’re welcome to try”

I apologize if I gave a bad gloss, but I think it was roughly in the spirit of what you said.

Thanks for the link, I watched it for myself and wrote a fuller transcript.

  Q: If a young developer said they wanted to fork SQLite and build something better, what would you tell them?

  A: ... lots of people have tried. You're welcome to try. I think that the time has passed; it takes twenty five years, and it takes maniacal devotion to the cause.
This transcript doesn't include the hesitation, pauses, repeated words, incredulity etc. I got the vibe of beware wasted effort not an enthusiastic go do it quip.
Best tested..? The test data/suite is private. That alone is quite odd.
It's not odd at all if you understand the purpose of SQLite's governance model. Much better than letting VC + SV rat fuck everything for solitary monetary gain.
That explains why they don't accept code contributions. The test harness thing is just strange, they put out "certified" binaries for free but keep the test code closed.

That's basically the opposite of any other project where you pay to get support and a certified official build of the exact same code as open source releases, and if there's a private part it's paperwork you can show as proof of compliance for safety critical systems.