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


Apache Updates Wicket
03/10/2024

Apache Wicket has been updated to version 10.2, following the major release of Wicket 10 earlier this year. The open source Java web framework is now built on top of Java 17, and has a new module test [ ... ]



Run C From JavaScript
25/09/2024

The serverside JavaScript engine Bun has a new trick. You supply it a C file and it will let you call C functions from JavaScript. Genius or insane?


More News

kotlin book

 

Comments




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

Last Updated ( Thursday, 09 August 2018 )