Dart 2.12 Released With FFI
Written by Kay Ewbank   
Thursday, 11 March 2021

Dart has been updated to provide smaller code size, faster type checks, better usability for type errors, and new language features to improve productivity when building user experiences.

Dart is a client-optimized language designed to provide a way to create fast apps on any platform. It began life as an alternative to JavaScript that would be supported directly by browsers, but when this didn't work out it was redeveloped as a better compiler. Recently, Dart has achieved market share as the foundation of the Flutter SDK: it provides the language and runtimes that power Flutter apps, and also supports many core developer tasks like formatting, analyzing, and testing code. Flutter 2.0 has recently been released as I reported earlier this week.

dartlogo

Dart 2.12's improvements start with the inclusion of stable versions of sound null safety. Null safety intended to help developers avoid null errors, a class of bugs that are often hard to spot. The development team describes null safety as the largest addition to the Dart language since the introduction of the sound type system in Dart 2.0. Null safety improves the strength of the type system, enabling you to catch null errors during development, preventing crashes in production.

FFI is an interoperability mechanism that lets you invoke existing code written in the C programming language, such as calling Windows Win32 APIs. both for better portability and for integrating with highly tuned C code for performance critical tasks. It was included in the previous release as a beta feature, but is now considered stable and ready for production use. The developers have added some new features, including nested structs and passing structs by value. Structs can be passed both by reference and by value in C code, but the beta version of FFI only supported passing by reference. This has now been expanded.

Dart 2.12 is available now.

dartlogo

More Information

Dart website

Related Articles

Flutter 2.0 Increases Web Support

Dart 2.6 Adds Native Linux Support

Dart 2.1 Is Smaller And Faster

Dart 2 Released With New Mobile Focus

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

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


Gradient Descent Via E.Coli
28/03/2021

If you found calculus hard be prepared to be shamed, as is appropriate, by a small bacterium. Escherichia coli, aka E.coli, has the smarts to be able to compute a derivative and use it to optimize its [ ... ]



DARPA Launches Plans For Fast FHE
16/03/2021

The Defense Advanced Research Projects Agency (DARPA) has announced the teams that will take part in its Data Protection in Virtual Environments (DPRIVE) program. The program aims to develop an accele [ ... ]


More News

square

 



 

Comments




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

Last Updated ( Thursday, 11 March 2021 )