Joka - Memory management, but without a big dependecy.

Kapendev alexandroskapretsos at gmail.com
Thu Jan 8 16:35:15 UTC 2026


Hi!

I've updated [Joka](https://github.com/Kapendev/joka), my utility 
library for doing manual memory management. It includes things 
like math functions too, but that part is not important. I mostly 
wanted to highlight two things I liked in this release:

- **Flat structure**:
   I've flattened the source code and combined some files, going 
from 15 to 7 modules.
   A nice thing about this is that you can easily copy-paste files 
into your own project if you don't want a full dependency on Joka.
   For example, the allocation part is just 3 (4 based on version) 
modules: `ascii.d`, `memory.d`, and `types.d`. Could be simpler, 
like maybe removing the need for `types.d` with a version, but 
it's fine for now.

- **Memory management "guide"**:
   I worked on a FAQ for this project that acts like a simple 
guide for memory management.
   It's not the best guide because it's too Joka focused, but I 
hope it might help reduce the confusion around this topic in D 
for new users, the common meme being reaching for `-betterC` 
and/or `@nogc` purely for purity reasons.

Let me know what you think!!1!


More information about the Digitalmars-d-announce mailing list