r/ProgrammingLanguages • u/Nuoji C3 - http://c3-lang.org • Feb 13 '26
Allocators from C to Zig
https://antonz.org/allocators/This is an overview of allocator usage and availability in a few low level languages: Rust, Zig, Odin, C3, Hare and C.
I think it might be interesting to people designing standard libraries for their languages.
43
Upvotes
View all comments
Show parent comment
1
u/Wheaties4brkfst Feb 17 '26
Ah I see. Yes I was not thinking of allocators outside of malloc. I am still surprised by your first example. It’s considered “failed” if you don’t get the exact number of bytes requested? Or am I interpreting that wrong.