Skip to main content

Posts

Showing posts from 2011

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 fileGenerate JS only for browser applicationsFont scaling for code editor, libraries view, problems viewSearch box improvements and cleanupFixed memory leak when closing librariesDartC, parser, and code completion improvementsImproved syntax coloringLots of bug fixes as a result of internal testingAlso 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" directoryIndexer improvements including integration into builderEditor tab tooltip shows path of the files being editedProblems view sorting fixesNew File wizard to open created file in the default editor for that file type, instead of the plain text editorDartC improvementsAlso see the change log. For instructions on downloading, installing, and using Dart Editor, see the Dart Editor tutorial.

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 --optimizeFor the Clock sample, 6.7M JS file during development --> 127k JS using new "Tools > Generate Optimized Javascript..." command, less than 2% of original sizeOmnibox search now includes cross-file text searchProperly show getters and setters in Outline viewSort private members to bottom of outline viewUpdated New Application template to use dart:html (rather than dart:dom)Enable Run button only when HTML file is presentOpen Declaration from #source(...) now properly opens source in subfolderOpen Declaration cannot find window or documentCache artifacts across sessions to improve first compile after session startCode Completion enhancements and fixesAdded Mac OSX 32 bit buildCompiler improvementsAlso see the change log. For instructions on downloading, installing, and using Dart Editor, see the Dart Edit…

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 onlyFix Open Declaration when destination is in subfolderRemove non-standard DOM reference from new application templateFix slow memory leakFix various Save File bugsWe'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 qi 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 superclasses/interfaces).

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 26and 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 grammar10.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.