A single-file C allocator with explicit heaps and tuning knobs
https://github.com/xtellect/spaces
#HackerNews #CProgramming #MemoryManagement #Allocators #HackerNews #GitHub
A single-file C allocator with explicit heaps and tuning knobs
https://github.com/xtellect/spaces
#HackerNews #CProgramming #MemoryManagement #Allocators #HackerNews #GitHub
You never do understand #lowlevel concepts in #programming until you actually go and implement them in something like #c .
I am working on the MQTT Client still and am learning a lot about #allocators and #memory.
I've learned about those things, both from the infosec and from the computer engineering sides, but now that I am actually implementing this stuff and having to make decisions and research and reading-the-effing-manual I feel that I am building an actual intuitive understanding of this stuff.
I've basically intuited 95% of the way to slab allocators before learning the actual term, like, it is just the logical progression.
Of course not everything is like this, but it feels very cool.
Man, I love computers so much!
Is it currently a new trend, that C open-source projects have to write their own allocator?
at work we are using 2 projects which have "recently" (over the last two years) implemented their own allocators. Both projects had used platform independent alignment. So their software might work or just crash with a "bus error" on another architectur.
Allocators Are Monkeys with Typewriters
https://tgmatos.github.io/allocators-are-for-monkeys-with-typewriters/
#HackerNews #Allocators #Monkeys #Typewriters #HackerNews #TechInsights
Uff!
"jemalloc Postmortem", Jason Evans (https://jasone.github.io/2025/06/12/jemalloc-postmortem/).
Via HN: https://news.ycombinator.com/item?id=44264958
On Lobsters: https://lobste.rs/s/thpska/jemalloc_postmortem
#Malloc #Libc #jemalloc #MemoryManagement #Retrospective #OpenSource #FOSS #Facebook #Meta #FreeBSD #Linux #Windows #Allocators

The jemalloc memory allocator was first conceived in early 2004, and hasbeen in public use for about 20 years now. Thanks to the nature of open source software licensing,jemalloc will remain publicly available indefinitely. But active upstream development has come to anend. This post briefly desc...
Mistakes and cool things to do with arena allocators
https://zylinski.se/posts/dynamic-arrays-and-arenas/
#HackerNews #Mistakes #arena #allocators #dynamic #arrays #programming #tips
When programming in Odin you can use arena allocators. If you use an arena allocator combined with a dynamic array, then there are a couple of pitfalls that may not be apparent at first. Let’s look at what arenas are, how you can run into trouble when naively using them with dynamic arrays and what you can do instead. What’s an arena? How does it work? Arenas and arena allocators are useful for grouping allocations that have the same lifetime.
Allocator-Aware C++ Type Design – Jonathan Coe – C++ on Sea 2024
Allocator-Aware C++ Type Design – Jonathan Coe – C++ on Sea 2024