- In dart:collection, SplayTree added toSet() method, and in dart:convert a JsonUtf8Encoder class was added.
- In dart:core, the following three things were added:
- New properties and constructors for RangeError
- A new IndexError class - used by the RangeError.index constructor
- Optional start and end arguments for the String.fromCharCodes constructor.
- In dart:io we added support for the ALPN extension of the TLS secure networking protocol for Client and Server.
Friday, November 28, 2014
Friday, November 7, 2014
Today you can develop and deploy Dart server applications that run on the Google App Engine Managed VMs beta.
The productivity of the Dart language and libraries are a great fit for server applications. You get the competitive performance of the Dart VM while leveraging powerful tools like Observatory–all while easily sharing code with your browser application.
Now you can try Dart on Google App Engine, which lets you build and run applications on Google’s infrastructure. App Engine applications are easy to build, easy to maintain, and easy to scale as your traffic and data storage needs change. With App Engine, there are no servers for you to maintain. You simply upload your application and it’s ready to go.
Managed VMs extend App Engine to support user-defined custom runtimes. The Dart team is building on custom runtimes to allow you to easily develop and deploy Dart server applications that run on Google’s infrastructure.
Once you have set up your local development environment, you can quickly write and test your Dart server application using simulated App Engine Services–Datastore, Memcache, Logging, and more–on your development machine. A local admin interface gives you direct access to the services on the running instance. We’ve created several samples to get you started.
When you’re ready to deploy, App Engine gives you control over your application resources. You can also easily configure it to allow your application to automatically scale up and down in response to traffic. Once your site is live, you can monitor and manage your application using the browser-based Google Developers Console.
The Dart packages we are releasing today are beta, so we’d love your feedback. To participate in the discussion on running Dart on Managed VMs, and to stay informed with news and announcements, sign up for the Dart cloud Google Group. We are looking forward to your feedback so we can improve your experience with Dart and Google Cloud Platform.
To get started, visit dartlang.org/cloud.
Wednesday, October 22, 2014
Developing and debugging apps that run multiple computations in parallel is now easier, thanks to the new ability to set breakpoints inside of isolates.
For deep insight into your app running on the Dart VM, you can now open the Observatory directly from WebStorm 9. Use the Observatory to learn how memory is used, where CPU time is spent, and more.
It's now easier to debug apps that use collections (which is every app), thanks to the debugger's logical view of maps and lists. Developers now see the logical data structure instead of internal implementation details.
WebStorm 9 now understands syntax for deferred loading and symbols. Deferred loading helps web apps start quickly, by delaying when libraries are loaded. Symbols are used when an identifier needs to remain unmodified after minification.
We encourage you to try WebStorm or IntelliJ IDEA for your Dart development, and we hope you enjoy these new features. We look forward to your feedback.
Wednesday, October 15, 2014
The Dart language, libraries, and runtime make it easy to create command-line applications. In fact, all of the core tools in the Dart SDK – dart2js, pub, and dartanalyzer – are written in Dart. We wanted to allow developers to easily get their own Dart scripts and command-line apps into users' hands. With Dart 1.7, users now have an easy way to install and run scripts built with Dart, making first-class command-line Dart apps a reality.
$> git clone https://git.example.com/my_cool_app
$> cd my_cool_app
$> pub install
$> dart bin/my_cool_app.dart
$> pub global activate my_cool_app
Dart 1.7 also includes improvements to our code isolation models. You can now launch isolates with a different package root than the host application, allowing for composition of Dart applications with different dependencies. For more robust servers and long-running Dart scripts, developers cans now easily handle errors thrown in child zones.
We've also made it easier to install and upgrade Dart SDK and Dartium. We now support Apt on Linux and Homebrew on Mac.
For a summary of these and others changes see the release notes. You can download Dart 1.7 from the Download Dart page. If you are running the Dart Editor, you can update by checking "About Dart Editor". Check out the Dart support page for information on getting help, filing issues, contributing to the project.
Tuesday, October 14, 2014
Monday, October 13, 2014
The Google Elections team is happy with their experience. They write:
"We love writing Dart because it's fast, compact, and sane. Great tools and a readable language give us the confidence we need to move quickly. But adding Polymer to the mix is pure gold. After years of writing code for the web, this was the first time I've felt like I'm working with a real platform. We threw away tons of the boilerplate we've built up over time and just focused on the app itself. This was awesome."
Sean Diamond, new to our team this year, said, "Being new to web development, but having done years of UI development on native platforms, writing Polymer with Dart made me feel right at home. This is exactly how UI development should be done."
The Explorer is built with Dart, Polymer, Core Elements and Paper Elements.
Thursday, October 9, 2014
It's easy to get started. After you install Homebrew, run these commands to install the stable channel Dart SDK and Dartium:
brew tap dart-lang/dart
brew install dart
brew install dartium # if you build Dart client apps
brew upgrade dart
brew upgrade dartium
Use Homebrew if you build server-side Dart apps, or you are not using Dart Editor (for example, if you use WebStorm or Sublime). To download Dart Editor, you can continue to use the download page.