News for hackers. Stuff that matters.
Re:Bugs that the Rust compiler catches for you by kaba0 on Friday May 06, 2022 @05:43AM (#31283240)
No, this low-high level axis is not really “permeable”. You can maybe get as productive in rust as in some managed language at the first time you write the program. But later maintenance will simply drop your productivity as any refactor will likely alter your whole memory/ownership model and cause much more refactor recursively. Sure, you may say that “but it will be correct in the end while in python you have to hunt down the newly created bugs” and you might be right, but it is not a small price to pay. Managed languages let you get away with many many unanswered questions that you have to meticulously answer in case of low level ones, and I think it is a fair tradeoff depending on use-case. But as much as I love Rust, I won’t choose it for some database-mangling web service.
Re:Bugs that the Rust compiler catches for you by mamcx on Friday May 06, 2022 @05:02PM (#31289583)
> But later maintenance will simply drop your productivity as any refactor

This is very off weird take: Refactoring in Rust is one of their strengths as language (a major one!) where even VERY deep changes can be done in economical times.

Try the same in python is nearly impossible.

And I mean it: I fully rewritten all my app (a fairly complex niche eCommerce platform) to async and remade all things along it.

And I have A LOT of experience building, rewriting, and porting code; and Rust is the faster/more friendly to refactor both large or small in all my years.

However, I concede that get the knowledge with Rust have challenges and my first attempts at this (when doing my hobby https://tablam.org language) were miserable by lack of understanding, so it could be a factor.

Re:Bugs that the Rust compiler catches for you by DeathArrow on Friday May 06, 2022 @11:07AM (#31286049)
That's a valid criticism. While I can be much more productive in .NET with the help of the language, the compiler, the IDE, intellisense and copilot, looking at last Techempower benchmarks, Rust is still 1.6 faster.

I would use Rust for Web if I'd have to squeeze every bit of performance. Most of the of the time I don't have such need for performance.