Is dart a step closer, Sky will unified lake?

Source: Internet
Author: User

From the contact programming to now, in addition to a few days of jquery, almost no how to write JavaScript, just read the article two introduced ECMASCRIPT6, suddenly feel that did not write JS there is no good pity.

    • ES6 in Depth:an Introduction
    • ES6 in Depth:iterators and the for-of loop

ES6 seems to have been enacted since 2009, and now finally support, and so on, forEach for-in support Map , and Set other data types, and in order to consider compatibility issues actually introduced a for-of , but see Githut on the GitHub language statistics, Have to admire the JS community's strong productivity.

In a word, dart, as a brand-new language, has left backwards-compatible historical baggage since the day of its birth, and the V8 team that can turn directly into Javascript,chrome has made a virtual machine for Dart-dartium.

Dart is intended to be the same as Node and to unify the front-end development, as in the previous article (what's the language of dart?). Already said so, there is no extra cost of learning to do web development with dart, if you have to write dart.

The official tutorial provides a simple Web development tutorial-Avast, Ye pirates:write a Web App, with an DartEditor introduction to the project structure as shown:

There are CSS, HTML, one of the simplest Web projects (no backend), in which DartEditor you can run the project in two ways.

If selected Dartium , the successful compilation will evoke a Chrome browser using the Dartium engine, and the selection Run as JavaScript will first compile dart into the JS project (the gray part of the engineering chart), and then evoke a Chrome browser using the V8 engine 。

In fact, using Dart to do development is very convenient, JS can be directly used, but the community is not mature, unlike the node community as there are so many libraries.

Let's take a look at the next generation Android development framework-sky, today according to the Readme play a few official demo, fluency can be comparable with native, but need to load code from the network, so the start time is slow, after all, just an experimental version, like React-native does not have a problem doing a local cache like that.

The entire development process is very similar to the web development above, except that the suffix of the code file is changed.

The first thing you need to do is create a pubspec.yaml Node-like package.json or Gradle script build.gradle , mostly basic information about package dependencies and apps, and the last line that relies on the latest version of Sky.

name: your_app_namedependencies: sky: any

Executes in the current directory pub get , depending on the pubspec.yaml dependency configuration to get the package that the APP depends on.

?  widgets git:(master) ? pub getResolving dependencies... (1.7+0.0.5+dart-summit-1+0.0.5+dart-summit-72 dependencies!?  

After execution, you will find that there is a folder in the local package , which has just downloaded two packages.

Pub will first cache the downloaded package locally, and if a new download can directly refer to the previously downloaded package.

Sky we all know, it is the new Android development framework, consisting of two parts:

The Sky engine. The engine is the core of the system. Written in C + +, the engine provides the muscle of the Sky system. The engine provides several primitives, including a soft real-time scheduler and a hierarchial, Retained-mode graphics sys TEM, that's let you build high-quality apps. The Sky framework. The framework makes it easy-to-build apps using Sky by providing familiar user interface widgets, such as buttons, Infinit e lists, and animations, on top of the engine using Dart. These extensible components follow a functional programming style inspired by React.

In a nutshell,Sky engine is a graphical system, and Vdom's creation and diff should be responsible for it, while the Sky Framework is a UI library that provides the node elements we need to create vdom.

What is that mojo?

Mojo is an effort to extract a common platform out of Chrome's renderer and plugin processes that can support multiple Typ Es of sandboxed content, such as HTML, Pepper, or NaCl.

To put it simply, Mojo is the sky's runtime environment, but there is a mojo-sdk under Domokit, which gives us the API to do two development based on Mojo.

The Mojo public API was a binary stable API to the Mojo system.

It supports many languages, so far include,,,,,, C CPP Dart Go Java js .

In other words, Google wants to build an ecosystem.

The figure of Mojo looks particularly like the Microsoft launched the Mono, hope that Google can soon unified lakes and rivers, liberation of our yards, from hanging silk into a high-handsome, from the pinnacle of life.

Is dart a step closer, Sky will unified lake?

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.