Topic Is Presentation: Group Member
Topic Is Presentation: Group Member
Dart
Group Member:
Basil tariq Mutahir nasir Abdullah Butt
Bcsm-f16-425 Bcsm-f16-395 Bcsm-f16-276
Designed by: Lars Bak and Kasper Lund .Dart was released on November 14, 2013
In August 2018, Dart 2.0 was released, with language changes including a sound type system
There are four ways to run Dart code:
Compiled as JavaScript
To run in mainstream web browsers, Dart relies on a source-to-source compiler to JavaScript. According to the project site, Dart was
"designed to be easy to write development tools for, well-suited to modern app development, and capable of high-performance
implementations." When running Dart code in a web browser the code is precompiled into JavaScript using the dart2js compiler.
Stand-alone
The Dart software development kit (SDK) ships with a stand-alone Dart VM, allowing Dart code to run in a command-line interface
environment. As the language tools included in the Dart SDK are written mostly in Dart, the stand-alone Dart VM is a critical part of the SDK.
Ahead-of-time compiled
Dart code can be AOT-compiled into machine code (native instruction sets). Apps built with Flutter, a mobile app SDK built with Dart, are
deployed to app stores as AOT-compiled Dart code.
Native
Dart 2.6 with dart2native compiler to compile to self-contained, native executables code. Before Dart 2.6, this feature only exposed this
capability on iOS and Android mobile devices via Flutter.
Example:
A function to calculate the nth Fibonacci number: