News for hackers. Stuff that matters.
Re:Rust Is Tier-1 Language at Microsoft by za3faran on Friday September 11, 2026 @03:28AM (#49654739)
We've seen several anecdotes where JIT languages (e.g. Java) outperform Rust in throughput and latency in long-running server programs.
Re:Rust Is Tier-1 Language at Microsoft by apatheticonion on Friday September 11, 2026 @09:11AM (#49657857)
Performance isn't really the selling point for me.

It's the fact that runtime errors are essentially impossible, making writing, reviewing, testing code very easy.

It also means LLMs can spin it out with the compiler, and if it compiles, it probably works. You just need to organize the code.

Re:Rust Is Tier-1 Language at Microsoft by throwaway273748 on Friday September 11, 2026 @10:38AM (#49659249)
It is mathematically impossible for a Java program to be faster than a well optimized Rust program, so long as the JVM exists and requires non-zero resources to run (to say nothing of GC etc).

This isn't me glazing Rust, this is just the boring observation that a VM language is necessarily going to be outperformed by a language without a VM. VMs have good attributes, but they are never zero cost.

Re:Rust Is Tier-1 Language at Microsoft by za3faran on Friday September 11, 2026 @12:00PM (#49660625)
Key is "well optimized". At some point and scale, it becomes almost impossible to chase those manual optimizations, not to mention that usage patterns at runtime can change in such a way that make such an optimization prohibitively expensive, if not outright impossible. And even then, you would end up matching what the JVM JIT offers anyway.

What I mentioned is already something that people have observed for both Rust and C++ against programs written in Java. Now add features like observability, profiling, debugging, and dev productivity, and it becomes a worthwile tradeoff a lot of the time.

For constrained environments, GraalVM offers native image.