Elektrine lite

← Feed

@lritter@mastodon.gamedev.place

Post #2937848

2026-05-13 21:20 UTC

@cda@macaw.social i sort of wrote libarcmem as the killer for all this: shareable offset pointers. meaning you can slice strings and also share the slices. and then prepend or append to them and use them as dynamic arrays again. all type free.

Replies (1)

  • @cda@macaw.social 2026-05-13 22:21

    @lritter@mastodon.gamedev.place oh interesting! I was toying with supporting slices. Thought only briefly about a special allocator just for strings or not...or schemes like un-special allocation but manage chunk-sized allocations sort of like gap-buffers so prepending and appending strings is free-or-cheap within some bounds.

    Open ##2937849