3 ms·
> 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
by habibur 4y ago
> 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.
- throwawaymaths 4y ago*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).
- eatonphil 4y agoInterestingly 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/HISTORY.md https://github.com/tigerbeetledb/tigerbeetle/blob/main/docs/...