TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Show HN: Sauron – A web framework in Rust that adheres to the Elm architecture

305 pointsby ivancerasabout 6 years ago

17 comments

twoquestionsabout 6 years ago
Between this and Blazor ( <a href="http:&#x2F;&#x2F;blazor.net&#x2F;" rel="nofollow">http:&#x2F;&#x2F;blazor.net&#x2F;</a>, among other wasm projects I&#x27;m forgetting right now), I&#x27;m glad more complicated UIs are being once again designed on the backend and keeping bundle sizes (relatively) small, rather than making <i>everything</i> in JS on the frontend and expecting everyone to download megabytes of code to visit a website.<p><i>I&#x27;m looking in your direction Medium, at 6MB with a cold cache!</i>
评论 #19758475 未加载
评论 #19758108 未加载
评论 #19761364 未加载
评论 #19763090 未加载
评论 #19757944 未加载
评论 #19761982 未加载
donpdonpabout 6 years ago
From the README<p><pre><code> One crate to rule the DOM One crate to find the elements One crate to bring JSON And in the Rust code bind Strings</code></pre>
评论 #19758431 未加载
K0nservabout 6 years ago
Sauron looks really great and I for one am super excited about the future of Rust + WASM for web apps(with Backend). However I am a bit concerned that even the minimal example is 1.17MB of WASM which seems really high since Rust compiled to WASM should be quite small.
评论 #19757090 未加载
frou_dhabout 6 years ago
Elm gets plundered repeatedly before it ever reaches version 1.0. Is name-brand Elm still growing in adoption?
评论 #19758092 未加载
评论 #19756937 未加载
评论 #19757931 未加载
评论 #19758585 未加载
评论 #19762273 未加载
评论 #19760691 未加载
leshowabout 6 years ago
How is Elm&#x2F;Om doing so well in those benchmarks? I would think that most wasm frameworks would be able to blow past any js framework fairly easily.<p>edit: Ah, calls to js are still necessary to create DOM elements, so there&#x27;s lots of back and forth necessary in the wasm frameworks.
评论 #19759422 未加载
dbrgnabout 6 years ago
Obvious questions first: How does it compare to Yew?
评论 #19756758 未加载
评论 #19760686 未加载
评论 #19756724 未加载
评论 #19756722 未加载
holtalanmabout 6 years ago
Performance: Is not too bad.<p>I laughed at this, idk why.
评论 #19761920 未加载
评论 #19757775 未加载
评论 #19757960 未加载
Octoth0rpeabout 6 years ago
Would there be an easy&#x2F;straightforward way to put a jsx transpiler in front of the rust compilation step, potentially with hot reloading?<p>I realize that jsx in react is really just calls react.createElement, but I do think it&#x27;s a very useful abstraction when you&#x27;re ultimately constructing html.
评论 #19758145 未加载
评论 #19757495 未加载
评论 #19757489 未加载
yumrajabout 6 years ago
(Disclaimer: very limited knowledge about WASM)<p>Curious as to how WASM impacts browser caching?<p>In the JS scenario, several modules will be cached and change in one may still allow usage of other cached modules, thereby reducing future load times.<p>How will that work in WASM work, since I&#x27;m assuming that the entire app will be packaged at build time as a single binary. Is the assumption even correct?<p>Or, is it simply a question of architecting your app well into several WASM modules, since I&#x27;m assuming WASM modules (or whatever they are called) can call each other and do lazy loading.
评论 #19760942 未加载
bazza451about 6 years ago
Commend on the attempt, foward thinking now wasm is getting more traction. but I can imagine that view syntax turning into an insane &gt; circa the old days of callbacks in nodejs
评论 #19757072 未加载
评论 #19756908 未加载
owens99about 6 years ago
Looks cool, really like the name. It’s always interesting to me to see other developers who are good at branding, despite no obvious marketing background.
评论 #19756960 未加载
yuchiabout 6 years ago
Hey, interesting! Have you seen dodrio from mozilla? Could be a good candidate for your diffing algorithm and improve performance a lot.
ksejkaabout 6 years ago
Check out <a href="http:&#x2F;&#x2F;blazor.net&#x2F;" rel="nofollow">http:&#x2F;&#x2F;blazor.net&#x2F;</a>
tiuPapaabout 6 years ago
So one thing, these are still slower and more expensive in performance, compared to JS frameworks, right?
eljimmyabout 6 years ago
Slightly off topic - I can’t imagine calling the framework Sauron and posting a photo from the LOTR movie is legal.
评论 #19757414 未加载
评论 #19757088 未加载
评论 #19757213 未加载
fxfanabout 6 years ago
I&#x27;m still waiting for something like scala.js for Rust. I don&#x27;t like the thought of using two different programming languages and currently it seems scala.js is the most dependable front-end library
评论 #19764162 未加载
评论 #19761226 未加载
ryanmarshabout 6 years ago
Folks please take care in how you name your open source project. Sauron is not something I want to think about every time I sit down to work, neither are cockroaches (CockroachDB).
评论 #19763228 未加载
评论 #19760369 未加载