Better HN
topnewbestaskshowjobs
Log inSign up

andersmurphy

1,011 karma · joined Feb 22, 2019 (7y ago) · 496 submissions

https://andersmurphy.com
Submissions

comment 6mo ago · link · parent

Seems fine at billions of rows in my experience.

comment 6mo ago · link · parent

It doesn't block reads. Single writer systems are often faster than concurrent writers no coordination overhead and you can batch.

comment 6mo ago · link · parent

Hundreds of thousands*

comment 6mo ago · link · parent

Yeah sqlite on anything but a directly attached nvme is a bad time if you're using it for a web server.

comment 6mo ago · link · parent

I think a lot businesses build large distributed systems prematurely. They don't know what they don't know.

comment 6mo ago · link · parent

What on earth needs thousands of instances? Are you building a CDN? Most apps can be a single server or sharded by business/region.

Honestly, this whole leys run loads of nodes seems to have sprung up from languages that are slow oe don't have decent concurrency.

comment 6mo ago · link · parent

Why do you need libsql? Single writer tends to scale better than concurent writes.

comment 6mo ago · link · parent

What's massive amount concurrent writes? What's big data?

comment 6mo ago · link · parent

In this demo each T in TPS is two updates over a billion rows and most importantly skewing high on row lock contention. On a 5 year old macbook, using a dynamic language. Isolation level serializable and synchronous full (so max durability).

You can definitely go faster over less data doing single inserts on a better stack, with weaker guarantees.

RPO litestream even in it's default settings gives you point in time streaming backups to the second, which is considerably better than what RDS five minutes. So the funny thing is the durability guarantees are worse with the "bigger DBs".

RTO again you can have a standby that's warm with a copy of the data through litestream. Regional sharding also becomes trivial.

It's a solid set up for a lot of products/apps. Postgres is still fine if you want things like roles and permissions etc. Or if you don't have experience getting the most out of sqlite.

comment 6mo ago · link · parent

Yes, it's still slower on the same machine, even with unix domain sockets.

It doesn't play nice with other things running with it in practice. JVM and postgres on the same box is a textbook bad time.

comment 6mo ago · link · parent

Because local postgres is a bad time unlesss it's the only thing running on the server. Even then sqlite will smoke postgres (even with unix sockets).

The point is to survive the Pareto row locking problem you need to move away from a network database (if you want to still have interactive transactions). The network part is the main point of a network database, once you drop that there's not much pointing sticking with the added complexity unless there's another feature you really need.

comment 6mo ago · link · parent

Thing is SQLite scales better than both those network databases [1] if you're prepared to stick with one big machine (+ a standby).

This is even more obvious when you start doing transactions processing an row locks across the network limit you to 1-3k TPS that you cannot scale out of (Pareto distribution is merciless).

[1] - https://andersmurphy.com/2025/12/02/100000-tps-over-a-billio...

comment 6mo ago · link · parent

Wonder if that's to do with dark mode or something? I had the same issue in dark mode on mobile on duckduckgo.

comment 6mo ago · link · parent

Oh LZ4 nice! Also the fact that this is in python makes this even more impressive.

comment 6mo ago · link · parent

Can Claude use it?

comment 6mo ago · link · parent

Nice. The build your ritual is quite a cute feature.

107.

A Trillion Characters(characters.fastserial.com ↗)

36 points · by andersmurphy · 6mo ago · 16 comments

comment 6mo ago · link · parent

I wonder if it's being done to improve revenue nunbers without changing an enterprise contract? Oh what's that your token usage went up because some of your developers switched to a new model? That sounds like a you problem.

I thinks there's a big push to get these companies in a state where they can be dumped on public markets.

comment 6mo ago · link · parent

Didge isn't that loud unless you're really going for it. Nothing compared to bagpipes.

comment 6mo ago · link · parent

Yeah that should be 2.8-3.3cm for sure.

comment 6mo ago · link · parent

> First, I made this decision and I own it...

Always reminds me of:

> Failure is growth. Failure is learning. But sometimes failure is just failure. I think... I'm sorry. I didn't think it would be this hard. But goodbyes are always hard, especially when I am the one saying goodbye. Today, effective immediately, I, Gavin Belson, founder and CEO of Hooli, am forced to officially say goodbye to the entire Nucleus division. All Nucleus personnel will be given proper notice and terminated. But make no mistake. Though they're the ones leaving, it is I who must remain and bear the heavy burden of their failure.

comment 6mo ago · link · parent

The low powered MCU (Raspberry Pi RP2350B) has RISC-V:

Dual ARM Cortex-M33 @ 150 MHz + Dual RISC-V Hazard3 @ 150 MHz

comment 6mo ago · link · parent

Yup do what works best for you.

I do the opposite I don't support path params. Means your router can just be a simple map/dict.

Query strings avoid all the hierarchy/taxonomy problems you run into with path params.

comment 7mo ago · link · parent

The problem is row locks when using interactive transactions over the network and contention. That can absolutely kill your performance with postgres, there's not really anything you can do to get around it (other than avoid interactive transactions). [1]

[1] - https://andersmurphy.com/2025/12/02/100000-tps-over-a-billio...

comment 7mo ago · link · parent

Is the main use case for this for languages that only have access to process based concurrency?

Struggling to see why you would otherwise need this in java/go/clojure/C# your sqlite has a single writer, so you can notify all threads that care about inserts/updates/changes as your application manages the single writer (with a language level concurrent queue) so you know when it's writing and what it has just written. So it always felt simpler/cleaner to get notification semantics that way.

Still fun to see people abuse WAL in creative ways. Cool to see a notify mechanism that works for languages that only have process based concurrency python/JS/TS/ruby. Nice work!

comment 7mo ago · link · parent

Yeah, there's always Fil-C (Rust isn't memory safe in practice).

comment 7mo ago · link · parent

Yeah JS is closer to lisp/scheme than C (I say this as someone who writes JS, Clojure and the occasional C).

comment 7mo ago · link · parent

In some ways Mythos (like many AI things) can be used as the ultimate accountability sink.

These libraries/frameworks are not insecure because of bad design and dependency bloat. No! It's because a mythical LLM is so powerful that it's impossible to defend against! There was nothing that could be done.

comment 7mo ago · link · parent

Absolutely love the one on Forth. Issue 5 I think? Has a build it yourself modem for under 50$ in it.

comment 7mo ago · link · parent

That's the irony of Mythos. It doesn't need to exist. LLM vibe slop has already eroded the security of your average site.
12345
17