News for hackers. Stuff that matters.
Re:CLion Nova Explodes onto the C and C++ Development Scene by zamalek on Thursday November 09, 2023 @04:32PM (#38211654)
I have really tried using Rust for the web (because I truly enjoy Rust). The ergonomics just aren't there yet.

Leptos, as a popular recent example, suffers from one major issue (that most others suffer from too): the JSX stuff is opaque to Rust Analyzer. Code completion aside, you lose the ability to hover - massively crippling any hope of tracking down how to resolve a type mismatch.

Web Rust also has the impedance mismatch that Rust has for UI. There are several success stories - e.g. Cosmic Desktop, but I'm certain that there's more love than practicality involved.

I think part of the reason is that we are trying to shove in existing patterns - which originate from OOP languages - into Rust. In both semantic and ergonomic terms I have been bitten by trying to OOP in Rust when I was first learning it.

I think that there exists an (as yet unknown) solution to the UI problem. It's just going to look nothing like React (or Elm even).

There are no comments on this comment yet.