civboot / fngi

a readable language that grows from the silicon
The Unlicense
59 stars 3 forks source link

Kernel memory manager #7

Closed vitiral closed 1 year ago

vitiral commented 2 years ago

I've decided to re-architect a few things with how words are compiled, where the dictionary is stored, what the dictionary is, etc.

BST Operations

The kernel will expose D_bst for DV operations. FT will get a reference to the entry, SR will create an entry and return the reference. It will not populate any data by itself

The layout of an entry will be:

struct cBSTNode [ \ BST node using counted data (single byte len) key
  left, right: &BSTNode;
  key: &cdata;
  meta: U1;
]

Only the first bit of the meta byte is used as the red/black bit.

Costs and Improvements

vitiral commented 1 year ago

fixed by using civc