Friday, November 28, 2014

Dart 1.8: library improvements and experimental support for enums

Would you like to try out Dart’s upcoming support for enums? In Dart Editor under Tools > Preferences > Experimental you can “Enable Enums Support” and start experimenting with code like:


With Dart 1.8, a number of library improvements have also landed. 
  • 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.
For a summary of these and others changes see the release notes. You can download Dart 1.8 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, and contributing to the project.

Friday, November 7, 2014

Running Dart server applications on Google Cloud Platform

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.