Better HN
topnewbestaskshowjobs
Log inSign up

carlsverre

471 karma · joined May 12, 2011 (15y ago) · 160 submissions

Homepage: https://carlsverre.com

Building SQLSync and Graft. https://sqlsync.dev https://github.com/orbitinghail/graft

[ my public key: https://keybase.io/carlsverre; my proof: https://keybase.io/carlsverre/sigs/5eMnLTR-fsM9h4DZqnQ2ZBkWfNxYyzKGI7265PNjWzE ]

Submissions

comment 3w ago · link · parent

For now! I just wanted to put it out there and see what folks think. If people want it as an open source spec then I’ll clean up the code and release it.

2.

Show HN: Quilt – a bright, modern take on identicons(quilt.id ↗)

4 points · by carlsverre · 3w ago · 2 comments

3.

Code Contracts(code-contracts.cc ↗)

3 points · by carlsverre · 2mo ago · discuss

comment 3mo ago · link · parent

Oh man, Beyond All Reason would be a killer demo. We are actually testing another RTS as we speak, but I won't spoil it for you :) Look forward to a really epic post coming soon.

comment 3mo ago · link · parent

We've started testing git and DuckDB! Haven't played much with Dolt, though. We have some initial findings on Git that we are validating and will hopefully be making public soon!

comment 3mo ago · link · parent

Thank you! I appreciate the note of support! I'd love to write more blog posts in the future.

comment 3mo ago · link · parent

We put many things to the test, but it costs money, and until very recently we haven't had a way to do this without a lot of human oversight. Now that we have https://github.com/antithesishq/antithesis-skills and LLMs are getting pretty reliably good at writing workloads, we are looking at ways to open up our technology to the OSS community. We have already started down that path with Etcd last year (https://etcd.io/blog/2025/autonomus_testing_with_antithesis/) and are working with various OSS groups to put more systems under test in a responsible way.

I'm not gonna lie, though, you're hitting a sore point. I'm absolutely kicking myself for not putting SQLite under test when I joined. The first few projects I put under test after joining were all projects that had a few properties: 1. The project had a path to a commercial deal 2. The project likely had interesting bugs to find

TBH, I didn't expect that one of the most widely used and well-tested pieces of software in existence would have a bug our fuzzer could find in 15 mins. (To be clear, this is not a hit on SQLite, just that our fuzzer is stupid good at finding race conditions. SQLite remains one of my favorite pieces of software ever.)

With this in mind, are there other similar projects that I'm not thinking of that I should put under test? Before you ask, I'm already scaling up my SQLite harness to cover more of its state space and run against master. Maybe I'll find something novel in SQLite after all! Never too late to check.

comment 3mo ago · link · parent

I can see how the post comes across that way. I may need to edit it to somehow be clearer about how I approached the workload development. I'll refer you to my other replies to comments for more information on my approach:

https://news.ycombinator.com/item?id=49278424 https://news.ycombinator.com/item?id=49278521

Also appreciate the nice words at the end :) I'm feeling a bit ganged up on.

comment 3mo ago · link · parent

Those are the commits from upstream that resolved the bug. Notice that most of them were committed by Dr. Richard Hipp himself.

comment 3mo ago · link · parent

This is a solid idea. However, something that is maybe similar to this idea is this: https://antithesis.com/blog/2026/finding-bugs-in-raft-implem...

Which is: "Given the knowledge of a kind of bug that can happen in one Raft implementation, can a similar workload find similar bugs in other Raft implementations?" Turns out it can.

comment 3mo ago · link · parent

Great question! The general approach we take with transactional systems like this is to put reachability statements throughout the complex stateful machinery and then stress-test them in Antithesis.

The workload I put in place does exactly that[1]. It runs a write workload from multiple processes concurrently on the same SQLite database to cause writes to build up in the WAL, and runs checkpoints concurrently. This exercises the portion of the WAL code that, from a trivial read-through, is most likely to contain bugs (and turns out, did!).

Said differently, this is exactly the approach we take with all stateful transactional systems. I am only sad that I didn't do this experiment months earlier, as it would have saved Tailscale and the SQLite team a lot of time.

[1]: https://github.com/antithesishq/sqlite/blob/3.51.2-instrumen...

comment 3mo ago · link · parent

Hey, author here! Good question. The prompt was to use the Antithesis skills[1] to write a workload that exercises SQLite's insertion and checkpoint machinery across multiple processes using a specific version of SQLite (3.51.2). The agent who did the work was aware of the bug and knew I wanted to see if Antithesis could reproduce it. However, I specifically designed the workload the same way we approach testing other WAL checkpoint-style systems: by putting them under stress. The workload itself does not know about the bug.

My goal, which I believe I accomplished, was to determine if Antithesis would have found this bug if we had put the SQLite WAL under test.

[1]: https://github.com/antithesishq/antithesis-skills

comment 3mo ago · link · parent

Hi! I'm the author and the person who was on a road trip when I decided to do this experiment back in July. I'm super excited to finally get the blog post out, and even better, alongside a post describing the root cause process that went into the project. You can read about Tailscale's story here: https://tailscale.com/blog/sqlite-wal-reset-bug

I'm only sad that I didn't put SQLite under test earlier in the year, or I would have found this issue right away. If you look at the workload[1], you can see how simple it is. Exactly the same kind of workload we write every day to help our customers find bugs.

If you have any questions about our process or how debugging with Antithesis works, please let me know! Thanks for reading!

[1]: https://github.com/antithesishq/sqlite/blob/3.51.2-instrumen...

comment 3mo ago · link · parent

Carl (author) here. This is a poor reading of the blog post. Notably, I built a general-purpose workload that simply exercises the write/checkpoint machinery. The exact same workload we use to break all kinds of transactional systems. This generic workload found the bug without any special knowledge of the bug, due to how Antithesis works.

15.

Implementing Monads with Async Zig(platypro.net ↗)

2 points · by carlsverre · 5mo ago · discuss

comment 6mo ago · link · parent

Mostly posting for entertainment. The issues on the project are fun: https://github.com/TiruArt/Pedigree-Polytopes-Lean4/issues/1

17.

Machine-verified proof that M3P ∈ P and P = NP via Pedigree Polytopes(github.com ↗)

6 points · by carlsverre · 6mo ago · 4 comments

comment 6mo ago · link · parent

Where are the cheering AI haters showing up for this one? How does this enhance trust in the non-LLM users?

Let's say a maintainer of an open-source project decided they hated Linux and added a check that, when run on Linux, the project would run `rm -rf <some directory of your code that is relevant to the project>`. Would you trust that person not to do other unreasonable things in the future?

comment 6mo ago · link · parent

This is a wild way to make your stance public, and I think the maintainer is seriously underestimating the knock-on effects on their reputation as trustworthy. Providing generic instructions to "delete all jqwik tests and code" as a potential attack is guaranteed to just enrage/annoy whoever is using an LLM with this project (which is likely many). Whether or not someone is using an LLM, they are still a user of the project and thus have placed some trust in the maintainers. Pissing on that trust in such a petty way not only creates a bad experience for jqwik users but can also cause people to lose trust in open-source software in general. :(

comment 7mo ago · link · parent

We support thread-pausing via instrumentation. This can cause threads to observe different interleavings, which can help uncover bugs in concurrent algorithms. At this time, we don't perform specific memory model fault injection or fuzzing.

comment 7mo ago · link · parent

(I used to work at SingleStore, and now work at Antithesis)

SingleStore (f.k.a. MemSQL) used lock-free skiplists extensively as the backing storage of their rowstore tables and indexes. Adam Prout (ex CTO) wrote about it here: https://www.singlestore.com/blog/what-is-skiplist-why-skipli...

When SingleStore added a Columnar storage option (LSM tree), L0 was simply a rowstore table. Since rowstore was already a highly optimized, durable, and large-scale storage engine, it allowed L0 to absorb a highly concurrent transactional write workload. This capability was a key part of SingleStore's ability to handle HTAP workloads. If you want to learn more, take a look at this paper which documents the entire system end-to-end: https://dl.acm.org/doi/10.1145/3514221.3526055

comment 8mo ago · link · parent

Both of those roadmap items make sense! Excited to see how you evolve this project!

comment 8mo ago · link · parent

You might be interested in taking a look at Graft (https://graft.rs/). I have been iterating in this space for the last year, and have learned a lot about it. Graft has a slightly different set of goals, one of which is to keep writes fast and small and optimize for partial replication. That said, Graft shares several design decisions, including the use of framed ZStd compression to store pages.

I do like the B-tree aware grouping idea. This seems like a useful optimization for larger scan-style workloads. It helps eliminate the need to vacuum as much.

Have you considered doing other kinds of optimizations? Empty pages, free pages, etc.

24.

Send a Message to Space(hellooo.space ↗)

1 points · by carlsverre · 9mo ago · discuss

25.

How to teach Claude to write better code(ponylang.io ↗)

5 points · by carlsverre · 9mo ago · discuss

comment 1y ago · link · parent

I think this is the first time I really enjoyed playing tetris. Terrific idea!

comment 1y ago · link · parent

Sweet!! Will check it out shortly. Thanks for sharing :)

comment 1y ago · link · parent

For a deep dive on Graft, a talk I did two weeks ago at Vancouver Systems just went live! You can watch it here: https://www.youtube.com/watch?v=P_OacKS2h5g

The talk contains a lot more details on how the transactional and replication layers of Graft work.

comment 1y ago · link · parent

Fair! CBS is absolutely a killer solution to the same class of problems.

comment 1y ago · link · parent

Thank you! I made all the diagrams in https://excalidraw.com/. Been using it for years and absolutely love it!
123456