Rust - small breakthrough 

Hey I finally managed to write a simple type-agnostic* linear allocator in Rust and just needed 1 line of unsafe code

* I mean an allocator of a fixed sized that just bumps a pointer on each allocation, but can actually return slices of different types to a single contiguous range of memory.
Now I wonder if I can store the outgoing references and invalidate them or can use some kind of borrowed pointer so you can't just continue using the memory after a reset

Sign in to participate in the conversation
Gamedev Mastodon

The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!