Google Dart

Recently Google revealed the new programming language named Google Dart.

Dart is a new class-based programming language for creating structured web applications. Developed with the goals of simplicity, efficiency, and scalability, the Dart language combines powerful new language features with familiar language constructs into a clear, readable syntax. Dart has several key features:

Classes

Classes and interfaces provide a well understood mechanism for efficiently defining APIs. These constructs enable encapsulation and reuse of methods and data.


Optional types

Dart programmers can optionally add static types to their code. Depending on programmer preference and stage of application development, the code can migrate from a simple, untyped experimental prototype to a complex, modular application with typing. Because types state programmer intent, less documentation is required to explain what is happening in the code, and type-checking tools can be used for debugging.

Libraries

Developers can create and use libraries that are guaranteed not to change during runtime. Independently developed pieces of code can therefore rely on shared libraries.
Tooling

Dart will include a rich set of execution environments, libraries, and development tools built to support the language. These tools will enable productive and dynamic development, including edit-and-continue debugging and beyond—up to a style where you program an application outline, run it, and fill in the blanks as you run.

This is very early stage of this project but it looks like to be a very powerful tool in the future. At the moment there are several ways how you can run the Dart code:
ompile Dart code to JavaScript that can run in any modern browser:
Chrome, Safari 5+, and Firefox 4+ (more browser support coming shortly)

  • Use Dartboard to write, modify, and execute small Dart programs within any browser window

  • Soon: Execute Dart code directly in a VM on your computer

  • Soon: With a new MIME type, use Dart in a browser without first compiling to JavaScript

Dart Editor supports Dart-to-JavaScript compilation now. The command-line tools, such as the VM and Dart-to-JavaScript compiler, aren't yet ready for general use. However, you can build the command-line tools using the source code in the Dart project. With the new MIME type application/dart you will be able to embed a Dart program directly on an HTML page, or you will be able to use a #import or #source statement to pull in external files.

Code Editor

If you want to write the Dart code in very comfortable way, you can use the Dart editor which is already available for Linux, Windows and Mac platforms.Dart Editor is a lightweight, open-source editor based on Eclipse components. In addition to editing Dart programs, you can use Dart Editor to invoke the Dart-to-JavaScript compiler and launch Dart-based web apps.

The next development will be based on feedback received from the people who will use it.



Posted by Michal Kral | Thursday, November 17, 2011 | Comments (0) | Trackbacks (0) | Permalink
Comments
Post has no comments.
Post a Comment




Captcha Image










Captcha Image
Fortix Recent Awards