2 releases

0.2.1 Aug 6, 2020
0.2.0 Aug 6, 2020

#134 in #scripting

38 downloads per month
Used in 2 crates


5.5K SLoC

Build Status


STK, a simple stack-based virtual machine.


If you want to help out, there's a number of optimization tasks available in Future Optimizations.

Create an issue about the optimization you want to work on and communicate that you are working on it.

Features of stk

  • Clean Rust FFI.
  • Stack-based C FFI like with Lua (TBD).
  • Stack frames, allowing for isolation across function calls.
  • A rust-like reference language called Rune.

Rune Scripts

stk comes with a simple scripting language called Rune.

You can run example scripts through rune-cli:

cargo run -- ./scripts/hello_world.rn

If you want to see diagnostics of your unit, you can do:

cargo run -- ./scripts/hello_world.rn --dump-unit --trace


~93K SLoC