Dart 1.8 Adds Support for App Engine and enums
Written by Kay Ewbank   
Friday, 05 December 2014

Google Dart has been updated to offer experimental support for enums, and Google has added the ability to run your Dart server-side apps on Google App Engine’s Manage VMs.  

googledart

 

 Introduced in 2011, Dart, Google's JavaScript replacement language  has already been accepted as an ECMA standard and has recently seen an astonishing rise in popularity, becoming one of the top twenty languages according to the TIOBE index .

The latest release, 1.8, has added experimental enum support, allowing you to write code such as: 

Dartenums

In addition it introduces improvements to the collection, core and io libraries. In the collection library, SplayTree is added to the toSet() method, and in dart:convert a JsonUtf8Encoder class has been added.

The experimental enum support has been one of the main requests from Dart programmers, though the current version has been described as limited, as it’s not possible to assign any values and there’s only an auto-incremented index that always starts from zero.

The core library now has new properties and constructors for RangeError; a new IndexError class - used by the RangeError.index constructor; and optional start and end arguments for the String.fromCharCodes constructor. The developers have also added support for the ALPN extension of the TLS secure networking protocol for Client and Server to the io library.

Alongside the new features, Google has added support for Dart on its App Engine. This means you can run your Dart server-side apps on Google App Engine’s Manage VMs. While Dart is mainly seen as a JavaScript replacement to run in the browser, the new support increases its general use. The advantage of using the App Engine is the ability to scale as traffic and data storage needs change, without needing to maintain servers. According to the Dart News site, the Dart team is building on custom runtimes to allow you to develop and deploy Dart server applications that run on Google’s infrastructure.

 

dartlogo

Banner


Insights From AI Index 2024 Report
17/04/2024

Published this week, the latest Stanford HAI AI Index report tracks worldwide trends in AI. A mix of its new research and findings from many other sources, it provides a wide ranging look at how  [ ... ]



The Experience AI Challenge
28/03/2024

The Raspberry Pi Foundation in collaboration with Google DeepMind has announced the Experience AI Challenge. Its intention is to guide young people under the age of 18, and their mentors, through [ ... ]


More News

 

raspberry pi books

 

Comments




or email your comment to: comments@i-programmer.info

Last Updated ( Friday, 05 December 2014 )