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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Path to Rust – A practical introduction

136 点作者 sargas将近 9 年前

4 条评论

sargas将近 9 年前
The article itself points to a HN discussion: <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=11774850" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=11774850</a><p>I didn&#x27;t see it until it was mentioned here.<p>I can&#x27;t seem to delete this discussion. So I added the original link here. Please head there.
评论 #11818893 未加载
smitherfield将近 9 年前
Rust is an interesting language, although I haven&#x27;t really had the time to really sit down and play with it (just switched jobs to become a mobile developer while knowing no Swift&#x2F;Obj-C and not much Java, so I&#x27;ve got my hands full for at least a few weeks).<p>I&#x27;ve been watching Rust on that Benchmarks Game site for a while — it&#x27;s been interesting to see it go from worse than Java a year or so ago to competitive with C++. It was slightly beating C++ for a couple days, although just recently C++ took its biggest lead in a while[0]; I think they upgraded the GCC version they were using.<p>Anyway, I&#x27;m very curious whether it ultimately turns out that, as advertised, Rust&#x27;s performance characteristics really are as good or better than C++&#x27;s[1].<p>[0] <a href="http:&#x2F;&#x2F;benchmarksgame.alioth.debian.org&#x2F;u64q&#x2F;which-programs-are-fastest-firstlast.svgz" rel="nofollow">http:&#x2F;&#x2F;benchmarksgame.alioth.debian.org&#x2F;u64q&#x2F;which-programs-...</a><p>[1] The &quot;Benchmarks Game&quot; site very fairly specifies the algorithm that must be used for each benchmark — many of them say data must be operated on sequentially, so IMO Rust is getting a bit of an unfair advantage if the compiler is able to be particularly aggressive at autovectorizing it.<p>OTOH that is a nice real-world speedup, and anything else that&#x27;s implemented with LLVM or GCC also has access to that optimization, so YMMV.
评论 #11818751 未加载
评论 #11818841 未加载
评论 #11824330 未加载
klapinat0r将近 9 年前
Previous (fruitful) discussion here: <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=11774850" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=11774850</a>
评论 #11817426 未加载
评论 #11818791 未加载
foota将近 9 年前
I decided to try out rust in a game jam hosted at my university a few weeks ago. It was a great learning experience, which is to say that it was incredibly frustrating in a good way.
评论 #11818802 未加载