logoalt Hacker News

KingMobyesterday at 5:13 AM3 repliesview on HN

A casual read of TigerBeetle's practices makes it clear they're doing some very unusual things, both in their memory allocation strategy and in their testing/verification.

Despite TigerBeetle being one of the highest-profile remaining Zig projects, I actually don't think they're representative of the average Zig project at all.


Replies

GuB-42yesterday at 12:45 PM

It is quite representative of an embedded software project. TigerBeetle is not what we usually call embedded software, but it is built like it: static memory allocation, a self-contained executable, and a strong focus on determinism are typical in that field, especially for critical software.

And I think embedded software is a field where Zig will be at its best. The only thing it is missing is maturity. When project lifetimes are measured in decades and changing a single byte can cost millions, no one in his right mind will pick a language that is still in development. Things will become interesting when it reaches 1.0.

jandrewrogersyesterday at 2:45 PM

Static memory allocation is idiomatic in high-performance software. You do the same in C++ if you care about performance and reliability.

Yokohiiiyesterday at 5:28 AM

Can you elaborate on the unusual part?

show 2 replies