Rust is a terrible language for many of the tasks people try to shoehorn it into. As processors and memory get faster, garbage collection only becomes more attractive, while the borrow checker remains a PITA that gets in the way of plenty of sensible architectures. In a sane world, Rust will never take over frontend development, for example - it’s a terrible fit.<p>(I qualify with “in a sane world” because obviously it could happen. In a truly sane world, JavaScript would never have happened, either!)
> As processors and memory get faster, garbage collection only becomes more attractive, while the borrow checker remains a PITA that gets in the way of plenty of sensible architectures.<p>I’d counter with: as LLM driven coding becomes more and more common the PITA borrow checker is something individual developers interact with less than less. Garbage collection looks more and more like a waste when an LLM can examine memory allocations before the app is even built.
Maybe, but whatever workarounds or compromises the LLM has to settle on to satisfy the borrow checker will live in the code forever, while garbage collection can continue to get faster in the same executable.
The same arguments could often apply to Zig with 100% up-front static allocation (like TigerBeetle uses).
This all says more about you and your experience than about rust
> As processors and memory get faster, garbage collection only becomes more attractive<p>Just because they did in the past doesn't mean they will continue to do so in the future. If we are honest then Moore's Law ended a decade ago (the latest) and we've been picking the low hanging fruit we left alone during Moore's era since. This too will come to an end for sure, just not a pretty and well defined one.<p>So, my conclusion is the opposite. Garbage collected and DX optimized languages made sense while processors and memory got faster, the future will be elsewhere.
Did Moore’s Law really end? My ARM Mac from five years ago is a literal order of magnitude faster than a gigantic, beefy desktop tower from five years before that, and my newest ARM Mac from this year is another 5x or so faster than my first. Computers continue to get much, much faster, at least in terms of time to completion of normal workloads.
As processors and memory get faster, people will expect more from them. And the fact that languages like Rust give you fine-grained control over memory allocation is part of what allows it to be so performant on modern hardware where memory latency is still relatively high and bandwidth still relatively low. My intuition is that any data-intensive operation (such as blurring an image) will almost always be far faster in rust than javascript.
I think most of those tradeoffs flip as more of the engineering is done by AI systems. I think that's true on its own, but it's especially true if those systems are increasingly capable of autonomously verifying their own correctness.
I'm not advocating for Rust (or against it), I'm just stating that currently it's hard to open the news without seeing Rust expanding somewhere, and it feels like "taking over the world". Whether that is bad or good is another question.<p>And yeah, it feels a bit like JavaScript a while ago, that's a good comparison.
That's true and there are some truly high throughput systems that absolutely benefit from garbage collection (I've written one of them, and can't sing enough praises of not one but several java garbage collection types), but there are two problems here:<p>1) most garbage collectors are pretty lame and can't even come close to the throughput/efficiency of manually managed memory, and<p>2) the vast majority of software does not even come close to the frontier of what is possible with software, and therefore the thing that matters most is correctness.<p>Rust does a better job at correctness than most languages because the type system is so robust, and it does a better job at memory management than most languages because most languages do garbage collection so poorly.
I wonder if Rust is really bad for UI or UI code is just a mess of terrible practices like having event listeners for everything.
I don’t think you can do a “you’re holding it wrong” with UI code when it seems like every UI framework eventually evolves to let people hold it that way. People find it difficult to build fully-featured UI frameworks in Rust, and people writing UIs don’t tend to pick Rust frameworks. They aren’t wrong for that!
> In a truly sane world, JavaScript would never have happened, either!<p>Out of curiosity, what do you envision would have taken its place in frontend, in that sane world? (Honest question, no bad faith agenda.)
No language that perfectly fills that niche exists, because none was ever needed. JavaScript eventually became Good Enough. Python is OK, but it’s an old language at this point and it suffers a lot of technical debt.<p>JavaScript’s biggest weakness IMO is its absolutely abysmal standard library, particularly in terms of data structures. (At least we have Map and Set now, but still no way to define a hash/equality function for a type…) The situation is so bad that essentially any other modern programming language would be an improvement.
I for one wish python had taken the spot JavaScript holds.