Dart (programming language)

Dart (programming language)
Dart
Dart-logo.png
Appeared in 2011
Developer Google
Preview release 0.05[1] (November 16, 2011; 6 days ago (2011-11-16))
Typing discipline optional
Influenced by CoffeeScript,[citation needed] Java, JavaScript, Strongtalk[citation needed]
Usual filename extensions .dart
Website www.dartlang.org

Dart (originally called Dash)[2] is a Web programming language developed by Google. It was unveiled at the GOTO conference in Aarhus, 2011 October 10-12.[3] The goal of Dart is "ultimately to replace JavaScript as the lingua franca of web development on the open web platform."[2]

Contents

Reason for a new language

Dart is intended to solve JavaScript's problems (which, according to a leaked memo, cannot be solved by evolving the language) while offering better performance, the ability "to be more easily tooled for large-scale projects" and better security features.[2] 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.[4] 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.

Compilers

dartc compiles Dart to plain JavaScript. Frog is a new Dart compiler written in Dart; while it does not yet have all the capabilities of dartc, it generates much more optimized code.[5]

Example

The famous Hello World example:[6]

main() {
    print('Hello World!');
}

A function to calculate the nth Fibonacci number:

int fib(int n) {
    return (n <= 1) ? n : (fib(n - 1) + fib(n - 2));
}
 
main() {
    print('fib(20) = ${fib(20)}');
}

See also

References

External links


Wikimedia Foundation. 2010.

Игры ⚽ Нужно решить контрольную?

Look at other dictionaries:

  • Opa (programming language) — Opa Paradigm(s) multi paradigm: imperative, functional Appeared in 2011 Developer MLstate Stable release …   Wikipedia

  • Dart (Programmiersprache) — Dart Paradigmen: Objektorientierte Programmierung Entwickler: The Dart Team Aktuelle Vorabversion: 0.05[1]  (14. November 2011) Typisierung …   Deutsch Wikipedia

  • Dart (langage informatique) — Dart Apparu en 2011 Site web dartlang.or …   Wikipédia en Français

  • Dart — Проверить нейтральность. На странице обсуждения должны быть подробности …   Википедия

  • Dart — Contents 1 Dart 2 Darts 3 DART Dart, DART or Darts may refer to: Dart …   Wikipedia

  • List of programming languages — Programming language lists Alphabetical Categorical Chronological Generational The aim of this list of programming languages is to include all notable programming languages in existence, both those in current use and historical ones, in… …   Wikipedia

  • V8 (JavaScript engine) — Google V8 JavaScript Engine Developer(s) Google Stable release 3.7.8[1] / November 17, 2011; 2 days ago …   Wikipedia

  • JavaScript — Не следует путать с Java. JavaScript Класс языка: мультипарадигменный …   Википедия

  • Common Lisp — Paradigm(s) Multi paradigm: procedural, functional, object oriented, meta, reflective, generic Appeared in 1984, 1994 for ANSI Common Lisp Developer ANSI X3J13 committee Typing discipline …   Wikipedia

  • Smalltalk — This article is about the programming language. For other uses, see Small talk (disambiguation). Smalltalk Smalltalk 80: The Language and its Implementation, a.k.a. the Blue book , a seminal book on the language Paradigm(s) object oriented… …   Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”