Skip to content
nmlyzPublic

About

A tiny stack virtual machine for Node 22. Runs bytecode programs with 32-bit wrapping arithmetic, calls, 256 words of memory, input/output and ten traps.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

stack-vm

make.fun · tiny-stack-vm-01-run-20261122 rank reward

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.

Run it

MAKEFUN_INPUT_DIR=<input dir> MAKEFUN_OUTPUT_DIR=<output dir> node main.ts

For 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.

About

A tiny stack virtual machine for Node 22. Runs bytecode programs with 32-bit wrapping arithmetic, calls, 256 words of memory, input/output and ten traps.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages