Search code examples
oopnative-code

Is there any high-level, natively-compiled object-oriented language in wide use?


There are lots of oop languages, but I couldn't find any that has conveniences like garbage collection, but compiles natively to machine code. Sort of like between C and java/c#. One interesting language I found was Vala, but that's limited to the GNOME platform and is not that well-known


Solution

  • Go is probably closest.

    But why on earth do you want it natively compiled anyway?

    JIT compilation of portable bytecode has proved to be an extremely effective strategy. It compiles down to native code at runtime (so you get up to the performance of native code after the first few iterations) and it avoids the issues of having to build and manage platform-specific compiled binaries.