dcreager.net

Eastham stacks

2026-07-02

The endless iteration on the stack design continues.

Four stacks

Bethel stacks

Instead of a fixed set of numbered stacks, we're going to go with an arbitrary set of named stacks.

There will still be some stacks that are typically used for specific purposes:

  • $k is the continuation stack
  • $args receives arguments to an invoked branch
  • $ret receives the return values that are passed to a continuation

These all start with a $ prefix. Stacks with simple alphanumeric names are available for user code. This will make it easier to mimic local variables, though each is a true stack, which might open up some interesting possibilities.

..