News for hackers. Stuff that matters.
Re:Rust's Huge Compilation Units by lmilcin on Tuesday June 23, 2020 @04:03AM (#23611095)
I work with both Java and Rust.

Definitely not the same. With Java, you decide what you want to compile with your build script. You don't need to compile entire application as a single unit. If you have to recompile a lot of code when you only make small modification it is likely because did not use many of available ways to just recompile the classes that you modified.

Also, with Java some optimizations are pushed to runtime. JIT has access to all code running even if it wasn't available at compilation time.

Re:Rust's Huge Compilation Units by pjmlp on Tuesday June 23, 2020 @07:22AM (#23612468)
Java also does optimizations at AOT, it is all a matter which toolchain one uses, plenty of choice since 2000.