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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Announcing Rust 1.0

1363 点作者 jhund大约 10 年前

51 条评论

kibwen大约 10 年前
I would like to take this opportunity to formally apologize to the HN community for that time back in early 2012 when I predicted that Rust 1.0 would be released &quot;in about six months or so&quot;, and later proceeded to proudly proclaim that 0.4 would be the last release with major breaking changes to the syntax. I hope you all can find it in your hearts to forgive me. :) But at long last, we did it, and it&#x27;s almost too good to believe.<p>But as much work as it&#x27;s been just to get to this point, the real struggle begins today. Months and years of brutal campaigning, compiler engineering, and careful language design lie ahead. If you&#x27;ve yet to take a look at Rust, please do, and report your findings so that we can better prioritize our efforts for the near future. If you like what you see, there&#x27;s plenty of work to go around and a welcoming community should you decide to dig in and join us. And if you don&#x27;t like what you see, that&#x27;s fine too; Rust is not the language to end all languages! We&#x27;re just here to make the world a little safer, however we can. Hopefully today is but the first page in that story. :)
评论 #9553172 未加载
评论 #9552329 未加载
评论 #9552962 未加载
评论 #9552479 未加载
评论 #9552278 未加载
评论 #9553588 未加载
评论 #9552591 未加载
评论 #9554890 未加载
评论 #9552812 未加载
评论 #9553152 未加载
评论 #9552871 未加载
评论 #9552967 未加载
azdle大约 10 年前
For anyone that hasn&#x27;t played around with rust yet, this is why I&#x27;m excited about rust: <a href="https:&#x2F;&#x2F;github.com&#x2F;Azdle&#x2F;hello-gtk.rs&#x2F;blob&#x2F;master&#x2F;src&#x2F;main.rs" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;Azdle&#x2F;hello-gtk.rs&#x2F;blob&#x2F;master&#x2F;src&#x2F;main.r...</a><p>That is a GTK GUI application that makes HTTP requests in under 40 lines of code.<p>Don&#x27;t get me wrong I love all the safety gaurentes and what not, but just being able to write quick simple apps that would usually be a pain to write in C is a game changer for me. A lot of this is down to Cargo (the Rust package manager, very npm-like imo) and all the great rust libraries that already exist. I&#x27;m super excited to see where this goes now that it&#x27;s 1.0, people can stop worrying about breaking changes in the language and just get down to writing libraries to do everything.
评论 #9553608 未加载
评论 #9552975 未加载
评论 #9553449 未加载
评论 #9554223 未加载
przemoc大约 10 年前
Now that Rust reached v1.0, I may finally look into it without the fear of wasting time to learn stuff that will change within next months. (It&#x27;s quite sad, though, that recently released Debian Jessie won&#x27;t have it in its main repositories.)<p>Allow me to ask some questions, because I cannot easily find the answers and they&#x27;re IMHO crucial for wider Rust adoption:<p>1. What CPU architectures&#x2F;platforms Rust currently supports?<p>2. What&#x27;s the state of cross-compilation support?<p>Most of devs have workstation on i386&#x2F;amd64, but some of us may work with ARM, PowerPC and other architectures. Rust&#x27;s memory safety seems appealing for embedded solutions, but can it be used there already?<p>BTW The install page is not well-thought-out.<p><a href="http:&#x2F;&#x2F;www.rust-lang.org&#x2F;install.html" rel="nofollow">http:&#x2F;&#x2F;www.rust-lang.org&#x2F;install.html</a><p>Unless I hover on the 32-bit&#x2F;64-bit links and read addresses they point to, there&#x27;s no way to tell whether it&#x27;s for x86 or ARM for instance. And installation via piping script that is being downloaded to shell is something that shouldn&#x27;t be present at all.
评论 #9552542 未加载
评论 #9552836 未加载
steveklabnik大约 10 年前
Thank you so much to all of our community and contributors. It&#x27;s been a long time coming, but I&#x27;m really proud of what we&#x27;ve done together.<p>I&#x27;m finally going to get some real sleep tonight, I think.
评论 #9552026 未加载
iagooar大约 10 年前
This is so huge!<p>Rust is going to be the first time I am going to learn a programming language from the day it is born (until now it was tough to learn Rust, given the changing APIs ;).<p>I see a bright future for Rust. Thanks to Mozilla and the whole community for making it possible.
评论 #9552482 未加载
atonse大约 10 年前
Congrats to the team and thanks for your hard work! I&#x27;m not a Rust developer but it&#x27;s definitely piqued my interest in doing more native development without being afraid of introducing buffer overflows and other security exploits.
Arnor大约 10 年前
Awesome! I assume you intentionally released this on a Friday just to eat up everyone&#x27;s weekends :) Thanks for the hard work. As I dig in, I&#x27;m hoping that Rust will fit in the &quot;useful and safe&quot; sweet spot in Simon Peyton Jones&#x27;s diagram here: <a href="https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=iSmkqocn0oQ" rel="nofollow">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=iSmkqocn0oQ</a>
评论 #9552163 未加载
评论 #9555152 未加载
apaprocki大约 10 年前
If you haven&#x27;t played with Rust yet and are looking for some puzzles to help motivate you to learn, we&#x27;ve updated our Bloomberg CodeCon[1] site to support Rust 1.0. You can login and click the &quot;Challenger Series&quot; to get 17 problems of varying difficulty to solve in Rust.<p>[1] <a href="http:&#x2F;&#x2F;codecon.bloomberg.com&#x2F;" rel="nofollow">http:&#x2F;&#x2F;codecon.bloomberg.com&#x2F;</a>
评论 #9554390 未加载
评论 #9553519 未加载
izolate大约 10 年前
Well done! I&#x27;m generally against shoehorning languages into environments where they don&#x27;t belong, but I can&#x27;t wait to try using Rust for webdev.
评论 #9552152 未加载
评论 #9553233 未加载
评论 #9552577 未加载
评论 #9552830 未加载
borrowwhatnow大约 10 年前
Congrats! I&#x27;ve been excited about Rust for a while now, and this gives me a good reason to look into it a bit more. A quick question, though, if it&#x27;s appropriate in this context:<p>It seems to me that the borrow checker disallows behavior that I (perhaps naively) wouldn&#x27;t be concerned about. For example, if I have this C snippet:<p><pre><code> { &#x2F;&#x2F; Safe C int *ptr = NULL; int val = 42; ptr = &amp;val; } </code></pre> Everything is hunky-dory. Translating this to Rust results in this (I think):<p><pre><code> { &#x2F;&#x2F; Malformed Rust let ref: &amp;i32; let val = 42; ref = &amp;val; } </code></pre> Now the borrow checker tells me that &quot;val&quot; doesn&#x27;t live long enough, because the reference comes to life before the value. It seems like this should be safe behavior, because the reference isn&#x27;t bound to the value until after the value comes to life.<p>Can anyone shed some light on this for me? I&#x27;m all for safety, but this in particular seems like something that I should be allowed to do.
评论 #9552720 未加载
评论 #9552671 未加载
评论 #9552668 未加载
评论 #9552650 未加载
评论 #9552672 未加载
评论 #9552711 未加载
exacube大约 10 年前
It&#x27;s always exciting reading Rust posts on HN, so very happy about a stable release!!<p>I can&#x27;t help but feel the language has a very steep learning curve, however; doing something like making an event-queue-with-callbacks is very hard to write out in Rust if you&#x27;re a beginner with just the current docs.<p>I think Rust will benefit greatly if their docs compiled some articles on how to write typical systems-related code (for me, I would love to see how to implement task queues with callback mechanisms).
biftek大约 10 年前
Congrats Rust team, and perfect timing, got some vacation next week and plan to build some things.
BinaryIdiot大约 10 年前
I thought 1.0 was announced a few weeks ago. Am I going crazy? I mean it&#x27;s awesome news I&#x27;m just confused.<p>Edit: looks like I&#x27;m going crazy. It seemed so vivid too like I actually started checking out the rust documentation and was looking for a book to pick up. Unless everyone is messing with me...
评论 #9552503 未加载
评论 #9552210 未加载
评论 #9552073 未加载
评论 #9552076 未加载
评论 #9552673 未加载
iamthepieman大约 10 年前
Thanks so much to everyone who contributed to this milestone. Rust is one of the few pieces of new technology that has made me want to drop everything and dig in to it.<p>It&#x27;s also one of the few open source projects that has actually gotten me to contribute.
SamReidHughes大约 10 年前
I&#x27;d like to give special thanks to Daniel Micay, whose contributions are a major reason Rust is even remotely tolerable.
verandaguy大约 10 年前
Awesome! Now to get the STL docs up to speed and fix them up so that they&#x27;re less ambiguous to newcomers!
评论 #9552042 未加载
alfiedotwtf大约 10 年前
This has to be the fastest post to rise to #1 on HN I&#x27;ve ever seen!
评论 #9552244 未加载
hillsarealiv3大约 10 年前
Is there anywhere I can download a Rust tutorial in kindle format? I&#x27;d like to start learning Rust this weekend.<p>EDIT: To answer my own question: <a href="http:&#x2F;&#x2F;killercup.github.io&#x2F;trpl-ebook&#x2F;" rel="nofollow">http:&#x2F;&#x2F;killercup.github.io&#x2F;trpl-ebook&#x2F;</a>
istvan__大约 10 年前
Good news everyone! :) I really hope this language gets traction.
Animats大约 10 年前
Great! I just downloaded and installed it, and my programs still worked!<p>No more &quot;cargo clean; cargo update; cargo build; cargo test;&quot; every day! At last.
评论 #9552410 未加载
bliti大约 10 年前
Let me begin by saying congratulations to the Rust team and supporting community. I&#x27;ve been following Rust when I realized it would make for a good language to try with robotic controls (due to all the safety stuff). Stupid question time: What does this release mean for the embedded &#x2F; control systems community? Will you be recommending any specific boards &#x2F; micros &#x2F; libraries from now forward? If so, which?
评论 #9553463 未加载
spotman大约 10 年前
Very cool. Going to try to learn some basics this weekend! Exciting times watching (from a spectators points of view) the evolution of Rust to this point. Sounds like more exciting times ahead.
dennismp大约 10 年前
Congrats Rusties. I&#x27;ve just begun playing and it seems worth the time investment.
评论 #9552051 未加载
评论 #9552153 未加载
habitue大约 10 年前
It mentions the rust 1.1 beta, but doesn&#x27;t link to it. Where is the list of changes in 1.1?
评论 #9552339 未加载
crudbug大约 10 年前
I always disliked - &quot;let and let mut&quot;.<p>Personally - &quot;val and var&quot; are more intuitive.
评论 #9552634 未加载
aembleton大约 10 年前
Why does a simple &quot;Hello World&quot; create a 578KB binary?<p>Is it packaging a lot of extras that aren&#x27;t needed for such a simple program?
评论 #9552622 未加载
评论 #9552728 未加载
评论 #9553452 未加载
评论 #9552498 未加载
评论 #9553598 未加载
评论 #9553062 未加载
discardorama大约 10 年前
Congratulations to the team; it is nice to be around when a language is born. I remember when Ruby was born, and most people (that I knew) were like &quot;Huh? Why Ruby, when we have Perl?&quot;.<p>I haven&#x27;t followed Rust much, but as a total n00b: what are some <i>practical</i> reasons why one would choose to learn Rust? What features does this language have which others (pick: C, C++, D, etc.) don&#x27;t have? What does it do better than the aforementioned languages? (Please don&#x27;t take these as a challenge, but as a desire to learn more). Thanks!
评论 #9553167 未加载
评论 #9552599 未加载
评论 #9552602 未加载
评论 #9554062 未加载
EugeneOZ大约 10 年前
Congrats! Thanks to all who worked on it!
alexnewman大约 10 年前
A real game changer although I wonder if there&#x27;s still some minor breaking changes I&#x27;d like to see
评论 #9552288 未加载
pjmlp大约 10 年前
Congratulations to everyone on the team!
madez大约 10 年前
I think the release of the first stable version is an appropriate time to ask how the collaboration with packaging teams from major distributions is going.<p>Can you give us some information on that?
评论 #9554459 未加载
lcnmrn大约 10 年前
Rust is nice, but… Why can&#x27;t anybody made a language with the exact syntax of Python, but compiled? It doesn&#x27;t need extreme safety features or other buzzwords.
评论 #9555785 未加载
评论 #9555827 未加载
评论 #9555952 未加载
评论 #9560205 未加载
akulbe大约 10 年前
I&#x27;m on a Late 2013 Retina MacBook Pro, running 10.10.3, with the latest stable toolchain. It would not compile.<p><a href="http:&#x2F;&#x2F;pastebin.com&#x2F;bifK665u" rel="nofollow">http:&#x2F;&#x2F;pastebin.com&#x2F;bifK665u</a><p>I set --prefix=&#x2F;usr --enable-debug<p>No dice. I also tried to build from source in a VM on that same machine. 32-bit Ubuntu 14.04.2 (3GB of RAM), latest stable toolchain. Again, didn&#x27;t compile. Core dump.
评论 #9555551 未加载
mariusmg大约 10 年前
Any IDE support for Rust ?
评论 #9552571 未加载
评论 #9552854 未加载
评论 #9552403 未加载
评论 #9552245 未加载
评论 #9552394 未加载
评论 #9552275 未加载
评论 #9553184 未加载
jchoksi大约 10 年前
I was looking to see what UI and database bindings were available as crates and came across the crates.io web site.<p>It would be useful for people new to Rust to see what existing libraries are available and one way would be to have a link on the www.rust-lang.org site&#x27;s font page pointing to crates.io site.
评论 #9553486 未加载
gtirloni大约 10 年前
Would it be possible to achieve near-Rustiness with modern C++14 and tons of warnings&#x2F;errors enabled?
评论 #9559755 未加载
chucksmash大约 10 年前
Very exciting! I&#x27;ve worked through the tutorial in the past and enjoyed Rust very much but since then have just been passively following progress on HN. Looking forward to actually building something with it now.
GolDDranks大约 10 年前
Congratulations to everyone involved!! Exciting times!
rjammala大约 10 年前
Congrats!
alfiedotwtf大约 10 年前
\o&#x2F;
Psyonic大约 10 年前
Congrats! This is awesome. Been waiting for 1.0 to really start digging into Rust. Now&#x27;s the time :)
rukugu大约 10 年前
Just today I looked at beta release , congratulations and looking forward to using Rust
kamaal大约 10 年前
Can somebody explain for what kind of use cases would this be helpful to use?
评论 #9553197 未加载
评论 #9553220 未加载
fsloth大约 10 年前
Anyone succesfull getting any glfw stuff on windows to build dependebly yet?
cyber1大约 10 年前
Super!
tyrick大约 10 年前
Great job. I look forward to coding something over the weekend!
namelezz大约 10 年前
Congratulations to the Rust team. I have been waiting for this.
cjdrake大约 10 年前
+1, Congratulations Rust Team :)
shmerl大约 10 年前
Congratulations!
jedisct1大约 10 年前
Awesome!
outqin大约 10 年前
cheers LOL
评论 #9552709 未加载