Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
DART Essentials

You're reading from   DART Essentials Design and build full-featured web and CLI apps using the powerful Dart language and its libraries and tools

Arrow left icon
Product type Paperback
Published in May 2015
Publisher Packt
ISBN-13 9781783989607
Length 232 pages
Edition 1st Edition
Languages
Arrow right icon
Toc

Table of Contents (11) Chapters Close

Preface 1. Getting Started with Dart FREE CHAPTER 2. Practical Dart 3. The Power of HTML5 with Dart 4. Developing a Mobile App with Dart 5. Web Components and polymer.dart 6. AngularDart 7. Server-side Applications with Dart 8. Testing and Profiling the Dart Code 9. Writing Native Extensions for the Standalone Dart VM Index

Why choose Dart?

There are five main environments where you can run Dart:

  • Dart compiled to JavaScript in practically any modern browser. The Dart SDK is shipped with Dart to a JavaScript compiler called dart2js, which takes your Dart code and compiles it into vanilla JavaScript. Right now, this is the most typical use case in a production environment.
  • The Dartium web browser comes out of the box with the Dart SDK. It's a modified version of Chromium (basically, an open sourced Chrome) that contains Dart VM along with JavaScript V8. We'll use Dartium for easy debugging and to run the Dart code without compiling it to JavaScript.
  • The standalone Dart VM allows you to run Dart code as a CLI script just like any other scripting language. The dart2js compiler itself is written in Dart.
  • Google Cloud Platform, since the introduction of Google's Managed VMs in November 2014, it also supports a hosting environment for server-side code written in Dart.
  • Fletch is an experimental highly concurrent Dart runtime, which will be able to run on both desktop and mobile platforms. It is scheduled for its official release at the end of 2015.

Dart VM is able to run your Dart code significantly more effectively than JavaScript V8. You can see current benchmarks at www.dartlang.org/performance/. Note that the dart2js compiler is doing pretty good even though the compilation process brings some additional overhead.

After the first public release of Dart, Google claimed they were planning to implement Dart VM right into Chrome as an alternative to JavaScript. However, on March 25, 2015, the Dart team released a blog post stating that after collecting reactions from their internal teams, they've decided to stop efforts to integrate Dart VM with Chrome and rather focus on improving integration with JavaScript.

You have been reading a chapter from
DART Essentials
Published in: May 2015
Publisher: Packt
ISBN-13: 9781783989607
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image