A tiny stack virtual machine for Node 22. It runs bytecode programs with 32-bit wrapping arithmetic, branches, calls, 256 words of memory, input and output, and ten traps with their own exit codes.
MAKEFUN_INPUT_DIR=<input dir> MAKEFUN_OUTPUT_DIR=<output dir> node main.tsFor each i001–i040 it reads <input>/<id>/program.bin and <input>/<id>/input.bin, then writes <output>/<id>/stdout.bin and <output>/<id>/exit.txt.