3 ms·
"It's compiled to bytecode and executed on internal VM" What does it take a byte code interpreter to be a VM?
by stewbrew 7y ago
"It's compiled to bytecode and executed on internal VM"
What does it take a byte code interpreter to be a VM?
- saagarjha 7y agoTo my knowledge, nothing, really.
- kroltan 7y agoI suppose it's a VM if it has some sort of isolation from the actual machine (for example, a virtual/bounded memory space, among other things).
- abainbridge 7y agoI'm not sure the terms are well defined, but here's my attempt. The BASIC implementation on a ZX Spectrum (and probably most 8-bit home computers of the 80's) was an interpreter but not a VM because it did not implement any isolation. A BASIC program could access any address on the machine and jump execution to any address. A VM, in contrast, would do bounds checking on pointer accesses and limit which syscalls were allowed. You'd expect that if two instances of a VM were run at the same time, that programs in those VMs would not be able to access each other's memory in general.