4 ms·
> But you're being hyperbolic Not really. > there's absolutely no reason you couldn't have multiple implementations of the VM standard. If you define a bytec
by masklinn 14y ago
> But you're being hyperbolic
Not really.
> there's absolutely no reason you couldn't have multiple implementations of the VM standard.
If you define a bytecode standard, you greatly restrict the flexibility of VM implementors and the possible outputs. A stack-based bytecode will preclude register-based VMs, V8 doesn't even use bytecodes, it does all translations straight from source via two different JITs.
> My only thought here is that having a bytecode standard to work from might give a little more flexibility and power to folks who want to experiment with alternative client-side languages.
It doesn't. It might provide them more a little more simplicity because they merely need to generate binary bytecode streams rather than text, but it adds no expressive power, and as I noted it severely limits the flexibility of the runtime implementors.