3 ms·
Go doesn't have a VM, it is always pre-compiled to native binaries specific to the target architecture/platform you want to run it on. It also generally speaki
by didibus 4y ago
Go doesn't have a VM, it is always pre-compiled to native binaries specific to the target architecture/platform you want to run it on.
It also generally speaking doesn't have an intermediate representation that you could target directly, because it does a lot of optimization directly on the GO AST. Though you might be able to have a different language compile to its SSA directly, but it would not be easy at all.
The GO runtime also doesn't allow for any dynamic code loading, so you wouldn't be able to have a REPL.
- funstuff007 4y agoYes, strictly speaking you are correct. I guess I consider any language that has built-in GC as effectively a VM (i.e. there's a lot of code being lugged around you don't control).