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

#336 in Memory management

Download history 142/week @ 2024-09-07 39/week @ 2024-09-14 9/week @ 2024-09-21 21/week @ 2024-09-28 1/week @ 2024-10-05 1/week @ 2024-10-12

357 downloads per month

MIT license

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 containing ValueCells,
    • Area : a catalog of named Regions,
    • DroppableRegion : a Region which can be active ou dropped.
  • Heap : a memory structure (generation-arena like) with :
    • HeapReference : a DataValue which contains a Reference to a Region's generation in a Heap.
    • HeapReferenceType : the DataType of a HeapReference value.
  • Stack : a FIFO memory structure with :
    • StackReference : a DataValue which contains a Reference to a Region in a Stack.
    • StackReferenceType : the DataType of a StackReference value.

License

(c) 2024 Sébastien Geldreich

This work is published under the MIT License.

Dependencies

~55KB