Google recently came up with new programming language for web application named as
Dart.
Let's look at its technical specification :-
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.
In 2009, Google launched Go, a language designed for writing server software and handling other chores often handled today by C or C++. Dart, though, is "a new programming language for structured Web programming," according to the schedule for the Goto conference where Googlers plan to describe it next month.
Some Key feature mentioned by google about
Dart.
Key features of the Dart language include:
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.
More information about Dart can be found at :-
http://www.dartlang.org/
Sample "Hello World" program :-
main() {
var name = 'World';
print('Hello, ${name}!');
}
Tutorial for Dart language :-
http://www.dartlang.org/docs/getting-started/
How to use Dart with HTML ?
Like JavaScript, Dart programs can be directly embedded on HTML pages served to the browser.
Here is the example for it :-
simple Hello World in HTML using Dart. The main() method is the entry point.
<html>
<body>
<script type='application/dart'>
void main() {
HTMLElement element = document.getElementById('message');
element.innerHTML = 'Hello from Dart';
}
</script>
<div id='message'></div>
</body>
</html>
The div element above is guaranteed to exist by the time the Dart code starts running.
Let's see now whether in future DART will hit its target or not.