logoalt Hacker News

Deep dive into Turso, the “SQLite rewrite in Rust”

162 pointsby unsolved73yesterday at 2:51 PM126 commentsview on HN

Comments

dangyesterday at 10:12 PM

Related. Others?

Turso is an in-process SQL database, compatible with SQLite - https://news.ycombinator.com/item?id=46677583 - Jan 2026 (102 comments)

Beyond the SQLite single-writer limitation with concurrent writes - https://news.ycombinator.com/item?id=45508462 - Oct 2025 (70 comments)

An adventure in writing compatible systems - https://news.ycombinator.com/item?id=45059888 - Aug 2025 (12 comments)

Introducing the first alpha of Turso: The next evolution of SQLite - https://news.ycombinator.com/item?id=44433997 - July 2025 (11 comments)

Working on databases from prison - https://news.ycombinator.com/item?id=44288937 - June 2025 (534 comments)

Turso SQLite Offline Sync Public Beta - https://news.ycombinator.com/item?id=43535943 - March 2025 (67 comments)

We will rewrite SQLite. And we are going all-in - https://news.ycombinator.com/item?id=42781161 - Jan 2025 (3 comments)

Limbo: A complete rewrite of SQLite in Rust - https://news.ycombinator.com/item?id=42378843 - Dec 2024 (232 comments)

show 1 reply
mickrich345today at 3:56 AM

I never read this article by the C developers before. It's so odd to read a level headed C vs. Rust take on the internet.

https://sqlite.org/whyc.html

show 1 reply
Havocyesterday at 4:22 PM

I’d imagine this will go a bit like the rust rewrite of sudo etc. Despite the memory safety advantages at least towards the start it still ends up more fragile because the incumbent has years of testing and fixing behind it

show 4 replies
gus_massayesterday at 4:29 PM

I was surprised that the test suit not open source. Some info in https://sqlite.org/testing.html

It looks like some parts are open source and other not. Does anyone know more about the backstory? (It looks like one is a custom program that generate fuzz test. Do they sell it to others SQL engines?)

show 3 replies
rantingdemonyesterday at 4:28 PM

This is very shallow for a supposed deep dive.

I'm not ready to entertain Turso as an alternative to something that is as battle tested as Sqlite.

show 3 replies
ndiddyyesterday at 4:23 PM

The thing that worries me the most about Turso is that rather than the small, stable team running SQLite, Turso is a VC backed startup trying to capitalize on the AI boom. I can easily see how SQLite's development is sustainable, but not Turso's. They're currently trying to grow their userbase as quickly as possible with their free open source offering, but when they have investors breathing down their necks asking about how they're going to get 100x returns I'm not sure how long that'll last. VCs generally expect companies they invest in to grow to $100 million in revenue in 5-10 years. If your use of their technology doesn't help them get there, you should expect to be rugpulled at some point.

show 5 replies
uwemaureryesterday at 4:37 PM

I recently benchmarked different SQlite implementations/driver for Node. Better-sqlite3 came out on top of this test: https://sqg.dev/blog/sqlite-driver-benchmark/

show 1 reply
reirobtoday at 8:11 AM

There has been a podcast by Developer Voices about Turso: https://m.youtube.com/watch?v=1JHOY0zqNBY

__mharrison__today at 5:50 AM

I'm working on a Django app. This would make production deployment a bit easier.

Also sad that the test suite isn't open source. Would help drive development of the new DB...

sauercrowdyesterday at 4:04 PM

> ... most of which can be fixed by a rewrite in Rust

huh? That is clearly not the case. memory bugs - sure. Not having a public test suite, not accepting public contributions, weakly typed columns and lack of concurrency has nothing to do with the language. They're governance decisions, that's it.

>I see this situation trhough the prism of the innovator's dilemma: the incumbent is not willing to sacrifice a part of its market to evolve, so we need a new player to come and innovate.

I don't think the innovators dilemma quite applies in the open source world. Projects are tools, that's it. Preserving a project for the sake of preserving it isn't a good idea.

If people need to run a sqlite db in these exotic places, shedding it means someone else has to build their own tool now that can do it. Sqlite has decided that they care about that, so they support it, so they can't use rust. Seems sound.

Projects coming and going is a good thing in open source, not a bug.

show 3 replies
w-myesterday at 4:22 PM

At the current rate of progress I'm wondering how long it will take for llm agents to be able to rewrite/translate complete projects into another language. SQLite may not be the best candidate, due to the hidden test suite. But CPython or Clang or binutils or...

The RIIR-benchmark: rewrite CPython in Rust, pass the complete test suite, no performance regressions, $100 budget. How far away are we there, a couple months? A few years? Or is it a completely ill-posed problem, due to the test suite being tied to the implementation language?

show 1 reply
tlnyesterday at 3:51 PM

Where is the "networked mode" in Turso? Turso's readme and docs do not mention anything like this

show 3 replies
TeaVMFanyesterday at 5:27 PM

For the Java ecosystem, H2 fills this gap nicely, easily handling both in- memory and remote JDBC access:

https://frequal.com/java/TheBestDatabase.html

adzmyesterday at 4:11 PM

I hate to be negative, but where is the deep dive? This is a shallow overview of Turso's features and some of the motivation behind it. Am I missing something?

show 1 reply
pelasacotoday at 6:44 AM

So the idea is to rewrite it in Rust and drop SQLite? I mean, maybe that’s just how things evolve. But it feels like every project is only a few vibe-coding sessions away from getting rewritten in $LANGUAGE. And I can’t help wondering whether that’s hurting a sustainable open-source ecosystem.

SQLite is a good example: the author built a small ecosystem around it and managed to make a living from open source. Thanks to author's effort, we have a small surface area, extreme stability, relentless focus on correctness.

If we keep rewarding novelty over stewardship, we’ll lose more “SQLite-like” projects—stable cores that entire ecosystems depend on.

9rxyesterday at 3:32 PM

> A database that can scale from in-process to networked is badly needed

Why not Postgres? https://pglite.dev

show 3 replies
IshKebabyesterday at 6:31 PM

Good article though it kind of stopped just when I thought the deep dive was about to start.

show 1 reply
sgammonyesterday at 4:36 PM

Wow what a terrible and misleading article

gethlyyesterday at 5:32 PM

let's play a little game known as "count the unsafe"

https://github.com/search?q=repo%3Atursodatabase%2Fturso%20u...

yunohnyesterday at 3:40 PM

What a breath of fresh air to read a blog not written by AI, with actual human learnings and opinions. Thanks for the write up!

show 2 replies
crackiyesterday at 11:02 PM

Stop rewriting everything in Rust.

show 1 reply