Re:Fay -- A proper subset of Haskell that compiles to Javasc...
by masklinn on Monday July 23, 2012 @05:06AM
(#4280167)
> It's quite difficult to write a VM target that is fast for both dynamic and statically typed languages.
It's also nigh-impossible to design a bytecode which does not significantly restrict (and dictate) the semantics of the VM running it. It mandates a bytecode-based VM, to start with (V8 does not use bytecode).
Since we have to have legacy support for javascript approximately forever anyway, I'd say the best way forward is to embed a vm from the statically typed world as a target for static languages and leave js as a cross compilation target for dynamic languages.
To avoid nasty cross vm memory leaks you'd probably want to limit interoperability -- at least at first.