Dart 2 Released With New Mobile Focus
Written by Kay Ewbank   
Thursday, 09 August 2018

Dart 2 is now available as a stable release having undergone a complete rewrite. The open source language has been redesigned to focus on mobile and Web client-side applications.

The language has been in pre-release preview for the last eight months since Google first revealed the rewritten version. Dart was originally created as an alternative to JavaScript that would be supported directly by browsers rather than being compiled to JavaScript. Google did release a version of Chrome supporting it, but other browsers never added support so Dart fell from favor. In view of this, the developers of Dart said in 2015 that Dart wouldn't be included in future versions of Chrome, and would instead be developed as a better compiler.

The rewritten version is strongly typed by default, class based, and treats functions as objects. The stronger type support includes runtime checks to identify any type errors such as mismatched or incorrectly labeled types. Mike James described Dart 2 back when the beta was revealed as resulting from taking modern JavaScript - say ES2015 - and adding a true hierarchical type system to it, and with a chance of being used in the mobile app world.

Flutter uses Dart 2 as its language and it can create apps for iOS and Android using widgets for either Android or iOS. Flutter is Google’s mobile app SDK that can be used to create native interfaces on iOS and Android. A C++ engine takes your Dart code and runs it under either Android or iOS. Skia, Google's C++ graphics system that is used in Chrome and other Google apps, is used to provide a uniform graphics API which isolates the app from the differences in the actual graphics API the app runs under.

All this means the combination of Dart and Flutter makes it easier to write apps that work on Android and iOS. What remains to be seen is whether developers decide to use the combination to create apps. It would be more convincing if Google had an obvious reason for wanting yet another language and yet another way to create mobile apps. It is also disturbing that Dart can be completely revamped with so little apparent trauma.  Our advice is to still keep watching what happens and see if there is a long term future for Dart and Flutter.

 

 

 dartlogo

 

More Information

Dart

Flutter

Related Articles

Google's Dart Reborn As Cross Platform App Language

Dart Changes Course - No Longer To Be Native In Chrome

The Astonishing Rise Of Dart

Ecma Approves Dart

Dart 1.8 Adds Support for App Engine and enums

Dart + Chromium = Dartium

Angular Partners With TypeScript

 

To be informed about new articles on I Programmer, sign up for our weekly newsletter, subscribe to the RSS feed and follow us on Twitter, Facebook or Linkedin.

Banner


Visual Studio 17.12 Released Along With Aspire
25/11/2024

Visual Studio 2022 v17.12 is now available. The release can be used for .NET 9 projects and has a range of other improvements.



Rust 1.83 Improves Const Context Code Handling
12/12/2024

Rust 1.83 has been released with improvements to the handling of code running in const contexts.


More News

espbook

 

Comments




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

Last Updated ( Thursday, 09 August 2018 )