| ▲ | kator 6 hours ago | |||||||
Reading your link IMHO in today's world I would set a basic rule, if you're touching >20% of a Java codebase you should refactor to Rust. With AI-Native development practices it's worth the SDE time to refactor, replace the underlying subsytem and reduce your fleet by 50% or more. | ||||||||
| ▲ | gf000 2 hours ago | parent | next [-] | |||||||
Unless you are doing something very specific where rust is truly the best choice, I have to disagree. Rust has overly strict locking (otherwise it couldn't determine safety) that makes certain concurrent algorithms harder to implement, its concurrency model is significantly more complex (for an absolutely good reason, it's a low-level language where the developer should be in control), meanwhile for many applications Java can just have you write ordinary blocking code and they will automagically turn into non-blocking. For most domains Java has a richer "industry-strength" library ecosystem, and absolutely not even close observability tools. So not really sure what would one win for e.g. a typical backend service doing web and db requests. | ||||||||
| ▲ | mcculley 30 minutes ago | parent | prev | next [-] | |||||||
I encourage my competitors to refactor a working codebase into a different language. | ||||||||
| ▲ | inigyou 3 hours ago | parent | prev | next [-] | |||||||
You hate Java so much you think AI code is better? You're not even getting memory safety from the deal, because Java already has it. | ||||||||
| ▲ | nine_k 2 hours ago | parent | prev [-] | |||||||
JIT gives you almost native performance. AI rewriting tools give you none of the knowledge of running the thing in production. A couple of noticeable mishaps could cost more than halving your fleet saves. | ||||||||
| ||||||||