Home >Backend Development >Golang >The difference between dart and golang

The difference between dart and golang

(*-*)浩
(*-*)浩Original
2019-12-14 11:22:278280browse

The difference between dart and golang

Currently, the positioning of these two languages ​​​​is different. Go favors the back end, and dart favors cross-platform apps. #)Embed a Dart virtual machine in the chrome browser, and you can develop Web APP using Dart language.

Although Dart claims that Dart2JS can be compiled into pure JS files that can run in various browsers, the JS compilation of Hello world has become a joke.

But we do not rule out future optimization. You must know that the person in charge of Dart is the person in charge of the V8 engine. V8 is the JS engine in the Chrome browser. This is an excellent JS engine with lightning speed, so Dart Optimization and improvement of JS technology does not seem to be a problem.

Dart is more like JAVA. JAVA either runs on the operating system desktop through J2SE, or runs on the server through J2EE, or runs on the mobile phone through J2ME. There is no JAVA running in the browser (not mentioned in early Applets). In terms of grammatical complexity, my personal feeling is that Dart is no less than JAVA.

What level of language does Dart belong to?

Dart belongs to an application layer programming language. It has its own DartVM, which usually runs on its own VM, but under certain circumstances it can also be compiled into Native Code and run on the hardware (such as in mobile development frameworks, Flutter will compile the code into Native Code for the specified platform to improve performance).

Running software written in Dart can be run directly as clear text code, and it also supports running snapshot-packaged binaries to improve startup speed, security and performance. You can think of it as JAVA or JavaScript; it is simpler and easier to understand than JAVA, and more standardized and engineering than JavaScript.

Go (also known as Golang) is a statically strongly typed, compiled language developed by Google's Robert Griesemer, Rob Pike and Ken Thompson.

Go language syntax is similar to C, but its functions include: memory safety, GC (garbage collection), structural form and CSP-style concurrent computing.

Go (also known as Golang) is a statically strongly typed, compiled, concurrent programming language with garbage collection capabilities developed by Google.

Robert Griesemer, Rob Pike and Ken Thompson began designing Go in September 2007, and later Ian Lance Taylor and Russ Cox joined the project.

Go is developed based on the Inferno operating system. Go was officially announced in November 2009, becoming an open source project and implemented on Linux and Mac OS X platforms, and later added implementation under Windows systems.

In 2016, Go was selected as the "TIOBE Best Language of 2016" by the software evaluation company TIOBE. Currently, Go releases a second-level version every six months (that is, upgrading from a.x to a.y).

The above is the detailed content of The difference between dart and golang. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn