Google launches Dart as a JavaScript killer

Dart can be used for both small Web projects, as well as large ones, company engineers said

Google has launched a preview version of a new Web programming language, called Dart, which the company's engineers hope will address some of the shortcomings of the widely used JavaScript language.

Google's goals for Dart are to create "a structured yet flexible language for Web programming," wrote Lars Bak, who is a software engineer for Google's Dart team, in a blog post officially announcing the language Monday.

Although Bak did not mention JavaScript by name, Dart's capabilities resemble those of JavaScript, though they also address some of the scalability and organizational issues that have been associated with JavaScript. In leaked memos, Google engineers have expressed frustration over "fundamental flaws that cannot be fixed by merely evolving" JavaScript.

Designed for building Web applications, Dart is an object oriented language, one designed to be used for both quickly cobbling together small projects, as well as for developing larger-scale Web applications. Dart allows the programmer to add variables without defining their data type -- called dynamic typing -- or to define their data types, called static typing. Dynamic typing is best for small projects that need to be ramped up quickly, while static typing will help secure and speed large-scale Web programs.

The preview version includes a compiler and a virtual machine, along with a set of basic libraries. In order to get their Dart creations to run on browsers, programmers can compile them to JavaScript using a tool included in the Dart package. Eventually Google would like each browser to include a native Dart virtual machine, upon which Dart programs can run. Now, not even Google's own browser, Chrome, will support Dart. "We plan to explore this option," Bak wrote.

Google will have a lot of campaigning to do, if it indeed wants Dart to replace JavaScript across the Web. In its latest monthly estimate of programming language popularity, Tiobe Software ranked JavaScript as the 10th most widely used language overall.

First developed by Netscape in 1995, JavaScript was designed as a scripting language for adding programming functionality to Web browsers. The following year, Netscape submitted it to ECMA International as a standard, resulting in the standardized version called ECMAScript. Adobe also uses a version of ECMAScript, called ActionScript, for developers to write for Adobe's Flash player.

Dart is not Google's first foray into creating a new programming language to address the shortcomings of older ones. In 2009, the company debuted Go, which the company's engineers created as an alternative to the complexities of C++, Java and other traditional languages.

Bak plans to reveal more about Dart at the GoTo conference, being held this week in Aarhus, Denmark.

Joab Jackson covers enterprise software and general technology breaking news for The IDG News Service. Follow Joab on Twitter at @Joab_Jackson. Joab's e-mail address is Joab_Jackson@idg.com

Join the PC World newsletter!

Error: Please check your email address.

Tags Development toolsapplication developmentWeb services developmentLanguages and standardsGooglesoftware

Our Back to Business guide highlights the best products for you to boost your productivity at home, on the road, at the office, or in the classroom.

Keep up with the latest tech news, reviews and previews by subscribing to the Good Gear Guide newsletter.

Joab Jackson

IDG News Service
Show Comments

Essentials

Lexar® JumpDrive® S57 USB 3.0 flash drive

Learn more >

Microsoft L5V-00027 Sculpt Ergonomic Keyboard Desktop

Learn more >

Mobile

Lexar® JumpDrive® S45 USB 3.0 flash drive 

Learn more >

Exec

HD Pan/Tilt Wi-Fi Camera with Night Vision NC450

Learn more >

Lexar® Professional 1800x microSDHC™/microSDXC™ UHS-II cards 

Learn more >

Audio-Technica ATH-ANC70 Noise Cancelling Headphones

Learn more >

Lexar® JumpDrive® C20c USB Type-C flash drive 

Learn more >

Budget

Back To Business Guide

Click for more ›

Most Popular Reviews

Latest News Articles

Resources

GGG Evaluation Team

Michael Hargreaves

Windows 10 for Business / Dell XPS

I’d happily recommend this touchscreen laptop and Windows 10 as a great way to get serious work done at a desk or on the road.

Aysha Strobbe

Windows 10 / HP Spectre

Ultimately, I think the Windows 10 environment is excellent for me as it caters for so many different uses. The inclusion of the Xbox app is also great for when you need some downtime too!

Mark Escubio

Windows 10 / Lenovo Yoga

For me, the Xbox Play Anywhere is a great new feature as it allows you to play your current Xbox games with higher resolutions and better graphics without forking out extra cash for another copy. Although available titles are still scarce, but I’m sure it will grow in time.

Kathy Cassidy

STYLISTIC Q702

First impression on unpacking the Q702 test unit was the solid feel and clean, minimalist styling.

Anthony Grifoni

STYLISTIC Q572

For work use, Microsoft Word and Excel programs pre-installed on the device are adequate for preparing short documents.

Featured Content

Latest Jobs

Don’t have an account? Sign up here

Don't have an account? Sign up now

Forgot password?