Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there Dart VM available?

Just read news that Google had announced an early preview of the new web programming language Dart. The documentation on the dartlang.org states:

You will be able to run Dart code in several ways:

  • Translate Dart code to JavaScript that can run in any modern browser: Chrome, Safari 5+, and Firefox 4+ (more browser support coming shortly).

  • Execute Dart code directly in a VM on the server side

  • Use Dartboard to write, modify, and execute small Dart programs within any browser window

And I'm curious is there already VM available to run Dart code? Can't find it anyway, maybe it is available through some beta program?

like image 662
Idolon Avatar asked Oct 10 '11 14:10

Idolon


People also ask

Does Dart have a VM?

Native platform: For apps targeting mobile and desktop devices, Dart includes both a Dart VM with just-in-time (JIT) compilation and an ahead-of-time (AOT) compiler for producing machine code.

What kind of language is Dart?

Dart is a programming language designed for client development, such as for the web and mobile apps. It is developed by Google and can also be used to build server and desktop applications. It is an object-oriented, class-based, garbage-collected language with C-style syntax.

Is Dart a open source language?

Dart is open source. Learn how to contribute to the core SDK.

Is Dart compiled or interpreted?

Yes. Dart programs can be compiled to native x64 machine code for running in a Terminal/Command Prompt on desktop operating systems such as Windows, macOS, and Linux.


3 Answers

A pre-built binary of the Dart VM is available in the Dart SDK. Alternatively, you can checkout the source to the whole Dart project, which includes the VM.

like image 152
Chris Bunch Avatar answered Sep 21 '22 13:09

Chris Bunch


Dartium, Chromium with a Dart VM, is now available.

http://www.dartlang.org/dartium/

like image 22
ehfeng Avatar answered Sep 24 '22 13:09

ehfeng


You can download precompiled binary runtime for Windows, Linux and Mac from Dart Force. Another way is to run node.js-style HTTP server using Fling.

like image 36
dkl Avatar answered Sep 23 '22 13:09

dkl