News for hackers. Stuff that matters.
Re:Wgpu-rs on the web by exomancer on Thursday April 23, 2020 @08:14AM (#22955091)
Rust already has [React-like web framework](https://github.com/yewstack/yew) with a macro for [declarative components](https://github.com/yewstack/yew/blob/ce020d6eb8409b2063cc150...) that compiles to wasm and, last I checked, [runs circles around JS frameworks](https://github.com/DenisKolodin/todomvc-perf-comparison).

I agree that it won't reach the popularity levels of JS due to the learning curve, but on technical side of things future is _now_.

Re:Wgpu-rs on the web by leeoniya on Thursday April 23, 2020 @08:34AM (#22955240)
yew doesnt run circles around anything:

https://krausest.github.io/js-framework-benchmark/current.ht...

wasm-bindgen seems to do well, though its code is rather imperative.

Re:Wgpu-rs on the web by jstarry on Wednesday April 29, 2020 @11:34AM (#23020453)
That benchmark run is about a year old. Yew is v0.15 now (v0.7 came out a year ago) and has improved substantially (and has keyed components now).
Re:Wgpu-rs on the web by exomancer on Thursday April 23, 2020 @08:40AM (#22955275)
Fair enough, I've only seen the one benchmark I've linked.
Re:Wgpu-rs on the web by hobofan on Thursday April 23, 2020 @09:24AM (#22955647)
Yew (and comparable Rust frameworks) do however have a pretty slow compile time and with that a horrible debug-cycle. It's so bad that I in general opt for React-in-Yew for prototyping and only reimplement components with more complex state in Rust.
Re:Wgpu-rs on the web by saagarjha on Thursday April 23, 2020 @04:00PM (#22960488)
Do people writing frontend apps really care that much about performance that they'd be willing to switch to Rust? Honest question.
Re:Wgpu-rs on the web by ng12 on Thursday April 23, 2020 @04:29PM (#22960902)
Not likely. The only thing that really matters to me is developer ergonomics. I've never seen a project struggle because it couldn't render a table with a 1,000 rows fast enough. I have seen many projects struggle because they hired a bunch of junior engineers who had difficulty writing clean, maintainable JavaScript.

Rust and WASM will definitely take on for doing things like WebGL. I can't imagine Rust becoming the de-facto solution for building UIs.