Latest Tech News

Stay updated with the latest in technology, AI, cybersecurity, and more

Filtered by: allocator Clear Filter

C3 solved memory lifetimes with scopes

2025-07-11 Modern languages offer a variety of techniques to help with dynamic memory management, each one a different tradeoff in terms of performance, control and complexity. In this post we’ll look at an old idea, memory allocation regions or arenas, implemented via the C3 Temp allocator, which is the new default for C3. The Temp allocator combines the ease of use of garbage collection with C3’s unique features to give a simple and (semi)-automated solution within a manual memory management

I was surprised by how simple an allocator is

Table of Contents Introduction Recently I was looking at an issue on mimalloc, a "state-of-the-art" memory allocator developed by Microsoft. The issue was quite simple, developers wanted a way to preallocate a piece of memory and use it as mimalloc's heap. Seeing that mimalloc does not offer this feature, I thought: "how hard can it be to write a memory allocator to manage a preallocated region?". The answer to this question is: "given enough time, even a monkey with a typewriter can write

Jemalloc Postmortem

Home Published Jun 12, 2025 The jemalloc memory allocator was first conceived in early 2004, and has been 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 an end. This post briefly describes jemalloc’s development phases, each with some success/failure highlights, followed by some retrospective commentary. Phase 0: Lyken In 2004 I began work on the Ly