flanpan / skynetjs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

emsdk list --old

使用emsdk安装 binaryen-tag-1.36.14-64bit emscripten-1.36.14 fastcomp-clang-e1.36.14-64bit


lua.vm.js

The Lua VM, on the Web

Online demo: http://daurnimator.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-2016 Daurnimator

Lua is licensed under MIT.

About

License:MIT License


Languages

Language:C 63.1%Language:HTML 28.7%Language:Lua 3.6%Language:JavaScript 1.9%Language:C++ 1.2%Language:Makefile 0.9%Language:Roff 0.5%Language:CSS 0.2%