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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

TodoMVC in Rust

76 点作者 dumindunuwan超过 9 年前

7 条评论

mattmanser超过 9 年前
I appreciate it&#x27;s to demo the capacity to compile Rust to js, but that&#x27;s some really nasty code.<p><a href="https:&#x2F;&#x2F;github.com&#x2F;tcr&#x2F;rust-todomvc&#x2F;blob&#x2F;master&#x2F;src&#x2F;main.rs" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;tcr&#x2F;rust-todomvc&#x2F;blob&#x2F;master&#x2F;src&#x2F;main.rs</a><p>Why put it all in the main? Why define functions as variables? Why .parent().unwrap().parent().unwrap()?
评论 #10266715 未加载
评论 #10265435 未加载
评论 #10264643 未加载
tinco超过 9 年前
Would be cool if there was some small web framework you could use so you could avoid having your state in RC(RefCell)&#x27;s. Perhaps it&#x27;s the Haskell guy in me but I always try to make my code have zero RC or even RefCells. I&#x27;m also a complete rust noobie, so perhaps that&#x27;s not good practice at all :)
评论 #10266736 未加载
Reefersleep超过 9 年前
What&#x27;s the development process like for a Rust-in-the-browser project like this? I mean, is it like; write some Rust - manually start a compile process - wait a while - view result in browser - repeat? Are there nice tools? :)<p>I&#x27;m used to working with raw JavaScript, ClojureScript with Figwheel, and Java&#x2F;xhtml with JSF. Of the three, ClojureScript&#x2F;Figwheel has given me the smoothest process so far, though I know there are tools for autoreloading raw js as well, just haven&#x27;t gotten around to using them.
评论 #10265502 未加载
评论 #10266725 未加载
girvo超过 9 年前
For something compiled with Emscripten, this was stupid quick to startup. Wow.
评论 #10265108 未加载
评论 #10266750 未加载
aikah超过 9 年前
Nice. Maybe that can be one good use case for the use of rust. Using it in place of C++ for Emscripten. I wonder what are the other languages supported.
xiaoma超过 9 年前
Where&#x27;s the code?
评论 #10264237 未加载
mtgx超过 9 年前
Looks fast.