哪种新语言最适合编写操作系统?

huangapple go评论92阅读模式
英文:

Which new language would mostly fit for writing an OS

问题

我可以帮你翻译。你想开始一个关于编写一个新的迷你操作系统的小项目。现在有很多新的流行语言,它们因为安全性和接近C或C++的性能而受到青睐。哪种语言适合用来编写一个没有或者最小缺陷的操作系统呢?我可以想象,用一种新的语言编写可以大大减少代码行数,减少复杂性等等。其他可能的优势有哪些呢?

我可以想到的有:

  • Rust
  • D
  • Go
  • Red
  • Dart(也许)

还有其他的语言。

你知道有类似的项目吗?我甚至可以加入其中吗?
我知道答案是主观的,但这就是我所问的。关于为什么一种语言可能比另一种更适合的观点。

英文:

I want to start a small project about writing a new mini OS. There are a lot of new fancy languages nowadays gaining popularity for their safeness and almost c or c++ like performance. Which would be a good fit to write an OS with minimal or no drawbacks. I can imagine writing in a new language would drastically save lines of code, spare complexity and so on. What about other possible advantages?

I can think of

  • Rust
  • D
  • Go
  • Red
  • Dart (maybe)

and others

Do you know of any similar projects i might even join in?
I know the answers are opinionated, but that's what im asking for. Opinions on why one language might be a better fit than the other.

答案1

得分: 2

在你列出的备选语言中,Rust和D可能是最好的选择。除了Rust仍然处于1.0之前的版本,所以在你完成之前,语言很可能会有重大变化。如果你打算使用Rust,最好等到语言在1.0版本稳定下来(预计在年底之前),然后再开始你的项目。

英文:

Of the alternative languages you listed, Rust and D are most likely the best choices. Except that Rust is still pre-1.0, and so you are pretty much guaranteed the language will have breaking changes before you finish. If you're looking to use Rust it may be better to wait until the language stabilizes at 1.0 (which is supposed to happen before the end of the year), and then start your project.

huangapple
  • 本文由 发表于 2014年11月15日 23:55:56
  • 转载请务必保留本文链接:https://go.coder-hub.com/26947669.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定