|
|
|
|
|
by chinedufn
2881 days ago
|
|
Yew is awesome and just knowing that something like that was possible inspired Percy. I also looked at Yew's `html!` macro when figuring out how Percy's could / should work. One difference is that Yew is powered by stdweb and Percy is powered by wasm-bindgen. I'm personally SUPER bullish on wasm-bindgen because it's been designed from day 1 to be able to take advantage of the host bindings proposal when it materializes. Host bindings tl;dr is that instead of needing to go through JS to interact with browser APIs you can interact with them directly. Another difference is that to my knowledge Yew doesn't support server side rendering ( which was why I couldn't use it even though I wanted to :( ). Without having used Yew I don't want to comment any further than those high level differences. I can say that a big focus of Percy is to be a grab bag of modules / tooling for frontend Rust web apps with a major focus of you being able to swap out the parts that you think are bad for other peoples' better implementations. That dream isn't realized yet.. but I think that Rust's generics / traits could make this feel very clean! |
|
I find it funny that you mentioned that. I actually was trying out wasm-bindget/yew recently and ended up using yew because of the wasm-bindgen limitations (mostly related to using anything with generics in the type signature).
The experience will probably improve on the future, but right now yew's actor model seems like a much simpler way to encapsulate rust libraries.