Joka is a simple nogc utility library for the D programming language. It provides data structures and functions that work without garbage collection, offering precise memory control and minimal runtime overhead.
- Dynamic Array (
List
) - Dynamic Stack Array (
FixedList
) - Sparse Array (
SparseList
) - Generational Array (
GenerationalList
) - Flattened 2D Array (
Grid
) - Tagged Union (
Variant
) - Hash Table
- Arena Allocator
This project offers support for the @safe
attribute and aims for good compatibility with BetterC.
If you encounter errors with BetterC, try using the -i
flag.
This project can be compiled to WebAssembly as it doesn't use the D standard library. However, since it relies on the C standard library, you will need something like Emscripten to make it work.
Start with the examples folder for a quick overview.