Remix.run Logo
▲ rafram an hour ago

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.

(I qualify with “in a sane world” because obviously it could happen. In a truly sane world, JavaScript would never have happened, either!)

▲afavour 23 minutes ago | parent | next [-]

> 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.

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.

▲weinzierl 15 minutes ago | parent | prev | next [-]

> As processors and memory get faster, garbage collection only becomes more attractive

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.

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.

▲expectfun 42 minutes ago | parent | prev | next [-]

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.

And yeah, it feels a bit like JavaScript a while ago, that's a good comparison.

▲teiferer 32 minutes ago | parent | prev [-]

> In a truly sane world, JavaScript would never have happened, either!

Out of curiosity, what do you envision would have taken its place in frontend, in that sane world? (Honest question, no bad faith agenda.)

▲rafram 4 minutes ago | parent | next [-]

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.

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.

▲irishcoffee 11 minutes ago | parent | prev [-]

I for one wish python had taken the spot JavaScript holds.