Email or username:

Password:

Forgot your password?
Bad Diode

Been exploring linear allocators (arenas) and I am converted! Quietly putting together a C base layer library (lovingly named badlib.h) with my most commonly used data structures and simple but powerful logging functions based on this. In ~1.3kloc I already have a lot of powerful options with very pleasant ergonomics. Arenas are great, they can be self freeing without RAII or bundle allocations together and are compatible with fixed memory systems like game consoles. Hope to share more soon!

1 comment
⛧ esoterik ⛧

@bd yes! for #uxn i find arenas to be a really nice compromise between heavyweight memory management and totally naive buffers.

git.phial.org/d6/nxu/src/branc

Go Up