Skip to main content

Posts

Showing posts from 2011

New site for Dart news and articles

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

New API docs site

Posted by Bob Nystrom Happy Holidays, everyone! In a fit of festive holiday cheer, we have decided to give you all an exciting present. No, it's not a pony. No, it's not a Nintendo either. No, it's... look just stop asking and we'll tell you. We revamped the  Dart API docs . They're using the new dartdoc tool which you can also use to generate docs for your Dart code. Actually, after the whole pony and Nintendo thing, that kind of sounds like a let down. Anyway, we've got  brand new docs up , including the new  dart:html library . Enjoy!

New Dart Editor build (2380)

Posted by Seth Ladd A new Dart Editor build (2380) 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 DartC, parser, and code completion improvements Improved syntax coloring Lots of bug fixes as a result of internal testing Also see the  change log . For instructions on downloading, installing, and using Dart Editor, see the  Dart Editor tutorial .

Dart language spec v0.06 now available

Posted by Kathy Walrath Version 0.06 of the  Dart language spec  is now available. Changes include: 7:5.1: Clarified how initializing formals can act as optional parameters of generative constructors. 7.5.2: Treat factories as constructors, so type parameters are implicitly in scope. 8.3: Simplify rules for interface factory clauses. Use the keyword  default  instead of  factory . 9: Mention that typedefs can have type parameters. 10.29: Added checked mode test that type arguments match generic type. 13.2: Added definition of malformed types, and requirement on their handling in checked mode.

New Dart Editor build (1910)

Posted by Kathy Walrath A new Dart Editor build (1910) is available for  download . Changes include: Moved bundled libraries out of plugins into new "libraries" directory Indexer improvements including integration into builder Editor tab tooltip shows path of the files being edited Problems view sorting fixes New File wizard to open created file in the default editor for that file type, instead of the plain text editor DartC improvements Also see the  change log . For instructions on downloading, installing, and using Dart Editor, see the  Dart Editor tutorial .

New Dart presentations and slides available

Posted by Seth Ladd We've added four new  Dart presentations  with slides, and some videos, to the site. Anders Sandholm  presented  at Google Developer Day Berlin Gilad Bracha  presented  at Stanford Philip Rogers  presented  to the Atlanta GTUG Florian Loitsch  presented  at Riviera DEV Enjoy these and other slides at our  Dart presentations collection .

New Dart Editor build 1584

Posted by David Chandler A new Dart Editor build (1584) is available for  download . Changes include: New menu command produces significantly smaller JS using DartC --optimize For the Clock sample, 6.7M JS file during development --> 127k JS using new "Tools > Generate Optimized Javascript..." command, less than 2% of original size Omnibox search now includes cross-file text search Properly show getters and setters in Outline view Sort private members to bottom of outline view Updated New Application template to use dart:html (rather than dart:dom) Enable Run button only when HTML file is present Open Declaration from #source(...) now properly opens source in subfolder Open Declaration cannot find window or document Cache artifacts across sessions to improve first compile after session start Code Completion enhancements and fixes Added Mac OSX 32 bit build Compiler improvements Also see the  change log . For instructions on downloading, installing,

Dart language spec v0.05 now available

Posted by Kathy Walrath Version 0.05 of the  Dart language spec  is now available in PDF and, for the first time, in HTML (through Google Docs). Changes include: Global: Added hyperlinks. 7.1.2: Removed unary plus operator. Clarified that operator formals must be required. 7.5.3: Filled in a lot of missing detail. 8.3: Allowed factory class to be declared via a qualified name. 10.3: Changed production for  Number . 10.10.2: Added requirements that actuals be constant, rules for dealing with inappropriate types of actuals, and examples. Also explicitly prohibit type variables. 10.13.4: Modified final bullet to keep it inline with similar clauses in other sections. Exact wording of these sections also tweaked slightly. 10.25: Specified ! operator. Eliminated section on prefix expressions and moved contents to section on unary expressions. 14.1: Specified unicode form of Dart source.

New Dart Editor build

Posted by Kathy Walrath A new Dart Editor build (1357) is available for  download . Changes include: Visual indication when source files are read only Fix Open Declaration when destination is in subfolder Remove non-standard DOM reference from new application template Fix slow memory leak Fix various Save File bugs We've also started publishing a  list of changes , to help you decide when to download a new version of Dart Editor. For instructions on downloading, installing, and using Dart Editor, see the  Dart Editor tutorial .

Dart language spec v0.04 now available

Posted by Kathy Walrath Version 0.04 of the  Dart language spec  is now available. Changes include: 7.1, 8.1: Added missing requirement that overriding methods have same number of required parameters and all optional parameters as overridden method, in same order. 9: Added prohibition against cyclic type hierarchy for type parameters. 10.10: Clarified requirements on use of parameterized types in instance creation expressions. 10.13.2: Added requirement that  q i  are distinct. 10.14.2: Static method invocation determines the function (which may involve evaluating a getter) before evaluating the arguments, so that static invocation and top-level function invocation agree. 10.30: Added missing test that type being tested against is in scope and is indeed a type. 11.5.1: Changed for loop to introduce fresh variable for each iteration. 13.8: Malformed parameterized types generate warnings, not errors (except when used in reified contexts like instance creation and superclasse

Try out the Dart editor!

Posted by David Chandler Dart Editor "alpha" binaries are now available for Windows, Mac, and Linux. Dart Editor is a lightweight, open-source editor based on Eclipse components. In addition to editing Dart programs, you can use Dart Editor to invoke the Dart-to-JavaScript compiler and launch Dart-based web apps. Get started with the  Dart Editor tutorial , where you can download the continuous or integration builds.a

A coding style guide

Posted by Bob Nystrom I just finished putting the final touches on our first  coding style guide  for Dart. Having a consistent style makes it easier for all of us to read each other's code. I think the Python and Ruby communities do a great job of this in particular, and I hope we can do something similar for Dart.

Dart slides from SenchaCon available

Posted by David Chandler I recently presented  Building Modern Apps with HTML5 and DART  at SenchaCon. The Dart section begins with  slide 26 and illustrates some of the ways in which Dart facilitates the building of large-scale applications while retaining the lightweight feel of a scripting language. Click on the Dart code samples to see highlighting of various language features. We'll be adding more presentations at  www.dartlang.org/slides/  soon.

Dart language spec v0.03 now available

Posted by Seth Ladd Now available for your enjoyment, the  Dart language spec version 0.03  has been published. Some of the changes include: 2: Expanded examples of grammar. 7.5.2: Corrected reference to undefined production typeVariables to typeParameters. 7.9: Removed static warning when imported superinterface of a class contains private members. 8.3: Removed redundant prohibition on default values. 8.4: Removed static warning when imported superinterface of an interface contains private members. 10: Fixed typo in grammar 10.10.1, 10.10.2 : made explicit accessibility requirement for class being constructed. 10.10.2: make clear that referenced constructor must be marked const. 10.14.3: fixed botched sentence where superclass S is introduced. 10.27: qualified definition of v + + so it is clear that v is an identifier.