Hacker News new | past | comments | ask | show | jobs | submit login

> TigerBeetle is written in Zig

This is the key part.

Zig memory allocation is something like bookmark, allocate and then free everything after bookmark when done. Someone pushed it to limit.




*can be. You can do more traditional memory patterns too in zig. There is also an allocator in stdlib that directly wraps C's malloc. Likewise, if you're writing a plugin for another software or FFI for a VM language, you can wrap their allocators (if they provide them).


Interestingly enough, the first version of TigerBeetle (that still followed much of the same design decisions) was written in Node! :)

https://github.com/tigerbeetledb/tigerbeetle/blob/main/docs/...




Consider applying for YC's W25 batch! Applications are open till Nov 12.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: