雪花台湾

flutter为什么不用Go语言,而用Dart?


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

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

Decision

翻译:

Dart

Go

Dart语言要崛起?谷歌官宣下一代操作系统UI编写只支持Dart!-InfoQ?

www.infoq.cn

谷歌为什么选择 Dart?

优势:

劣势:

看来应用层以后就是Java以及Java各种变种的天下,人也好招,随便找个大学都可以招到会Java的毕业生


感觉google是为了推dart这门语言,所以才出了flutter框架。


根本原因就是这是两个团队搞出来的。用了Go,flutter团队还咋赚绩效咋升职?

很多决策其实和技术无关,只是政治斗争的结果。


@圆胖肿 你洋洋洒洒写了一大堆,最后强行往java拉要脸不?还扯出类Java语言?


坊间传闻,是因为Flutter团队和Dart团队的办公室是紧挨著的,有什么问题就去隔壁问,比较方便。


推荐阅读:
相关文章