Comment by nicce

2 days ago

But is TigerBeetle then even reasonable reference as an argument for Zig? Maybe they could have reached the same with plain C.

Zig still offers a lot of great additions that make systems work more reliable. Optionals and comptime are two helpful things C does not have, and there are plenty others. One of their core devs addressed this in a thread over on Lobsters [1]

> Bounds checks, checked arithmetic, strongly-typed alignment, strongly-typed error codes, tagged unions, explicit undefined are some rather important language features. If Zig didn't exist, TigerBeetle would probably have been written in C, and the safety gap between C and Zig is just gigantic. And safety is one aspect of the language, Zig has a lot of going on for it elsewhere!

[1] https://lobste.rs/s/6rkdik/rewriting_bun_rust#c_8gebpa