Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Comparison of Javascript with Google Dart [closed]

Will I get replacement of node.js by google Dart, what do you say.

I am pretty much familiar with javascript and jquery
Also I am started using node.js in recent past

What are the advantages and disadvantages of learning Dart
Where could I get code comparison between two.

like image 786
Wazy Avatar asked Oct 11 '11 09:10

Wazy


People also ask

Which is better JavaScript or Dart?

Dart is approximately two times faster than JavaScript. Dart is type-safe and compiled with both AOT and JIT compilers. Dart is very scalable across projects. Dart is very similar to Javascript and easy to learn if you already know Javascript.

Is Dart going to replace JavaScript?

Dart will not replace JavaScript in the future. While Dart is a great language with many features JavaScript lacks, it is not as widely adopted as JavaScript. Additionally, most web development frameworks and libraries are written in JS, so it is difficult for Dart to replace JavaScript entirely.

Why is Dart faster than JavaScript?

Dart is much faster than JavaScript, as it can be compiled both AOT and JIT which helps building apps in several ways as using JIT compilation can speed up development and AOT compilation can be used during the release process for better optimization. This technique has been used in Flutter.

Is Dart different JavaScript?

Dart is used to develop only the front-end of cross-platform mobile applications whereas JavaScript offers support server-side as well as backend development. Dart is much more type-safe than JavaScript since it supports strong as well as loose prototyping.


2 Answers

If you read the nodejs google groups thread about dart you will see the community reaction is

We have better things to do then waste time looking at dart. Maybe google should put those resources back onto V8 rather then writing yet another mediocre language that doesn't solve any problems

Now, once the dart VM is supported by all major browsers, then we will look at dart seriously.

like image 98
Raynos Avatar answered Nov 15 '22 17:11

Raynos


You can read about Dart at http://www.dartlang.org/docs/getting-started/ Some of the things I found good about Dart are :

  1. Limitation is that any performance-wise advantages will be limited to Chrome only.(as,currently only V8 supports) .And for using on other browsers you might need to run some script to convert.
  2. good point is that it has native support.
  3. A very critical issue with JS is handling concurrency. Dart has "isolates": these are used for handling concurrency: It might look like a game changer yet to see if it fully working yet.

I would say its too early to say which is better.

like image 38
anirudh bhatnagar Avatar answered Nov 15 '22 19:11

anirudh bhatnagar