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 - a new programming language from Mozilla

145 pointsby gregnavisabout 13 years ago

16 comments

kibwenabout 13 years ago
Please note that Rust is very alpha alpha alpha at the moment. Syntax evolves constantly. Several concepts don't even <i>exist</i> yet, and many are present only in half-formed nascent states.<p>The bottom line is that if you're interested in writing applications using Rust, you should really hold off until 0.4 or so (I'd say give it three months), both to give them time to implement all the missing pieces and then to refactor the Rust compiler to <i>use</i> those pieces, thereby shaking out the bugs and annoyances.<p>But if you're interested in helping out on writing the compiler itself, or proof-of-concept libraries, definitely consider pitching in. The devs greatly appreciate volunteer contributions.
评论 #3796675 未加载
评论 #3794846 未加载
jmilkbalabout 13 years ago
I feel like I'm beating a dead horse, but I really can not grasp what the catalysts are for creating Rust or Go or Julia or other new languages that want to be safe, reliable, readable, etc.. 30 years ago these problems were solved in a language Ada. Its exact requirements include all of those and more.<p>See for yourselves: <a href="http://www.adahome.com/History/Steelman/steelman.htm" rel="nofollow">http://www.adahome.com/History/Steelman/steelman.htm</a> Later revisions have well-though-out rationales that show off all the changes: Ada 95: <a href="http://www.adaic.org/resources/add_content/standards/95rat/rat95html/rat95-contents.html" rel="nofollow">http://www.adaic.org/resources/add_content/standards/95rat/r...</a> Ada 2005: <a href="http://www.adaic.org/ada-resources/standards/ada05/" rel="nofollow">http://www.adaic.org/ada-resources/standards/ada05/</a> Ada 2012(!!): <a href="http://www2.adacore.com/wp-content/uploads/2006/03/Ada2012_Rational_Introducion.pdf" rel="nofollow">http://www2.adacore.com/wp-content/uploads/2006/03/Ada2012_R...</a><p>The steelman was the end revision of requirements for the original language. There is a comparison of C/C++/Java/Ada wrt the steelman available as well. Ada has become so much more since this document and it's original version one really must see it to be believe it. :o)<p>As a community we have a tendency to embark on projects on a whim, but the effort, time and money required to bring a language to maturity is enormous. Even then any deficiency a preexisting language may have surely is not so insurmountable as to make it viable to develop a new language in house.<p>Can we please have some sanity? Can we please look for mature solutions?<p>Edit: Ada has an amazing GCC frontend developed largely by a successful opensource company (with just massive customers across the globe) and is available across all of its targets: the bsd's, solaris, linux, mac, haiku, android and more. It's a great solution that is hard to ignore.
评论 #3794005 未加载
评论 #3794283 未加载
评论 #3793931 未加载
评论 #3794457 未加载
zokierabout 13 years ago
Previous discussions:<p>* <a href="http://news.ycombinator.com/item?id=3774075" rel="nofollow">http://news.ycombinator.com/item?id=3774075</a><p>* <a href="http://news.ycombinator.com/item?id=3501980" rel="nofollow">http://news.ycombinator.com/item?id=3501980</a><p>* <a href="http://news.ycombinator.com/item?id=3027777" rel="nofollow">http://news.ycombinator.com/item?id=3027777</a><p>* <a href="http://news.ycombinator.com/item?id=2390980" rel="nofollow">http://news.ycombinator.com/item?id=2390980</a>
Maroabout 13 years ago
How does Rust compare with Go?<p>Their goal of being a modern systems programming language are similar.
评论 #3792754 未加载
评论 #3793902 未加载
评论 #3792753 未加载
sesabout 13 years ago
This is an interesting new language but I'd be interested to know - what is the motivation behind its creation?
评论 #3792558 未加载
评论 #3792779 未加载
jurreabout 13 years ago
Did anyone find an explanation for why they opted for brackets in favor of whitespace or a ruby-like syntax?
评论 #3793684 未加载
评论 #3792593 未加载
评论 #3792913 未加载
评论 #3793212 未加载
评论 #3792582 未加载
评论 #3796655 未加载
jentulmanabout 13 years ago
Can anyone explain this, from the first paragraph, to a bog standard PHP-for-the-web programmer please?<p>"Its design is oriented toward concerns of “programming in the large”, that is, of creating and maintaining boundaries – both abstract and operational – that preserve large-system integrity, availability and concurrency."
评论 #3792799 未加载
评论 #3792831 未加载
评论 #3792865 未加载
评论 #3793101 未加载
评论 #3793154 未加载
ecubedabout 13 years ago
Out of curiosity, what's Mozilla's motivation for making a new language?<p>Everything I'm reading here in the comments is talking about how this would be a replacement for c/c++, but wouldn't Mozilla be more interested in a language that's more web focused? As I see it, Rust would NOT be a web language, or am I missing something? Is this something they would try and develop future versions of Firefox in?
评论 #3796351 未加载
thealistraabout 13 years ago
<a href="http://doc.rust-lang.org/doc/tutorial.html#pattern-matching" rel="nofollow">http://doc.rust-lang.org/doc/tutorial.html#pattern-matching</a><p>This is the whole reason why that language has such a big potential.<p>It has high level algebraic datatypes with pattern matching, so you can nicely model your control flow (like haskell or ocaml) but still remaining low-level.
luser001about 13 years ago
Interesting language.<p>Doesn't require JVM to run. I consider that a plus. But others might not.
zemabout 13 years ago
rust seems to get compared to go a lot, simply because they are socially similar (open source c-like language developed by large, popular company). i'd like to see some comparisons with languages like clay and ats, both of which seem closer to what rust is trying to be.
jorgemabout 13 years ago
Looks similar to F#
agumonkeyabout 13 years ago
feels like ADA
评论 #3792619 未加载
评论 #3792538 未加载
评论 #3793831 未加载
omiabout 13 years ago
Rusted before any use was gotten?
jchughesabout 13 years ago
The syntax is horrible. I would prefer C over that.
评论 #3794683 未加载
iamgopalabout 13 years ago
Now even I want to create a new programming language.<p><i>for downvoters : pun intended.</i>