2 releases

0.2.1 Aug 6, 2020
0.2.0 Aug 6, 2020

#933 in Programming languages


Used in 2 crates

MIT/Apache

225KB
5.5K SLoC

Build Status

stk

STK, a simple stack-based virtual machine.

Contributing

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

Dependencies

~4–14MB
~147K SLoC