Google Releases Dart 2.5: Code Completion through Machine Learning

The latest version of Googles C-Alternative, Go 1.13, is barely released, as the JavaScript derivative of the Internet giant follows: Dart 2.5 is here! The highlights of the release are two technical previews. The first is the Foreign Function Interface ( dart:ffi ) for calling C code directly from darts. The second is for code completion supported by machine learning.

While the programming language Go enjoys continued popularity, darts is still more of a niche product. In the TIOBE index , the language is ranked 24th (in comparison: Go in 16th place) and in the PYPL index the language does not occur in the first 23 places.

Nevertheless, Dart may experience a minor renaissance, as the Flutter framework (just released in version 1.9) is becoming increasingly popular in app development. Dart could benefit from that soon. Until then, the Google probably worked mainly on making the SDK of the language as possible perform better.

Dart 2.5: This is new

Along with some updates, Dart 2.5 introduces a full technical preview of two completely new features. To help developers write flutter and dart apps, Dart 2.5 gets a preview of a new code completion system. The new code system uses components from the field of machine learning. Based on TensorFlow Lite and the many open source dart repositories on GitHub , this new code completion system attempts to show the most relevant suggestions first, rather than simply listing all options alphabetically.

Dart 2.5: This is new

The second function, called Foreign Function Interface , will be particularly interesting for developers who are familiar with low-level languages. With this preview, code written in C can be called by Dart and Flutter. In this way, an app can access powerful system APIs and libraries in C for desktop platforms and the Android NDK.

Additional Information

In addition to the new features, some improvements have been added. With the new update, Dart now offers further options for defining constant expressions. This includes the ability to use casts and collection controls and collection features introduced in Dart 2.3 . While Dart has long supported the creation of constant variables and values, constant expressions have been rather limited so far.

All further changes and information in detail can be found in the release notes .

Recent Articles

Frontend Tools 2019 survey: jQuery Threatened

Frontend Tools 2019 survey showed that React is voted the most important as well as the most widely used JavaScript tool. For the first...

PHP 8.0: Vote on Union Types ended

PHP 8.0 is scheduled for 2020. Recently, the PHP development team in PHP Internals voted on Union Types as a new feature for PHP....

Angular 9 Next versions: Bazel Schematics switched to Ivy

With Angular 9 next versions, the upcoming major version of the JavaScript framework has again received a number of feature updates, notably the innovations...

HP enters strategic partnership with ExpressVPN to increase security offerings on consumer laptops

In light of the recent challenges faced by the cryptocurrency space and the technological sphere at large, security has become a serious issue among...

Node.js 12.12: New flag for easier electron integration

Node.js 12.12 is here to bring a new flag to help work with embedders like Electron. In addition, source maps are now available for...

Related Stories

Leave A Reply

Please enter your comment!
Please enter your name here