News for hackers. Stuff that matters.
Re:Synadia and TigerBeetle Commit $512k USD to the Zig Softw... by derekcollison on Saturday October 25, 2025 @09:30AM (#45703746)
Re:Synadia and TigerBeetle Commit $512k USD to the Zig Softw... by tm11zz on Saturday October 25, 2025 @12:03PM (#45704879)
> We run a fuzzing fleet of 1,000 dedicated CPU cores 24/7.

that a lot

Re:Synadia and TigerBeetle Commit $512k USD to the Zig Softw... by tazjin on Saturday October 25, 2025 @12:22PM (#45705040)
Assuming they're being economical (and considering the level of thinking TigerBeetle seems to put into stuff - they probably are) this might be only a few beefy physical servers.

For them it seems safety and QA is a large part of the sales pitch, so that seems worth it.

Re:Synadia and TigerBeetle Commit $512k USD to the Zig Softw... by jorangreef on Saturday October 25, 2025 @12:26PM (#45705075)
Thanks! It's around 21 boxes, 48 cores each [1], and in Finland so there's natural efficient cooling.

Fun fact, Hetzner were surprised at the size of the order, and sent us an email to confirm. ;P

[1] https://x.com/TigerBeetleDB/status/1841089728935821674/quote...

Re:Synadia and TigerBeetle Commit $512k USD to the Zig Softw... by femiagbabiaka on Saturday October 25, 2025 @03:34PM (#45706385)
The principle of crashing on application violation makes it worth it I’d guess
Re:Synadia and TigerBeetle Commit $512k USD to the Zig Softw... by jorangreef on Saturday October 25, 2025 @09:36AM (#45703782)
Thank you Derek, such a pleasure to do this with you.
Re:Synadia and TigerBeetle Commit $512k USD to the Zig Softw... by praveenperera on Saturday October 25, 2025 @09:39AM (#45703803)
Are you guys using Zig?, love NATS by the way.
Re:Synadia and TigerBeetle Commit $512k USD to the Zig Softw... by derekcollison on Saturday October 25, 2025 @10:02AM (#45703989)
We are waiting on the IO abstraction for a supported Zig client (There are others though today), but this is specifically for a new initiative at Synadia that we will share more details about soon!
Re:Synadia and TigerBeetle Commit $512k USD to the Zig Softw... by jtrueb on Saturday October 25, 2025 @12:14PM (#45704976)
The reason for not choosing Rust still doesn't make any sense to me. If you don’t want to OOM, need correctness, are following the power of ten (where you aren’t allocating anyways), I don’t see the conflict or harm of additional enforced correctness.

Also, Rust does support checked arithmetic and has stable toolchains.

Re:Synadia and TigerBeetle Commit $512k USD to the Zig Softw... by jorangreef on Saturday October 25, 2025 @12:17PM (#45704988)
Out of interest, did you read the two posts [0][1] linked in there by matklad, creator of rust-analyzer as well as IntelliJ Rust, on our team?

Suffice to say, we know the intrusive memory and comptime patterns we use in our code base, and they wouldn't be as natural to express in a language other than Zig.

Rust is a great language, but Zig made more sense for what I wanted to create in TigerBeetle.

[0] https://matklad.github.io/2023/03/26/zig-and-rust.html

[1] https://lobste.rs/s/uhtjdz/rust_vs_zig_reality_somewhat_frie...

Re:Synadia and TigerBeetle Commit $512k USD to the Zig Softw... by jtrueb on Saturday October 25, 2025 @12:21PM (#45705034)
Yeah, I think BDFL wants to use Zig. I understand that it is nice for Zig to feel more like C, and that can be fun. If the toolchain is so far away from being mature, how long will it take the database to be mature?

Since previous comment was edited. I would clarify that I don’t doubt the engineering capabilities, just the timeline. A from scratch database in _established_ toolchains take 5-10 years. The Zig toolchain also is going to be evolving in the same timeframe or longer. The codegen, linking, architecture specific bugs etc. Isn’t it double the effort to bring to bear in the market?

Re:Synadia and TigerBeetle Commit $512k USD to the Zig Softw... by jorangreef on Saturday October 25, 2025 @12:48PM (#45705246)
You're right! In the past, distributed databases written without Deterministic Simulation Testing (DST) would typically take around ~10 years (~5 years for the consensus protocol and ~5 years for the storage engine). And then not without bugs.

However, and we write about this also in the post, but TigerStyle and DST enabled us to ship TigerBeetle to production in 3.5 years, in less time, to a higher standard, and to be the first distributed database with an explicit storage fault model (Kyle Kingsbury added new storage fault injectors to Jepsen) solving Protocol-Aware Recovery.

Our Jepsen audit is here (also linked in the post): https://jepsen.io/analyses/tigerbeetle-0.16.11

For more on TigerStyle as a methodology, hope you enjoy this talk: https://www.youtube.com/watch?v=w3WYdYyjek4

Re:Synadia and TigerBeetle Commit $512k USD to the Zig Softw... by jtrueb on Saturday October 25, 2025 @01:01PM (#45705341)
I was on a team with a similar timeline with C++ (4 year). All the language and toolchain difficulties came after shipping. Meeting new customer needs meant shifting from greenfield to brownfield engineering. We were chasing down strange platform and provider behaviors. Adding features while maintaining performance and correctness, meant relying on knowledge of tools available in the broader community. Solutions for build issues came through a combination of in-house effort and industry partners with related experience. Having two stable compilers (gcc and clang) was super helpful.
Re:Synadia and TigerBeetle Commit $512k USD to the Zig Softw... by matklad on Saturday October 25, 2025 @01:22PM (#45705489)
There's a change in the tradeoffs in the above scenario:

- you still get extra benefit from Rust, but the magnitude of the benefit is reduced (e.g., no UAF without F).

- you still get extra drawbacks from Rust, but the magnitude of drawbacks is increased, as Rust generally punishes you for not allocating (boxing is a common escape hatch to avoid complex lifetimes).

Just how much tradeoff is shifted is hard to qualify unambiguously, but, from my PoV (Rust since 2015, TB/Zig since late 2022), Zig was and is the right choice in this context.

Re:Synadia and TigerBeetle Commit $512k USD to the Zig Softw... by jtrueb on Saturday October 25, 2025 @01:50PM (#45705708)
I mainly use Rust in embedded now. I don’t always rely on encoding all of the correctness in the Rust type system. To a degree all the old ways of enforcing correctness are still in play, I am just choosing when to take use idiomatic Rust or escape hatch out via shim to C-style Rust. It reminds me quite a bit of how C and C++ shops require another layer of macros or templates be used for containers, resources, etc.

The build time of Zig seems like the most desirable piece worth deciding over. Developer time is money, but it isn’t weird to have multi-hour build times in a mature project either C, C++, or Rust. The correctness suite is a bigger time sink than the build though. When building a database, you could drive the build time to 0 and still have hours in CI.

Re:Synadia and TigerBeetle Commit $512k USD to the Zig Softw... by jandrewrogers on Saturday October 25, 2025 @01:34PM (#45705588)
Several types of correctness are more difficult to enforce in Rust than in some other languages due to its relatively weak compile-time facilities. Modern database engines don't allocate memory at runtime, aren't multithreaded, they explicitly schedule ownership, etc. They also use the types of data structures and patterns that give the borrow checker fits. Rust's correctness capabilities are relatively less valuable in this context.

Extensive compile-time capabilities that allow you to verify many other types of correctness add enormous value when building database engines. This is a weak part of Rust's story.

Re:Synadia and TigerBeetle Commit $512k USD to the Zig Softw... by dafelst on Saturday October 25, 2025 @02:17PM (#45705903)
Can you elaborate a little more on what structures and patterns those are? I have built some database like things in rust (lots of zero copy and slice shenanigans, and heavily multi-threaded) and while it was tricky in some spots I haven't run into anything I have had to substantially compromise on.

Your use cases are likely more complex, so I'm curious what I should be looking out for.

Re:Synadia and TigerBeetle Commit $512k USD to the Zig Softw... by scuff3d on Saturday October 25, 2025 @03:12PM (#45706246)
My understanding from reading other blogs on TigerBeetle (and the Power of Ten rule) is that it's not that they aren't allocating at all. It's all static allocation up front. Zig makes these far easier to manage with its use of Allocators. Rust wants everything to be RAII, tons of little allocations who's lifetimes are managed by the borrow checker. You can use other patterns in Rust of course but you're fighting the borrow checker.

Zig gives you a lot of tools to enforce correctness in simple and straightforward ways, where as Rust comes with a lot of complexity. TigerBeetle isn't the first project to talk about this, Richard Feldman also points out similar advantages to Zig over Rust as the reasoning for the Roc compilers rewrite from Rust to Zig.

Re:Synadia and TigerBeetle Commit $512k USD to the Zig Softw... by dang on Saturday October 25, 2025 @03:36PM (#45706415)
Since that post seems to include more information, we've merged the comments into https://news.ycombinator.com/item?id=45703926.
Re:Synadia and TigerBeetle Commit $512k USD to the Zig Softw... by collinmanderson on Monday October 27, 2025 @11:42AM (#45722252)
Would it make sense to merge the points/upvotes too?
Re:Synadia and TigerBeetle Commit $512k USD to the Zig Softw... by dang on Monday October 27, 2025 @04:50PM (#45726120)
For now, we generally leave those to randomness/fate on the assumption that they're not that important.

Longer-term, it is on the list to make a karma-sharing system, to solve the problem of multiple submitters contributing the same story to HN.