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.

Rust 0.2 released

132 pointsby ericktabout 13 years ago

11 comments

MatthewPhillipsabout 13 years ago
Rust definitely seems cool as a no-compromises systems language. Why is Mozilla developing it, though? What is the intended use? Supposedly it will be used by Firefox, but for what? Rendering? JavaScript compilation?
评论 #3774204 未加载
评论 #3774219 未加载
评论 #3774179 未加载
duanebabout 13 years ago
This language makes my knees go weak. A system language with a haskell-like type system? Yes please!
rdtscabout 13 years ago
&#62; Now that we have spawned a child task, it would be nice if we could communicate with it. This is done by creating a port with an associated channel.<p><pre><code> let port = comm::port::&#60;int&#62;(); let chan = comm::chan::&#60;int&#62;(port); task::spawn {|| let result = some_expensive_computation(); comm::send(chan, result); } some_other_expensive_computation(); let result = comm::recv(port); </code></pre> Why not let the task have a mailbox and send messages to it like in Erlang? Is it because of the desire to have typed channels? I like everything about Rust so far except this choice. I know Go does the same, but I consider Erlang's approach a lot more elegant and less verbose.
评论 #3774872 未加载
评论 #3774873 未加载
评论 #3774843 未加载
GFKjuniorabout 13 years ago
I don't have a lot of experience with systems programming but want to play around with Rust.<p>Would the best route be to learn C then move onto the untread waters of Rust? I'm just looking for some guidance, this seems really cool to learn.
评论 #3774752 未加载
评论 #3775692 未加载
评论 #3774756 未加载
评论 #3774528 未加载
msieabout 13 years ago
I had trouble trying to just read from stdin. Actually I couldn't do it before I got frustrated and gave up. I hope I can do it this time!!! If not, then I'll wait for 0.3!!!
adrusiabout 13 years ago
COME ON!!! I literally JUST finished downloading and reading the docs for rust 0.1 an hour ago. I mean a new version is cool, but could it have come a day earlier?
评论 #3774212 未加载
评论 #3774344 未加载
btiplingabout 13 years ago
So the garbage collection is optional? That's cool.
评论 #3774753 未加载
lemmingabout 13 years ago
I love the idea of Rust, but...<p><i>Shorten 'mutable' to 'mut'</i><p>Seriously? Are we editing with TextEdit in this day and age?
评论 #3774706 未加载
评论 #3774683 未加载
评论 #3774626 未加载
评论 #3775366 未加载
akavlieabout 13 years ago
Rust seems very similar to Go. Anyone looked at/played with both enough to offer some wisdom on the pros/cons of each language?
评论 #3775059 未加载
评论 #3774527 未加载
digitalzombieabout 13 years ago
Why didn't they do GC per process like Erlang instead of GC per thread?<p>I thought processes and sub processes are cheaper to spawn then threads? That's the reason why Chrome tabs are in per sub processes right? Instead of threads?
评论 #3775024 未加载
评论 #3774983 未加载
评论 #3775445 未加载
评论 #3774960 未加载
jcla1about 13 years ago
I like the language. But since I have been working with lots of Coffeescript lately it feels really weird using braces!