Re:Lua VM cross-compiled to JavaScript (1.4mb - takes a whil...
by silentbicycle on Friday November 26, 2010 @01:02AM
(#1941738)
I tried "for k,v in pairs(_G) do print("->", k,v) end" (I was curious what is and isn't sandboxed) and it just gave me an error.
[ Parent
| on HN ]
Re:Lua VM cross-compiled to JavaScript (1.4mb - takes a whil...
by pufuwozu on Friday November 26, 2010 @01:15AM
(#1941748)
There's no sandbox. This is the Lua virtual machine, compiled to LLVM bitcode with llvm-gcc/clang and then compiled to JavaScript with emscripten.
It's all client-side.
Re:Lua VM cross-compiled to JavaScript (1.4mb - takes a whil...
by nl on Friday November 26, 2010 @06:18AM
(#1942151)
I don't think (s)he was implying it was using a plugin or anything.
An occasional feature of other languages-in-Javascript is some kind of sandboxing for security - eg the Valija Javascript subset that runs in the Caja sandbox (which in turn is implemented in Javascript): http://code.google.com/p/google-caja/wiki/SubsetRelationship...
Re:Lua VM cross-compiled to JavaScript (1.4mb - takes a whil...
by silentbicycle on Friday November 26, 2010 @09:35AM
(#1942446)
Yes. Rather, I meant, which libraries were available. I figured that it'd at least have the core stdlib; that was just my first step exploring. It's a bad sign that the first statement I tried didn't work, though.