An unofficial blog that watches Google's attempts to move your operating system online since 2005. Not affiliated with Google.

Send your tips to gostips@gmail.com.

October 10, 2011

Dart, Google's Programming Language for the Web

Google's alternative to JavaScript is not called Dash, the name has been changed to Dart. Designed as an object-oriented programming language that's both flexible and structured, Dart should be familiar to Java and C++ programmers, while inheriting some advantages of scripting languages like JavaScript.


Dart is "a class-based optionally typed programming language for building web applications" and Google says that it's better suited for large-scale projects. "Developed with the goals of simplicity, efficiency, and scalability, the Dart language combines powerful new language features with familiar language constructs into a clear, readable syntax."

Dart is flexible because it's both static and dynamic, it's both for clients and servers and it's useful for both small scripts and large projects. Dart apps are easier to debug, to maintain and to develop collaboratively. The language is optimized for performance and doesn't allow programmers to use features like defining constants that have to be computed at runtime.

For now, no browser supports Dart, but it's likely that Chrome will address this problem in the near future. The code can be executed "either on a native virtual machine or on top of a JavaScript engine by using a compiler that translates Dart code to JavaScript." Google already provides a simple online IDE called Dartboard that lets you edit a small program using your browser, but Dartboard will evolve into a full-fledged online IDE.

Last year, a Google employee admitted that it will be difficult to convince developers and browser vendors to adopt the new language, but the fact that it's easy to convert Dart code to JavaScript is an important advantage. Google will promote it "as the language for serious web development on the web platform" and will "actively push for its standardization and adoption across the board". After all, "the goal of the Dart effort is ultimately to replace JavaScript as the lingua franca of web development on the open web platform." It's hard to say whether it will succeed, but it's worth trying to fix JavaScript's flaws by starting from the scratch. Google will have standardize the language, build development tools and develop powerful apps that use Dart to make a better case.

{ Thanks, Venkat. }

19 comments:

  1. cool... looking forward to learning and using it soon...

    ReplyDelete
  2. I love the idea of optional typing. Years ago I pushed the idea of adding optional typing to Python but this was deemed to be incompatible with the Python way. Perhaps that is true, but I'm glad to see that there is now a language that provides this.

    ReplyDelete
  3. I think it's waste of time. Time will tell.

    ReplyDelete
  4. Nice...But if its positioning as uber standarted one-why among browsers, where you can try it, Opera is not even mentioned?!(tho everything works in it)

    ReplyDelete
  5. It's called DART, and Google Europe is located around DART (Dublin Area Rapid Transport System). Waaay too easy to get confused!!!

    ReplyDelete
    Replies
    1. Really? do you often confuse your Transit system with your programming language? Perhaps you have accidentally thrown a train at your Dart board too? :)

      Delete
  6. Does Google wants to challenge Node.js ?

    ReplyDelete
  7. Thanks for google make new language Dart. I think it will be one for web developer.

    ReplyDelete
  8. Some times google make awesome things. But it not be popular exam: Google+ social network. But I think "Dart" Language ,it will be popular.

    ReplyDelete
  9. do we really need another language? hopefully it offers enough innovation to be justified.

    ReplyDelete
  10. It is complicated to implement things which are supported by Google only. If we start coding using Dart then only the Google bots understand the intent. We cannot ignore the other browsers thus would have to use the technology which would work out for all.

    ReplyDelete
  11. Site multi-language about Dart:
    http://www.dartexperience.com

    ReplyDelete
  12. Dart is great, but Google can do even better: http://tatiyants.com/?p=1229

    ReplyDelete
  13. www.DartExperience.com An independent view on Google Dart

    ReplyDelete
  14. Whether this language can gain any traction is certainly a valid question. But I for one have never understood why anybody wants any scripted/interpreted language. Sure not having to go through a compile step is nice - but incremental compiles really mitigate that advantage.

    I also don't get the appeal of untyped languages. Is it laziness? How hard is it to specify the type on a variable? after doing so you get all kinds benefits, Speed, debugging checks, tool support etc.

    IMO the web desperately needs a language like Dart. I dont know whether it will succeed and tool support may be years away - but I think they are on the right track.

    And those of you that disagree... ask yourself if you do so only because the investment you have made in javascript is threatened. To those who think another language is not needed - think again - there is no statically typed web language now (unless you want to write java applets).

    ReplyDelete
    Replies
    1. "I also don't get the appeal of untyped languages." - The impedance mismatch. It is really easier to use an untyped language when you have to query for a data that don't have a predefined structure. The same thing with mongodb.

      Delete
  15. tutorial de dart en español( DART tutorial in Spanish)
    http://youtu.be/NNVbEBN0Q0U

    ReplyDelete

Note: Only a member of this blog may post a comment.