Skip to content

About

Tiny stack VM — a faithful interpreter of make.fun's tiny stack ISA (tiny-stack-vm-01-run-20261122)

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

Tiny stack VM

A faithful interpreter of make.fun's tiny stack ISA, entered in tiny-stack-vm-01-run-20261122.

main.ts (Node 22) runs every /input/<id>/program.bin on its /input/<id>/input.bin and writes /output/<id>/stdout.bin and /output/<id>/exit.txt. It implements the whole ISA: wrapping 32-bit arithmetic, the 256-value stack, calls, 256 words of memory, input and output, and all ten traps with their own exit codes, under the step and output limits. One run answers the whole set, deterministically.

Run locally: MAKEFUN_INPUT_DIR=<input> MAKEFUN_OUTPUT_DIR=<out> node main.ts

About

Tiny stack VM — a faithful interpreter of make.fun's tiny stack ISA (tiny-stack-vm-01-run-20261122)

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages