r/programming • u/BadMoonRosin • Oct 21 '17
Using Java 9 Modularization to Ship Zero-Dependency Native Apps
https://steveperkins.com/using-java-9-modularization-to-ship-zero-dependency-native-apps#.Wes5IMWbUWE.reddit
310
Upvotes
r/programming • u/BadMoonRosin • Oct 21 '17
6
u/pron98 Oct 21 '17 edited Oct 21 '17
That's really not the point. Of course there are some instances of software running without scripts. The point is that the most pervasive software is normally a mix of code compiled at build time and code compiled/interpreted at runtime.
Why? Java, for example, compiles to very efficient machine code, and what runs is the same code as a C program. Javascript is similar. The only difference is that the code is generated at runtime rather than at build time.
It's not that a JIT compilation doesn't have a cost. It takes some time to warm up, and takes up RAM and energy, but max-performance is not it. I also agree that your distinction may be meaningful in constrained environments, but not in general.