Hacker News new | ask | show | jobs
by song_synth 26 days ago
Any insight on comparing Elm to Yew?

I once wrote a frontend webapp with Elm. And with backend server in Clojure, it made as much sense as Elm five years ago, right? :)

For the past two years I've instead used Yew, a rust crate for building UIs. It can look like react or like Elm, it's up to you for how you yews it ;0)

My latest app uses The Elm Architecture in Yew. It has been fantastic.

I think the biggest benefit Elm has over Yew is its access to the node js ecosystem through Port. You can interface with any npm package if you (or your AI) can write a port for it.

So far my best integration with yew dev has been using inline script tags (eek!) where I have to inject some external JS.

1 comments

I don't know about Yew but I've been using Iced 0.14 which is also a Rust crate inspired by the Elm architecture. It seems like Yew is specifically geared towards web applications, which I suppose is in some ways closer to the original Elm project.

What is your app? Is it intended for personal use, or commercial?

Iced looks nice! It would be super sweet to have a desktop + web cli with a mostly-shared rust codebase.

You are definitely welcome to use my app, it is a music generation and education website! Monic Theory can be found here :)

https://monictheory.com

Nice! I'm quite the beginner when it comes to music production and theory (took me a while to even figure out "Audition" means "Listen"), so I couldn't make full use of this site, but I like ideas presented in your about section. The website is quite functional, which is nice to see from a Rust base.

I'm interested in looking at more commercial products made in Rust, they tend to be far more polished than what I can stumble upon in Github (and are thus a nice showcase of what a bit of polish can do for these frameworks).