Search This Blog

Dart Introduction


The Dart is an open-source and the optionally-typed programming language that's developed by Google (designed by Lars Bak and Kasper Lund). It is approved as a standard by Ecma. It is used to build server, web, desktop, mobile applications

Dart language introduction tutorial


The Dart SDK compiler contain its own Dart Virtual Machine that allows Dart programs to run on all systems. It is used in web applications, there is a dar2js compiler which transpile Dart code into optimized JavaScript code snippet so it runs on modern web browsers.
 

It is widely used at Google for:
  • Cross-platform application development using Flutter.
  • Web development (using Dart2JS).
  • Server-side (using various libraries and frameworks).

The syntax of Dart is similar to Java and C++. That why, the object-oriented language is approachable for developers with knowledge in other programming languages.

Features and Tools
The Dart provides lots of features that are mainly focused on the compilation, execution, safety, memory management, and concurrency. As you can see, below is a list of important features:–
  • Object-Oriented Programming:- Dart is an oop language with support for inheritance, interfaces, optional typing features, mixins, abstract classes, reified generics, and static typing. 
  • Open Source:- Dart is an open-source programming language that comes with a set of tools for compiling and executing Dart Code.
  • Cross-Platform:- We can use dart for cross-platform application development because dart compiler comes with its own Virtual Machine which allows Dart programs to run on all systems. 
  • Browser Support:- The Dart code snippet can be trans-compiled into JavaScript using source-to-source compilation. There is a dar2js compiler which transpile Dart code into optimized JavaScript code that runs on all modern web browsers. 
  • Type-Safe:- The Dart is type-safe programming language that uses a combination of static type checking and runtime checks to ensure that a variable’s value always matches the variable’s static type.
  • Ahead-Of-Time (AOT):- We can create an application in Ahead-Of-Time (AOT) compilation mode. In this mode, the Dart code can be directly converted into the native machine code snippet. Apps built with Flutter are deployed to app stores as AOT Compiled Dart code. 
  • Reuse Of Code:- As we know dart supports cross-platform application development. So, this allows dart code reuse between mobile and web apps.
  • Asynchronous Programming:- Dart supports asynchronous programming which let your code snippet run without getting blocked because dart is a single-threaded programming language that helps the developer ensure that critical functions to be executed till completion. 
  • Concurrency:- As we said dart is an asynchronous programming language. So, dart uses isolates in order to achieve concurrency. Isolates are independent workers that do not share memory, but instead communicate by passing serialize messages over channels. This is done using a snapshot, which is generated from a given object, and then this is transferred to another isolate for deserializing.


0 comments:

Post a Comment

WE'RE SOCIAL

Promotional

  • Cover art Blend

    Blend app is very advanced app there are lots of features like shayari, status, chat, feed....

Categories