現在能回答你了,官方的答案

Dart

AnalysisPro: Our current end-developers already use the language.

Pro: The majority of Fuchsias user interface is built using Flutter, which uses Dart.

Pro: Asynchronous programs can be written using straight-line code.Pro: People using the language are highly productive.Pro: The Fuchsia project has the opportunity to influence the evolution of the language.Pro: The language provides memory safety guarantees, which reduces the risk of software developed in the language having security bugs.Con: The language uses garbage collection to manage memory, which is more resource intensive than other techniques for managing memory.Con: The language has a substantial runtime environment.Con: The toolchain forces a trade-off between binary size, performance, and startup latency that is worse than the tradeoff provided by toolchains for other languages.DecisionDart is supported for end-developers targeting non-drivers.

Dart is approved for use in the Fuchsia Platform Source Tree for user interfaces and for programs that do not run indefinitely.

GoAnalysisPro: Go is a widely used language within Google.Pro: gVisor has implemented a network stack using the language and that network stack has been integrated with Fuchsia.Pro: People using the language are highly productive.Pro: The Fuchsia project has the opportunity to influence the evolution of the language.Pro: The language provides memory safety guarantees, which reduces the risk of software developed in the language having security bugs.Pro: The language has an extensive ecosystem of libraries that are likely to be useful on Fuchsia.Con: The language uses garbage collection to manage memory, which is more resource intensive than other techniques for managing memory.

Con: The language has a substantial runtime environment.

Con: The Fuchsia Platform Source Tree has had negative implementation experience using Go. The system components the Fuchsia project has built in Go have used more memory and kernel resources than their counterparts (or replacements) the Fuchsia project has built using C++ or Rust.Con: The toolchain produces large binaries.

最後的結論:

Decision

  • Dart is supported for end-developers targeting non-drivers.
  • Dart is approved for use in the Fuchsia Platform Source Tree for user interfaces and for programs that do not run indefinitely.

Decision

  • Go is NOT approved, with the following exceptions:
    • netstack. Migrating netstack to another language would require a significant investment. In the fullness of time, we should migrate netstack to an approved language.
  • All other uses of Go in the Fuchsia Platform Source Tree for production software on the target device must be migrated to an approved language.

翻譯:

Dart
  • Dart 被支持用於面向非驅動程序的終端開發者。
  • Dart 被批准在 Fuchsia Platform Source Tree 中用於用戶界面和無限期運行的程序。

Go

  • Go 僅被批准在網路技術棧中使用,因為網路棧的遷移需要大量成本。時間準許的話,應該將網路棧遷移到批准的語言。
  • 必須將 Fuchsia 中用於目標設備上生產軟體的所有其它 Go 代碼遷移到批准的語言。

Dart語言要崛起?谷歌官宣下一代操作系統UI編寫只支持Dart!-InfoQ?

www.infoq.cn

谷歌為什麼選擇 Dart?

優勢:

  • Fuchsia 的終端開發人員已經在使用 Dart;
  • Fuchsia 的大部分 UI 界面使用的是 Flutter,而 Dart 正是 Flutter 的官方語言;
  • 可以使用直線代碼編寫非同步程序;
  • Dart 的開發效率高;
  • Fuchsia 項目有機會影響語言的演變;
  • Dart 語言提供了內存安全保證,從而降低了開發的軟體存在安全漏洞的風險;

劣勢:

  • Dart 使用垃圾回收機制管理內存,更加佔用資源;
  • Dart 具有大量的運行時環境;
  • 工具鏈強制在二進位大小、性能和啟動延遲之間進行權衡,這比工具鏈為其他語言提供的權衡更糟糕。

看來應用層以後就是Java以及Java各種變種的天下,人也好招,隨便找個大學都可以招到會Java的畢業生


感覺google是為了推dart這門語言,所以纔出了flutter框架。


根本原因就是這是兩個團隊搞出來的。用了Go,flutter團隊還咋賺績效咋升職?

很多決策其實和技術無關,只是政治鬥爭的結果。


@圓胖腫 你洋洋灑灑寫了一大堆,最後強行往java拉要臉不?還扯出類Java語言?


坊間傳聞,是因為Flutter團隊和Dart團隊的辦公室是緊挨著的,有什麼問題就去隔壁問,比較方便。


推薦閱讀:
相關文章