Re:Lua 5.3: integers, bitwise operators, and a basic UTF-8 l...
by justincormack on Monday January 12, 2015 @05:03PM
(#8876721)
You need to define a DOM interface to do anything useful, which is a fair amount of work.
Re:Lua 5.3: integers, bitwise operators, and a basic UTF-8 l...
by daurnimator on Monday January 12, 2015 @07:11PM
(#8877340)
lua.vm.js can manipulate javascript objects. the only outstanding issue is tracking garbage (lua closures can leak into javascript).
In regards to actually doing the DOM work, craig barnes is doing great work over with lua-gumbo: https://github.com/craigbarnes/lua-gumbo
Re:Lua 5.3: integers, bitwise operators, and a basic UTF-8 l...
by daurnimator on Monday January 12, 2015 @07:09PM
(#8877335)
It supports script tags: https://kripken.github.io/lua.vm.js/repl.html
Code that does it: https://github.com/kripken/lua.vm.js/blob/master/src/lua.js#...
Of course this is only a proof-of-concept which just runs a Lua REPL in the browser. I wonder if it is possible (and if so, how hard it is) to make the browser run <script language="lua"></script> code.