Skip to content

gianpiero/lua.vm.js

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lua.vm.js

The Lua VM, on the Web

Online demo: http://kripken.github.io/lua.vm.js/lua.vm.js.html

Status

This began as an experiment to see how fast the Lua VM can run on the web. That was successful (performance is quite good in both firefox and chrome).

Next step is to iterate on the Lua <=> JS interoperability. Clever solutions to the lack of finalisers in Javascript are being searched for.

Building

To build, run make emscripten in the lua subdirectory

Usage from NodeJS

$ npm install lua.vm.js

And inside your script:

var LuaVM = require('lua.vm.js');

var l = new LuaVM.Lua.State();
l.execute('print("Hello, world")');

License

This project is MIT/X11 licensed. Please see the COPYING file in the source package for more information. Copyright (c) 2013 Alon Zakai (kripken) Copyright (c) 2014 Daurnimator

Lua is licensed under MIT.

About

The Lua VM, on the Web

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 46.3%
  • HTML 30.0%
  • JavaScript 20.4%
  • Lua 1.3%
  • Makefile 0.8%
  • CSS 0.6%
  • Other 0.6%