Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Seed vs Yew #49

Open
MartinKavik opened this issue May 8, 2020 · 4 comments
Open

Seed vs Yew #49

MartinKavik opened this issue May 8, 2020 · 4 comments
Labels
documentation Improvements or additions to documentation help wanted Extra attention is needed

Comments

@MartinKavik
Copy link
Member

MartinKavik commented May 8, 2020

People want to decide whether to use Seed or Yew. We should add detailed comparison on the website.

Live (very rough) draft content below:


Hi, Is there a comparative between Yew and Seed?
hi @reymon#5 @cascalheira#5661 - I think there isn't updated comparison and there are probably guys with more current Yew knowledge, but in a few points:

  • I moved to Seed from Yew because there was missing docs and things like router, fetch library, sync with animation frame, etc. And I was fighting with JSX syntax + things like actors and other experiments feel unnecessary. (it was some time ago, I don't know current status really)
  • It's the perfect time to start with Seed - we are releasing new version - Seed 0.7.0 seed#436 - I'll update quickstarts and rewrite docs so I hope it will be better than Yew's one.
  • I don't know about Yew, but I use Seed to develop apps for clients as freelancer - we have direct feedback from real-world use-cases.
  • Typed abstraction for CSS is WIP.
  • Seed app architecture is more Elmish, but something like React Hooks are in development (also Seed's Hooks will have far less limitations than React's one). I think Yew also experimenting with hooks, but there are the same React's limitations. Also Yew is more component-oriented now (= has strict interface for components).
  • Seed has examples with patterns for writing big Rust apps (nested routing, link building, base urls, graphql, etc.).
  • Seed has webpack-quickstart for writing and deploying prerendered production-ready app with tutorial in README. There will be also Rust-only alternative to Webpack alternative - https://github.com/MartinKavik/seeder
  • Yew has switched to wasm-pack recently, Seed uses it from start.
  • According to benchmarks - Seed is faster.
  • "Trying to decide between the framework with a lot of stars on github and the framework that looks like the better idea :)"
    Yew was the first one (year before Seed I think) and there are some articles about it. We'll write more Seed guides / tutorials / articles and redesign webiste in next months to improve "marketing".
  • Seed vs Yew downloads - 47k vs 32k.

Is somebody (who ideally knows Yew) willing to write a proper comparison 🙏?

@MartinKavik MartinKavik added documentation Improvements or additions to documentation help wanted Extra attention is needed labels May 8, 2020
@rebo
Copy link

rebo commented May 8, 2020

For me one of the main reason I like Seed, not specifically over yew but seed generally is the macro system. It's simple enough to be very versatile and because its 'just rust' it can be very composable.

I think in Yews benefit developers familiar with JSX might feel it is more comfortable. That said I'm not certain a JSX template language is needed when the Seed macros are so versatile.

Indeed I think the ability to extend Seed in a number of ways is very important because it means the framework can easily adapt to new requirements.

Overall both frameworks have a lot to offer and probably what is more exciting is where Rust can take web development and what new concepts can be constructed and refined in top of what we have at the moment.

@Ben-PH
Copy link
Contributor

Ben-PH commented May 8, 2020

for me, I came back to seed from yew because I much preferred to have a consistent syntax that that the compiler and other tools understand. There are other reasons -

For example, my IDE can't reason about the yews JSX-like styling by default, and rustfmt isn't able to detect and correct issues.

@1init
Copy link

1init commented May 10, 2020

Seed is not the first framework i have tried. it is the frame work i stuck with. I think docs are there. community is there for support and best of all its easy to get to grips with if you have basic knowledge on html css js.

@Ben-PH
Copy link
Contributor

Ben-PH commented May 11, 2020

I have always had a great appreciation for the Rust community. My experience has been close to universally positive, and my experience with the Seed community promises to follow in that spirit. To nurture and protect this, I think it's important to highlight that everything said here respects Yew as a valuable addition to the Rust ecosystem in one way or another.

in OSS projects, the quality of the community sets the foundation for its potential to have a positive impact. It's great to see this thread as being about "Choice A vs. Choice B" and not "Us against Them".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

4 participants