Skip to main content

Posts

Showing posts from January, 2012

New site for Dart news and articles

For the latest Dart news, visit our new blog at  https://medium.com/dartlang .

Search!

Posted by Kathy Walrath We just added a search box to the Dart website . Whenever you perform a search from a dartlang.org page, you'll get results from *.dartlang.org, the Dart discussion group , and the Dart open-source project . Please let us know whether your searches get the results you want, so that we can improve the custom search engine and the docs. Thanks!

Balloons and Dart at Seattle GTUG

Posted by Seth Ladd Last night, I presented an Introduction to Dart to a very fun and engaged crowd at the Seattle GTUG . Many thanks to Clive Boulton and Brandon Donnelson for organizing the event, and to Chris Wilson for hosting. The highlight of the evening was the creative and interactive Dart board, conceived and built by Brandon. The balloons are almost ready, covering the Dart board: After all the balloons are popped (with darts, of course!) we see key Dart phrases and quiz questions: Brandon captured lots of pics from the event. Thanks to everyone who came to the talk, there was a great energy, and insightful comments and questions. Slides for this talk, and others, are available at dartlang.org/slides/ .

Translating JavaScript to Dart

Cross-posted with the  Chromium Blog  and Google Code Blog It took approximately 2000 years for the  original Rosetta Stone  to be discovered, which helped translate the Egyptian Hieroglyphs. We couldn’t wait that long to bridge the  Dart  and JavaScript worlds, so today we are releasing the  JavaScript to Dart Synonym  app. Like most web developers, we are familiar, comfortable, and productive with JavaScript. We were curious about Dart, and thanks to a recent Dart hackathon, we had the chance to play with the language and libraries. The problem was, as JavaScript developers, we didn’t know how to map common JavaScript idioms to Dart. Hence the idea for this synonym app was born. We started with the basics that every JavaScript and jQuery developer knows: variables, arrays, functions, classes, DOM manipulation, and many more. Then, with the help of the Dart team, we recorded the corresponding Dart versions of each idiom. To practice what we learned, we wrote this app with Dart. We

Proposed changes for equality

Posted by Gilad Bracha UPDATE : This post is no longer accurate. Please refer to the Dart language spec for the most up-to-date rules regarding equality. This is a draft specificat ion for the revised handling of equality. The essence of the change is as follows: The == operator is no longer user definable. It has fixed behavior, that is however customizable via the operator/method equals(). Specifically, given x == y: If x === y then return true. Otherwise if either x or y is null, return false. Otherwise return the result of x.equals(y) The question arises, do we need the special story with operators for negate, call and equals? Can we just say that the operators are hardwired to invoke the methods involved? Note on conventions:   Discussion of the motivation for language design decisions appears in blue italics.   Commentary is green, serving to illustrate or clarify the specification, but are redundant with the normative text.  Open questions are red. Open question

Dart language spec v0.07 now available

Posted by Kathy Walrath Version 0.07 of the Dart language spec is now available. Changes include: 5: Top level variable initializers must be constant.  7: Added abstract modifier to grammar.  7, 7.6, 7.7, 10.13.3,10.28: Superclass static members are not in scope in subclasses, and do not conflict with subclass members.  7.1.2: []= must return void. Operator call added to support function emulation. Removed operator >>>. Made explicit restriction on methods named call or negate.  10.1: Added !e as constant expression. Clarified what happens if evaluation of a constant fails.  10.7: Map keys need not be constants. However, they are always string literals.  10.9: State restrictions on use of this.  10.10, 10.10.1: Rules for bounds checking of constructor arguments when calling default constructors for interfaces refined.  10.14.1: Revised semantics to account for function emulation.  10.14.2: Revised semantics to account for function emulation.  10.14.3: Factory

New Dart Editor build (3331)

Posted by Kathy Walrath A new Dart Editor build (3331) is available for  download . Changes include: Fixed compiler causing incomplete JS code gen New Application wizard optionally generates scripts Added support for  #import('dart:builtin') DartC and parser improvements Also see the  change log . For instructions on downloading, installing, and using Dart Editor, see the  Dart Editor tutorial .

New Dart Editor build (3101)

Posted by Seth Ladd A new Dart Editor build (3101) is available for  download . Changes include: Initial VM launch support... toolbar button and .options file Generate JS only for browser applications Font scaling for code editor, libraries view, problems view Search box improvements and cleanup Fixed memory leak when closing libraries Fixed loss of errors/warning during incremental compilation Options to use Frog for compilation and deploy DartC, parser, and code completion fixes and improvements Lots of bug fixes as a result of last month’s hackathon Also see the  change log . For instructions on downloading, installing, and using Dart Editor, see the  Dart Editor tutorial .

Getting Started with Dart screencast

Posted by David Chandler Is taking a look at Dart one of your New Year's resolutions? It's now as easy as watching  Getting Started with Dart , a 10-minute screencast that introduces the latest Dart tooling, including the Dart Editor, Dart VM, JavaScript compilers, frog server, and Dartium—a Chromium version that runs Dart code natively.