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.

Why Rust? [pdf]

134 pointsby nercuryover 9 years ago

9 comments

SloopJonover 9 years ago
While I appreciate the direct link that bypasses the email form, here&#x27;s the page describing the report and its author:<p><a href="http:&#x2F;&#x2F;www.oreilly.com&#x2F;programming&#x2F;free&#x2F;why-rust.csp" rel="nofollow">http:&#x2F;&#x2F;www.oreilly.com&#x2F;programming&#x2F;free&#x2F;why-rust.csp</a><p>&quot;One of the original designers of the Subversion version control system, [Jim Blandy is] a committer to the SpiderMonkey JavaScript engine, and has been a maintainer of GNU Emacs, GNU Guile, and GDB.&quot;
hrjetover 9 years ago
From page 19:<p>&gt; But all those other languages include explicit support for null pointers for a good reason: they’re extremely useful. [....] The problem with null pointers is that it’s easy to forget to check for them.<p>There is no inherent reason for that; just that mainstream languages which support `null` haven&#x27;t been checking `null` usage. Some of the recent ones do. For example, Kotlin has non-nullable types by default, and null types have to be explicitly marked and checked for null-ness.<p>Even for Java, null analysis is built into Eclipse with the help of annotations. Though, ofcourse, it would be far nicer to have it baked into the language.
评论 #10193350 未加载
Animatsover 9 years ago
The book is exactly what it says it is. &quot;Why Rust&quot;, an argument for Rust. 50+ pages. It&#x27;s a fun read, but not too useful. My own comment on Rust is that the borrow checker is brilliant, and we&#x27;ll see that again in other languages. The type&#x2F;generic system picks up where C++ left off, and is very complex. But that may get better as the mess settles down and gets better documentation.<p>We now need a &quot;programming in Rust&quot; book which is not by one of the Rust developers, who are too close to the design.
评论 #10192888 未加载
评论 #10193324 未加载
评论 #10192770 未加载
评论 #10193191 未加载
评论 #10193224 未加载
评论 #10192959 未加载
shadowmintover 9 years ago
<p><pre><code> The std::thread::scoped function used here is undergoing some redesign... </code></pre> &#x2F;grumble &#x2F;grumble<p>Yes, I know, it&#x27;ll all eventually settle down, but darn its annoying at the moment trying to use stable.
评论 #10192153 未加载
评论 #10192668 未加载
oneJobover 9 years ago
I know this not the optimal place for this comment&#x2F;question, but I think likely that many who are interested in this post would be able to speak to the post.<p>I&#x27;m also a huge fan of the Chapel Programming language. Anyone else think they&#x27;re both hitting a sweet spot and would potentially have a beautiful love child?
tmalyover 9 years ago
Is there a Tour of Rust like there is a Tour of Go? I found the Tour of Go very helpful when I first approached the language.
评论 #10193124 未加载
eklavyaover 9 years ago
Awesome read, really helpful. Thanks :)
0xe2-0x9a-0x9bover 9 years ago
There is nothing in Rust that would ease solving hard problems. Graphs are unsupported. No transactional memory. No distributed computing. No migration. No support for trying. No memoization. No proofs.
评论 #10192729 未加载
评论 #10192712 未加载
评论 #10192744 未加载
评论 #10193034 未加载
评论 #10192697 未加载
评论 #10192720 未加载
评论 #10193960 未加载
评论 #10193000 未加载
评论 #10192707 未加载
0xdeadbeefbabeover 9 years ago
&gt; It’s very difficult to write multithreaded code, which is the only way to exploit the abilities of modern machines.<p>QED? Really? I&#x27;m not so sure I trust the author to give rust fair treatment anymore. An operating system that does multithreading is not the same as a modern machine.<p>Edit: Any brave down voters want to explain why? Threads are a way to model concurrency. There are other ways.
评论 #10192243 未加载
评论 #10193086 未加载
评论 #10192250 未加载
评论 #10192676 未加载