Joka - Memory management, but without a big dependecy.

Kapendev alexandroskapretsos at gmail.com
Fri Jan 9 12:57:54 UTC 2026


On Thursday, 8 January 2026 at 16:35:15 UTC, Kapendev wrote:
> - **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.

OK, made it better with one commit and added some info on the 
readme:

**Standalone `memory.d`**

It is possible to just use the allocation part of the code 
without a full dependency on Joka. To do this, copy `memory.d` 
and `types.d` into a project and use the version 
`JokaPhobosStdc`. This version is required because it tells the 
code to use the Phobos libc bindings instead of Joka's `stdc.d` 
module.


More information about the Digitalmars-d-announce mailing list