Dart (programming language)

This is an old revision of this page, as edited by Raysonho (talk | contribs) at 16:53, 10 October 2011 (cleanup). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Dart (originally called Dash) is a web programming language developed by Google. It will be unveiled at the GOTO conference in Aarhus, 2011 October 10-12.[2] The goal of Dart is to replace JavaScript as the main built-in scripting language in web browsers.

Google Dart
Paradigmoptionally typed
Designed byGoogle
DeveloperGoogle
Preview release
0.01[1] / October 10, 2011; 13 years ago (2011-10-10)
Websitewww.dartlang.org
Influenced by
Java, JavaScript

Reason for a new Language

Dart is trying to solve JavaScript's problems (which, according to a leaked memo,[3] cannot be solved by evolving the language) while offering better performance (it's a design goal), the ability "to be more easily tooled for large-scale projects" and better security features.[4] They are developing a cloud-based IDE called Brightly, that will perhaps be the first Dart application. Google will offer a cross compiler that compiles Dart to ECMAScript 3 on the fly, for compatibility with non-Dart browsers. There will also be a facility to convert typed Closure code to Dart.[5] Google will also integrate a native VM into Chrome and encourage competitors to do the same with their browsers. The Dart VM and Dart Cross Compiler could be available in late 2011.[4]

Example

main()
{
  print('Hello, Dart!');
}

See also

  • Document Object Model (DOM) - a convention for representing and interacting with objects in HTML, XHTML, and XML documents

References

  1. ^ "Dart Programming Language Specification" (PDF).
  2. ^ Presentation: "Opening Keynote: Dart, a new programming language for structured web programming" - GOTO Aarhus 2011 conference. Planned official presentation of the Dart language, on October 10.
  3. ^ "Future of Javascript" doc from our internal "JavaScript Summit" last week - Leaked internal Google email]
  4. ^ a b Google Operating System: Dash, Google's Alternative to JavaScript
  5. ^ Google Dart to “ultimately ... replace JavaScript”