Skip to content

Instantly share code, notes, and snippets.

@psilord
Created January 20, 2025 05:35
Show Gist options
  • Select an option

  • Save psilord/8d6a6ecb976a2b38b6a7def5c6710643 to your computer and use it in GitHub Desktop.

Select an option

Save psilord/8d6a6ecb976a2b38b6a7def5c6710643 to your computer and use it in GitHub Desktop.
Type BLInst
Field N:UInt = 1024 * 1024 * 5 ' number of Lisp objects (doubles) to store
Field hp:ULong = 0 ' heap pointer
Field sp:ULong = N ' stack pointer
Field cell:Double[N]
Field nil_val:Double
Field quit_val:Double
Field tru_val:Double
Field err_val:Double
Field env_val:Double
End Type
Function makeBLInst() : BLInst
...
End Function
Then add the BInst reference to all functions so they know for which
BLInst object they are working for on their behalf.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment