Skip to content

Lua VM running in a WASM environment

Notifications You must be signed in to change notification settings

Dreagonmon/wasm_lua

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

wasm_lua

Lua VM running in your browser!

Open here, if it works you should see "Hello Lua!".

Each update is executed in a unique VM instance via WASM + emscripten.

Currently test on Firefox 52.0 but probably works on other platforms as well.

Why?

Lua is a fast, highly embeddable VM that boasts a wide set of features allowing it to be adapted to a diverse set of domains and platforms.

  • Can be run in 400kb of memory or less.
  • Multi-paradigm via metatables, closures and coroutines.
  • Robust, proven VM that's shipped on platforms including MIPS, x86, ARM and many others(and now WASM!).
  • Small, easy to understand language.
  • Extensible debugger hooks for easy on-target debugging.

Thanks to rawgit for hosting.

Files

  • main.js, main.wasm: auto-generated
  • main.c: export lua C function to javascript
  • index.html: test page and useage example
  • makefile: emcc config (which function to export, init function name, ...etc.)
  • lua-: lua source code without any modify

About

Lua VM running in a WASM environment

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 64.1%
  • HTML 32.5%
  • C++ 1.7%
  • Makefile 0.9%
  • Roff 0.5%
  • CSS 0.2%
  • Objective-C 0.1%