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.

TodoMVC in Rust

76 pointsby dumindunuwanover 9 years ago

7 comments

mattmanserover 9 years ago
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 未加载
tincoover 9 years ago
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 未加载
Reefersleepover 9 years ago
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 未加载
girvoover 9 years ago
For something compiled with Emscripten, this was stupid quick to startup. Wow.
评论 #10265108 未加载
评论 #10266750 未加载
aikahover 9 years ago
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.
xiaomaover 9 years ago
Where&#x27;s the code?
评论 #10264237 未加载
mtgxover 9 years ago
Looks fast.