by echelon · 5y ago · 0 comments
In two years, I fully expect Rust to begin taking off as a major frontend language choice. A framework like Seed will help usher this in.
It'll be faster than Javascript, eventually multithreaded, and produce portable binaries that can run on a wide variety of platforms and architectures.
It'll paint to DOM, but also do immediate mode and other types of rendering.
We'll see incredibly rich applications: games, video editors, IDEs, etc.
Electron will yield to this. We'll have fast, cross-platform apps that run not just on the browser, but natively on Windows, Linux, and Mac.
If we're lucky, we might even start writing mobile apps this way and ditch the iPhone/Android specific APIs.
Don't get me wrong, I hate Javascript as a language. But sometimes worse is better.
That's not true, current JS is getting complex, but we don't have a choice, except for WASM but the options aren't great. TypeScript is also very complex, but it's the most popular so people use it. Basic Rust isn't that complex, and I would argue is easier than TypeScript. I wouldn't want to be the guy building the framework, but using Rust to write business logic? That might be nice.
On the backend side, Java dominates, with PHP, JS/TS, Python. All of these (in their modern form) are complex, usually by way of OO soup, or big frameworks, or a large ecosystem that you have to learn at first. On the other hand, languages that people like calling "simple" like Go or Clojure are relatively nice (at least for "business logic" web apps, Go is popular for "infra/devops" web stuff").
Not enough people care enough to make it happen. I think most people underestimate the breadth of the work that would have to be done. The people in the best position do do it (the browser vendors) aren’t willing to do that.