The level of indirection is minimal, basically c++ with garbage collection. That's why they're statically typed.
Both perform within a small margin of native code, with the major exceptions of vector instructions that aren't supported by all CPU's
Both perform within a small margin of native code, with the major exceptions of vector instructions that aren't supported by all CPU's
I lost count how many times I have reviewed code where a for loop is used instead of System.arrayCopy().
Or the times I have seen code that my CS data structures teacher would probably give a plain 0, even if done in C.
I'd love to make them code in rust, their inability to write code, to even copy/paste it will save so many maintenance problems.
There is precedent for this in Netty where they use a native poll mode driver and everything else Java, and it performs about as fast as pure C code on Techempower benchmarks