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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Comparison between Rust and D

77 点作者 dumindunuwan将近 9 年前

8 条评论

nachtigall将近 9 年前
Says not much about garbage collection: Rust does not need one, D (at least its stdlib) needs it. How about Nulls or concurrency?<p>Seems to go very much into details about syntax bike shedding but not saying much about the more &quot;global&quot; design differences.
评论 #11975903 未加载
scotty79将近 9 年前
Another language you might consider is Nim which is more like D because it doesn&#x27;t have specific selling point like Rust. It&#x27;s very flexible and reasonable though and Python programmers will feel there immediately at home. You have GC there but you might opt out of it and&#x2F;or let it run at specific times and for specific amount of time to manage gc pauses.
Const-me将近 9 年前
This article only covers the code. For the projects I work on (mostly C++ and&#x2F;or C#), about 50% of decisions I make while coding is about data, not code.<p>IMO, Rust just not good enough for creating complex specialized data structures.<p>Even a trivial tree is hard to implement in Rust, and the implementation will be severely limited: <a href="https:&#x2F;&#x2F;github.com&#x2F;SimonSapin&#x2F;rust-forest" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;SimonSapin&#x2F;rust-forest</a><p>D surely has it’s problems as well (in short, I think the language itself is very good, but its runtime and libraries still need a lot of work), but at least it’s good for complex data structures.
评论 #11977616 未加载
评论 #11977562 未加载
评论 #11977483 未加载
评论 #11977571 未加载
评论 #11977437 未加载
programLyrique将近 9 年前
I&#x27;d really like to have type-level numbers natively in Rust. Implementing a vector generic on its dimensions seems to be so much easier in D!<p>Any prospect about that?
评论 #11975872 未加载
jpgvm将近 9 年前
This is really neat. I have dabbled in Rust and have been meaning to go back and look at D.<p>The other linked posts regarding meta-programming features of D are also great.
teamhappy将近 9 年前
I think the section about immutability should mention that this is possible in Rust:<p><pre><code> fn main() { let x = true; let x = false; } </code></pre> I was pretty disappointed when I found out about it.
评论 #11976872 未加载
评论 #11976349 未加载
评论 #11977201 未加载
yarrel将近 9 年前
Rust: people use.<p>D: people don&#x27;t.
d33将近 9 年前
I&#x27;m getting the impression that D is a failure. Is there any bigger project written in it? If not, why would it fail?
评论 #11981817 未加载
评论 #11976491 未加载