Thursday, January 16, 2014

Dart 1.1 features up to 25% faster Javascript

Better performance, more features, and improved tools mark the 1.1 release of Dart. Just two months after the 1.0 release, this new release delivers a set of compatible updates that makes applications easier to develop and faster for end users.




Dart’s Javascript output continues to shine. Performance on the Richards benchmark is 25% better than the first release, making runtime comparable to the original JavaScript. Performance of the newest benchmark, FluidMotion, has doubled since November. Dart2js now generates Javascript that performs as well as, if not better than, the idiomatic Javascript equivalent.

While there’s a lot of focus on Dart for browser applications, there is also growing interest in Dart for server solutions. This release provides a number of enhancements for server-side Dart, including support for large files, file copying, process signal handlers, and terminal information. New in this release is support for UDP, which, for example, allows developers to write more efficient media streaming apps.

The Dart Editor has added a number of features to increase productivity. Developers will find improved debugging, better code completion, and more descriptive tooltips. Overall performance of the Editor and the analyzer has also improved.

Take a look at the updated Dart language spec. You may also be interested in new articles on command-line applications, Dart-Javascript interoperability, and Streams.

We’re excited about the new features now available in Dart 1.1. Tell us what you build with Dart in our Google+ community and let us know if you have any issues or feature requests.

Monday, January 6, 2014

New docs and samples for server-side and command-line Dart apps

The Dart team published new docs and samples showing how to write command-line and server-side apps with Dart. The Dart VM's dart:io library provides access to files, directories, sockets, web sockets, SSL, TCP, UDP, HTTP, and more. Community packages on pub.dartlang.org provide higher-level frameworks and libraries.



The Command-Line Apps for Dart Programmer's Guide starts to collect resources for the new server-side and command-line Dart app developers. You'll find links to samples, API docs, community projects, tutorials, and more.

The new Command-Line Apps in Dart tutorial teaches you how to build command-line apps. Learn how to use stdin/stdout, command-line arguments, files and directories, and more.

For an in-depth look at how a Dart-based HTTP and Web sockets server is written, check out Walkthrough: Dartiverse Search. This chapter from Dart Up & Running shows how Dart is used for both the client and the server. Bonus: learn how you can connect to Github's API using Dart.

If you love to read code, check out the more than 40 samples and examples for server-side and command-line Dart apps. The new Dart By Example resource showcases mini-examples for files, directories, HTTP clients, HTTP servers, sockets, processes, paths, and much more.

If you'd like to see a specific tutorial written, please file a request at dartbug.com/new. If you have questions, please ask on StackOverflow.