About Dart:

- I really (!) hope that Dart will succeed.
- Ideally, Dart would even become the new JavaScript alternative in all 
browsers (however, AFAIK a few browser vendors have signaled, that this 
ain't gonna happen). If not, then it could maybe still be successful with 
dart2js.

About GWT:

- GWT allows to code in *Java* for the client side, which is perfect, if 
you already use *Java* on the server side.
- There is no significant amount of existing Dart code for the server side, 
so Dart does not have that advantage.

Conclusion:

"GWT + Dart" would be such an awesome combination: GWT compiling Java to 
Dart. And then Dart to JS only if necessary.

- This would require changing GWT internals, 

- but it wouldn't require changing the GWT API and programming techniques 
much (except for low level JSNI and JSO) - remember, that a lot of the GWT 
API is about manipulating the DOM (which stays the same no matter if the 
underlying language is JS or Dart), handling browser events, ...

- As long as you want to work with Java on the server side, it's a good 
idea to use GWT - otherwise you'd have to duplicate common parts of your 
code for the server (Java) and client side (Dart) - like in the medieval 
days before GWT. (I hope we'll never have to fall back to that situation.)

Alternative:

The alternative would be that Dart also succeeds on the server side, 
completely replacing Java. This is rather unlikely, but if things like O/R 
mapping, fully-fledged IDEs, and anything of value that Java provides is 
available in Dart someday, plus if it provides any real advantage over 
Java, then I'm the first one to switch completely to Dart. Then we wouldn't 
need GWT anymore, and Dart would probably adopt all useful GWT features. 
(And it should be straightforward to port existing GWT code to Dart.)


On Wednesday, August 22, 2012 5:57:42 PM UTC+2, deepak chauhan wrote:
>
> One question is disturbing me from a long time. Why Google invented DART, 
> when GWT is already there?


-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/G02R2U9lzkcJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to