Skate is my attempt to build a useful Scheme programming language for an 8-bit Z...
John Hardy @jhlagado@defcon.social
Skate is my attempt to build a useful Scheme programming language for an 8-bit Z80 system with a 64K address space. It is part of my search for a minimum viable Scheme that can support real programs on a very small machine.
In this latest instalment on building Skate I look at the problem of organising the heap. Scheme uses pairs, bindings, closures, strings and vectors and they do not all occupy the same amount of memory. I’ve settled on a slab allocator. The heap is divided into 256-byte pages and each page serves one size class. When all of its slots become free a page can return to the shared pool for another kind of object.
It’s a deliberately simple design. It still has fragmentation costs and larger programs will show whether a more elaborate allocator is justified. For now it gives the collector and allocator a structure I can measure and improve.
https://semantic-scroll.com/content/2026/09/25/01-packing-the-heap/