TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

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

305 点作者 ivanceras大约 6 年前

17 条评论

twoquestions大约 6 年前
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 未加载
donpdonp大约 6 年前
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 未加载
K0nserv大约 6 年前
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_dh大约 6 年前
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 未加载
leshow大约 6 年前
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 未加载
dbrgn大约 6 年前
Obvious questions first: How does it compare to Yew?
评论 #19756758 未加载
评论 #19760686 未加载
评论 #19756724 未加载
评论 #19756722 未加载
holtalanm大约 6 年前
Performance: Is not too bad.<p>I laughed at this, idk why.
评论 #19761920 未加载
评论 #19757775 未加载
评论 #19757960 未加载
Octoth0rpe大约 6 年前
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 未加载
yumraj大约 6 年前
(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 未加载
bazza451大约 6 年前
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 未加载
owens99大约 6 年前
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 未加载
yuchi大约 6 年前
Hey, interesting! Have you seen dodrio from mozilla? Could be a good candidate for your diffing algorithm and improve performance a lot.
ksejka大约 6 年前
Check out <a href="http:&#x2F;&#x2F;blazor.net&#x2F;" rel="nofollow">http:&#x2F;&#x2F;blazor.net&#x2F;</a>
tiuPapa大约 6 年前
So one thing, these are still slower and more expensive in performance, compared to JS frameworks, right?
eljimmy大约 6 年前
Slightly off topic - I can’t imagine calling the framework Sauron and posting a photo from the LOTR movie is legal.
评论 #19757414 未加载
评论 #19757088 未加载
评论 #19757213 未加载
fxfan大约 6 年前
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 未加载
ryanmarsh大约 6 年前
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 未加载