Skip to content

MiniVM v0.0.4 - Draw Straws

Latest
Compare
Choose a tag to compare
@ShawSumma ShawSumma released this 26 Jun 09:09

Release 0.0.4

Things work more often, thanks to many bug fixes and a new Interpreter.

New Interpreter

Does not use LBBV (Lazy Basic Block Versioning).
Work will resume on a new JIT to go along with it soon.

Removed Old Options

Most options relating to TB are removed for the time being until a TB JIT is reimplemented.

Graphics API.

DOM style graphics with tables as the focus.
See test/app/gui.lua for examples of how to use it.
See test/app/snake.lua for a simple game using gui.lua.

New Web Port

The included minivm-web.zip is a complete MiniVM runtime with graphics included.
Unzip minivm-web.zip to a folder.
Host it with your favorite web serve.
Visit index.html in your browser.

In the URL you can set the app parameter ?app=snake, ?app=maze, ?app=dig (WIP), ?app=draw (WIP).

Using the builtin Python web server

  1. Unzip minivm-web.zip to minivm-web.
  2. Run python3 -m http.server --directory minivm-web in a terminal from where minivm-web is
    2.1. On Windows run py -3 -m http.server --directory minivm-web
  3. Open in the browser `localhost:8000/index.html?app=snake
  4. Try snake and the other apps