Re:Rust needs a web framework for lazy developers
by immibis on Monday October 07, 2024 @08:39AM
(#41765406)
The problem is friction. To run a rust app you can just run it. To run a java app you need to install java first. This is no problem for backends running on servers, but client apps (like Minecraft) have to include their own JVMs to reach a wider audience, and this solution still introduces a bunch of complexity.
Re:Rust needs a web framework for lazy developers
by pjmlp on Monday October 07, 2024 @08:48AM
(#41765483)
Not a thing since Java 9 and jlink introduction, or since those commercial AOT compilers exist, for 20 years now.
And if free beer is your thing, GraalVM native image or OpenJ9 also produce a regular executable.
Re:Rust needs a web framework for lazy developers
by smolder on Friday October 11, 2024 @11:43AM
(#41810487)
Last I checked there was a significant disadvantage to using rather basic Java JIT code in a cloud environment: slow startup time and poor initial performance in terms of requests per second & latency meant scaling on demand didn't work very well. I suggested we move to GraalVM and AOT compilation on that project but we just ended up over-provisioning by a significant factor to smooth things out.
Besides, GraalVM can produce a native executable for pretty much any JVM language/program.