3 ms·
Java is not being rewritten to C though. It is being rewritten to assembly (by a C++ program). ---- Also, by the same argument you're using, git should be fas
by BenoitP 5y ago
Java is not being rewritten to C though. It is being rewritten to assembly (by a C++ program).
----
Also, by the same argument you're using, git should be faster if written in assembly; since assembly can do more than C can.
The tradeoff between performance and easiness to write the program has already been made by writing git in C. The only difference in using Java is a different point in that tradeoff.
I'd also contend that Java gives you much more bang for the buck in that tradeoff than C. Java is stupidly easy to write, especially if you want to do multithreading. With C you'd have to start writing some form of primitive GC, or have the disciplined paranoia of Rust's borrow checker yourself.