News for hackers. Stuff that matters.
Re:Moonshine – A lightweight Lua VM for the browser by dubcanada on Tuesday April 01, 2014 @09:59AM (#7508198)
Don't write it in JS :)

No but seriously, if you want to write a VM in Javascript, I would suggest learning how to write a VM in a language more suited to writing a VM in. Maybe C or C++ then writing one in Javascript.

Re:Moonshine – A lightweight Lua VM for the browser by stcredzero on Tuesday April 01, 2014 @10:27AM (#7508403)
Do what you want. The nice thing about writing a managed language with GC in a managed language with GC, is that you don't have to write the GC. (Or the JIT, if you do it right.)
Re:Moonshine – A lightweight Lua VM for the browser by yoklov on Tuesday April 01, 2014 @04:18PM (#7511371)
It's not really a VM then though, just a compiler.

EDIT: Maybe also a runtime.