5 releases
0.1.4 | Sep 10, 2024 |
---|---|
0.1.3 | Jun 24, 2024 |
0.1.2 | Jun 13, 2024 |
0.1.1 | Jun 11, 2024 |
0.1.0 | Jun 11, 2024 |
#251 in Memory management
20KB
432 lines
Roussillon : Memory
This crate provides some structs and trait to manage memory and references for an abstract language.
Traits
Allocator
Dereference
Structures
Region
: a vector containingValueCell
s,Area
: a catalog of namedRegions
,DroppableRegion
: aRegion
which can beactive
oudropped
.
Heap
: a memory structure (generation-arena like) with :HeapReference
: aDataValue
which contains aReference
to aRegion
's generation in aHeap
.HeapReferenceType
: theDataType
of aHeapReference
value.
Stack
: a FIFO memory structure with :StackReference
: aDataValue
which contains aReference
to aRegion
in aStack
.StackReferenceType
: theDataType
of aStackReference
value.
License
(c) 2024 Sébastien Geldreich
This work is published under the MIT License.
Dependencies
~55KB