4 ms·
In all seriousness I think headway could be made with starting a byte code project for those that want to go down this path. Your VM is going to need to run in
by hermanhermitage 14y ago
In all seriousness I think headway could be made with starting a byte code project for those that want to go down this path.
Your VM is going to need to run in and generate js (or asm.js subset) - or you'll need to patch IE, Firefox, Chrome etc.
The problem is of course this:
http://article.gmane.org/gmane.comp.lang.lua.general/75426 http://article.gmane.org/gmane.comp.lang.lua.general/75426
Which is why there are no very high performance multi language VMs.
High level languages such as C still do not compete with hand rolled assembly for diamond-patterns or any situation where the minimum unit of scheduled work is very fine grain.
- adamnemecek 14y ago> In all seriousness I think headway could be made with starting a byte code project for those that want to go down this path. Your VM is going to need to run in and generate js (or asm.js subset) - or you'll need to patch IE, Firefox, Chrome etc. Well, when I was thinking about this (very theoretically) in the past, the road that seemed to me to be the easiest to take (but not exactly elegant) to get to some prototype was to have a proxy on the client that all browser communication goes through, which executes all code returned from the server and which does all the heavy lifting and returns already rendered html to the browser. And yeah, I realize that doing a high performance VM is probably the hardest part.