4 ms·
Obvious questions first: How does it compare to Yew?
by dbrgn 7y ago
Obvious questions first: How does it compare to Yew?
- K0nserv 7y agoIt's based on Yew itself and since Yew is React/Elm like, but this is more Elm inspired I assume it compares like Elm vs React.
- dbrgn 7y agoAs far as I can tell by the Cargo.toml file, it's not based on Yew. The README mentions "This project is based on the existing projects: (...) Yew (...)", but I think the author meant "inspired by", not "based on".
- ivanceras 7y agoWhat I mean "based" is "I look at their code, and take only what I need".
- romanovcode 7y agohttps://github.com/ivanceras/sauron#performance-is-not-too-bad https://github.com/ivanceras/sauron#performance-is-not-too-b...
- ivanceras 7y ago1.) The syntax in creating the view: is just plain function calls which the rust compiler can accurately tell you about errors in your code, ie: typo, unclosed brackets/braces/parenthesis mismatch. 2.) Concise code, there is not too much ceremonial/boilerplate code to get started. 3.) Less code in the library maintain, there is no parser(which are mostly complex). 4.) Sauron is using wasm-bindgen, yew is using stdweb. 5.) It's in the early phase, so the performance is not yet optimized. https://github.com/ivanceras/todomvc-perf-comparison/ https://github.com/ivanceras/todomvc-perf-comparison/
- dbrgn 7y agoThanks, good luck with this project :) I'm looking forward to a mature Elm-like web framework in Rust in the future.
- kouteiheika 7y ago> 4.) Sauron is using wasm-bindgen, yew is using stdweb. FYI, since the most recent stdweb version it's possible to use `wasm-bindgen` with Yew
- eigenrick 7y agoNothing compares. Nothing compares to Yew.