Monday, 10 October 2011

Design goals

The Dart programming language is presented here in its early stages. The following design goals will guide the continued evolution and refinement of this open source project:
  • Create a structured yet flexible programming language for the web.
  • Make Dart feel familiar and natural to programmers and thus easy to learn.
  • Ensure that all Dart language constructs allow high performance and fast application startup.
  • Make Dart appropriate for the full range of devices on the web—including phones, tablets, laptops, and servers.
  • Provide tools that make Dart run fast across all major modern browsers.
These design goals address the following problems currently facing web developers:
  • Small scripts often evolve into large web applications with no apparent structure—they’re hard to debug and difficult to maintain. In addition, these monolithic apps can’t be split up so that different teams can work on them independently. It’s difficult to be productive when a web application gets large.
  • Scripting languages are popular because their lightweight nature makes it easy to write code quickly. Generally, the contracts with other parts of an application are conveyed in comments rather than in the language structure itself. As a result, it’s difficult for someone other than the author to read and maintain a particular piece of code.
  • With existing languages, the developer is forced to make a choice between static and dynamic languages. Traditional static languages require heavyweight toolchains and a coding style that can feel inflexible and overly constrained.
  • Developers have not been able to create homogeneous systems that encompass both client and server, except for a few cases such as Node.js and Google Web Toolkit (GWT).
  • Different languages and formats entail context switches that are cumbersome and add complexity to the coding process.

Technical Overview - Key features

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.

Key features

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.

First information on DART Programming language

Programmer and project leader Lars Bak detailed the project in a talk today at the Goto conference conference today in Denmark and in a blog post. Dart is geared for everything from small, unstructured projects to large, complicated efforts--Gmail and Google Docs, for example.

"If we want to focus on making the Web better over time, we have to innovate," including with new programming languages, Bak said in an interview today.

Google also unveiled a Dart language site including open-source tools for writing Dart programs, code samples and tutorials, supporting libraries of supporting software, the Dart language specification, and forums for discussion.

A month ago, details about Dart raised some hackles about Google's Web technology tactics when an 2010 internal memo about it, then called Dash, surfaced on a mailing list. One tidbit from that memo is that Dart's goal is "to replace JavaScript as the lingua franca of Web development."

Google is a big company, though, and others within the company remain strong JavaScript adherents. And Bak, while not denying Google has big ambitions, was quick to proclaim JavaScript alive and well.

"It's not going to replace JavaScript," Bak said. "JavaScript is is a cornerstone of the Web today, and it will continue to be for a long, long time."

Bak bristled at some of complaints about Google's approach to creating Dart in-house and not through a more collaborative approach.

"I don't buy the argument that before writing any line of code or designing any features, you put it in a standards committee, because that would just be a lot of screaming," Bak said. "You have to have coherent design before you start adopting Dart as a standard."

Making a standard is a goal, though. "It will be fairly lonely to create a standards committee when here's only us in it. We first have to get the backing of other partners before we can make a standard that's useful," he said.

Google is releasing Dart now for the next step in its maturation: outside feedback and participation. "We hope the other browser vendors will be excited," Bak said, adding that today is the first that Google has shared details about Dart with them or others.

Google is evaluating the best way to integrate Dart directly into its Chrome browser, something Bak is keen on. One reason: it will enable a "snapshotting" technology that dramatically improves a Web app's start-up time. Snapshotting involves taking an application and "serializing" it into a single block of data.

    Dart's design goals are:

    Create a structured yet flexible language for Web programming.

    Make Dart feel familiar and natural to programmers and thus easy to learn.
   
        Ensure that Dart delivers high performance on all modern Web browsers and environments ranging from small handheld devices to server-side execution.

    Dart targets a wide range of development scenarios: from a one-person project without much structure to a large-scale project needing formal types in the code to state programmer intent. To support this wide range of projects, Dart has optional types; this means you can start coding without types and add them later as needed. We believe Dart will be great for writing large web applications.
   
    Dart programs will be able to run within a Dart virtual machine--essentially a layer of software that acts as a computer to execute programs. They'll also be able to run using a compiler that translates Dart code into JavaScript code for browsers that don't support Dart, Bak said.
       
        Google's Chrome browser has served as a vehicle to get the company's technology such as WebM and SPDY useful for at least a portion of Web users. Though the 2010 Dart/Dash memo said Google planned build Dart support into Chrome, Bak was cautious about making any definite statements beyond saying browser integration brings benefits. It's notable, though, that Bak led development of Chrome's V8 JavaScript engine, so he's hardly a stranger to the Chrome team or to the challenges of improving Web-app speed.
       
        Building Dart into Chrome could let Google build Dart versions of its advanced Web apps that--if the language lives up to its billing--could be better than those Web apps today.
       
        "Google has a lot fairly big Web applications. That includes Gmail and Docs. I hope many of these apps will be converted into Dart," Bak said--but cautioned that was his personal option, not an explicit plan.
       
        Introducing new programming languages is tough. Though many hope that computing can improve by reforming or replacing languages, the incumbent power of existing languages is strong. Educating thousands or millions of programmers, building developer tools, and creating supporting libraries of code all can take years. As newer languages such as Java, JavaScript, and C# attest, though, it is possible.
       
        Google also is trying to gain a foothold for Go, a programming language geared more for native software that today would most likely be written with C or C++.
       
Dart is designed to address several shortcomings Google sees with Web programming today, according to the Dart technical overview:

Small scripts often evolve into large web applications with no apparent structure--they're hard to debug and difficult to maintain. In addition, these monolithic apps can't be split up so that different teams can work on them independently. It's difficult to be productive when a Web application gets large.

 Scripting languages are popular because their lightweight nature makes it easy to write code quickly. Generally, the contracts with other parts of an application are conveyed in comments rather than in the language structure itself. As a result, it's difficult for someone other than the author to read and maintain a particular piece of code.

 With existing languages, the developer is forced to make a choice between static and dynamic languages. Traditional static languages require heavyweight toolchains and a coding style that can feel inflexible and overly constrained.

 Developers have not been able to create homogeneous systems that encompass both client and server, except for a few cases such as Node.js and Google Web Toolkit (GWT).

 Different languages and formats entail context switches that are cumbersome and add complexity to the coding process.

Wednesday, 5 October 2011

Brain behind Google's Dart Programming Language

Lars Bak : Lars Bak is a Danish computer programmer who currently works for Google where he has contributed to the Chrome browser by developing the V8 JavaScript engine. He now lives near Aarhus in Denmark with his wife and two children.

Bak studied at Aarhus University in Denmark, receiving an MS degree in computer science in 1988 after which he became active in designing and implementing object-oriented virtual machines.
After participating in the design and implementation of the Beta MjĂžlner System, in 1991 he joined the Self group at Sun Microsystems Laboratories in Cupertino, California. During his time there, he developed a programming environment for Self and added several enhancements to the virtual machine.

In 1994, he joined Longview Technologies LLC, where he designed and implemented high performance virtual machines for both Smalltalk and Java. After Sun Microsystems acquired Longview in 1997, Bak became engineering manager and technical lead in the HotSpot team at Sun's Java Software Division where he developed a high-performance Java ME virtual machine for mobile devices.

In 2002, after returning to Aarhus, Denmark, Bak founded OOVM, a company which developed software for mobile phones. In 2004, he sold it to a Swiss company, Esmertec.

In 2004, Bak joined Google to work on the Chrome browser. He did not return to the United States, preferring to work in Denmark where his daughters were also receiving their education. With a team of 12 engineers, Bak has been coordinating the development of the V8 JavaScript interpreter for Chrome, named after the powerful automobile engine.

Bak holds 18 U.S. software patents in the field of virtual machines programming. In 2010, after Oracle bought Sun and with Lars Bak now working for Google, Oracle sued Google for infringing on several software patents and amongst them was the "Interpreting functions utilizing a hybrid of virtual and native machine" patent filed by Lars Bak .Bak has also co-developed the DART programming language to be presented by at the 2011 goto conference in Aarhus, Denmark. 

Gilad Bracha : Gilad Bracha is a software engineer, a co-author of the second and third editions of the Java Language Specification, a major contributor to the second edition of the Java Virtual Machine Specification,  and the creator of the Newspeak programming language.

From 1997 to 2006, he worked at Sun Microsystems as Computational Theologist and, as of 2005,
Distinguished Engineer, on various aspects of the specification and implementation of Java. Following that, he was Distinguished Engineer at Cadence Design Systems from 2006 to 2009, where he led a team of developers designing and implementing Newspeak.  Between 1994 and 1997, he worked on the Smalltalk system developed by Animorphic Systems,  a company that was bought by Sun in 1997.Bracha received his Ph.D. in Computer Science from the University of Utah.

Kasper Verdich Lund :    Software engineer at Google Inc. in the Danish office in Aarhus where I work on V8: Google's high-performance JavaScript engine. V8 is used in Google Chrome and is freely available as open source software under a permissive BSD license.

Software engineer at Esmertec AG where I worked on the OSVM™ platform. OSVM is a secure, object-oriented, serviceable, real-time software platform for embedded devices. The platform enables developers to debug, profile, and update code running on embedded devices in the field, vastly improving reliability and development productivity. It was launched as a product in March, 2005.

Co-founder of OOVM A/S. OOVM A/S (Object-Oriented Virtual Machines) was a privately held venture financed company dedicated to creating a much simpler and more reliable software platform for the embedded software market. See our research paper, which was accepted and selected for the conference journal at the ESUG 2004 conference. OOVM A/S was acquired by Esmertec AG in July, 2004

Software engineer at Sun Microsystems, Inc. where I worked on the CLDC Hotspot™ Implementation. CLDC HI is an open source, optimized Java™ virtual machine that complies with the CLDC specification. It includes dynamic compilation, generational garbage collection, fast synchronization, and unified resource management. See the white paper from Sun for more technical details or browse the source code.

Student programmer at the CPN group at the University of Aarhus where I worked on CPN Tools, an integrated tool for editing, simulating, and analysing Coloured Petri Nets. The user interface is based on advanced interaction techniques, such as toolglasses, marking menus, and bi-manual interaction. See our article published in Petri Nets 2000, 21st International Conference on Application and Theory of Petri Nets.

Mark S. Miller : Mark S. MillerMark S. Miller is an American computer scientist. He is known for his work as one of the participants in the 1979 hypertext project known as Project Xanadu; for inventing Miller Columns; as the co-creator of the Agoric Paradigm of market-based distributed secure computing; and the open-source coordinator of the E programming language. He also designed the Caja programming language.
Miller earned a BS in computer science from Yale in 1980 and published his Johns Hopkins PhD thesis in 2006. Previously Chief Architect with the Virus-Safe Computing Initiative at HP Labs, he is now a research scientist at Google and a member of the EcmaScript (JavaScript) committee.