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