Has anyone done a ubiquitous web framework in Rust (or maybe actually Go) that is similar to Next.js in that it runs the same code (compiled to WebAssembly) on client and server?
1
If you find a good answer for Rust, I'd be interested. I've done some basic wasm UIs using Rust, and obviously done some purely server-side stuff; but never found anything which combined the two.
2
2
Best comparison list I can find is this one: github.com/flosse/rust-web-fโ€ฆ Of which saruon, Dioxus and percy have both virtual DOM and SSR. And the first two of those have lots of commit activity at least.
2
1
Oh interesting - he says "we all know" that Wasm is slower than Javascript on the client, so he just does server side benchmarks. Due to local API calling seemingly. Not what I'd expect. I guess explains why uBlock just uses it for host matching?
1
Replying to @frabcus
Yeah, there isn't any ideal DOM interfacing to wasm yet. I tend to be less worried about performance and more about me being able to grok the codebase 6 months later.

May 23, 2022 ยท 1:06 PM UTC