DART :: firstElementChild y lastElementChild

En las nuevas versiones de DART algunos de los métodos nativos de DOM se han ido marcando como obsoletos dejándolos disponibles por si los necesitamos de manera absolutamente necesaria y no existe por el momento otra opción.

Algunos ejemplos de estos métodos son lastElementChild y firstElementChild.

Dentro de la interfaz Element podemos verlos definidos de este modo.

Continue reading “DART :: firstElementChild y lastElementChild”

BREAKING CHANGE: Timer interface moved to dart:isolate

New breaking change for DART.

Post.

With revision

http://code.google.com/p/dart/source/detail?r=8987

the Timer interface moved to the “dart:isolate” library. This will
allow different environments (e.g. Dartium) to provide their own Timer
implementations making it easier to write portable code which relies
on an event loop and delayed execution.

Currently the only environment which has a working Timer
implementation is the standalone Dart VM binary. If you have been
using the Timer interface before, you will now need to import the
“dart:isolate” library instead of the “dart:io” library.

Continue reading “BREAKING CHANGE: Timer interface moved to dart:isolate”

CAMBIO IMPORTANTE: Clase DATE

A continuación paso a comentar algunos cambios de importancia en la clase Date de Google Dart.

Cualquiera de nosotros hemos utilizado o estamos utilizando esta clase en nuestras aplicaciones, asique mucho ojo con estos cambios porque con total seguridad afectarán a tú código.

Puedes ver la nota de la publicación aquí.
http://dartgoogle.wordpress.com/2012/06/20/importante-change-date-members/

– Date.isUtc ahora será getter.

– Renombrado de los siguientes propiedades.
* Date.hours -> Date.hour
* Date.minutes -> Date.minute
* Date.seconds -> Date.second
* Date.milliseconds -> Date.millisecond
* Date.fromEpoch -> Date.fromMillisecondsSinceEpoch
* Date.value -> Date.millisecondsSinceEpoch

– Date.MON == 1 (hasta Date.SUN == 7) (de acuerdo a ISO8601).

Artículo escrito por Moisés Belchín

New Dart Editor build 8641

A new Dart Editor build is available

http://gsdview.appspot.com/dart-editor-archive-integration/latest/

Highlights for build 8641:

Fixed 29+ issues in the static analyzer!
Added new syntax coloring to highlight the use of var variables, and to distinguish member and static fields from local variables (aka semantic highlighting)
Added new syntax coloring to show other uses of the currently selected variable (aka mark occurrences)
Added support for the “as” operator
Added a warning if the + operator is used with strings
When debugging a command-line app, the debugger will break on uncaught exceptions (TypeError and AssertionError). More to follow!

View the full change log:
http://gsdview.appspot.com/dart-editor-archive-integration/latest/changelog.html

Or view the tutorial:
http://www.dartlang.org/editor/

Post wrote by Moisés Belchín

Resumen de trabajo del Equipo de Google Dart

Me gustaría compartir algo interesante que se ha publicado en el grupo de debate de DART y que nos permite conocer la marcha de trabajo y el futuro del lenguaje.

En lo referente al compilador de Dart a JavaScript ya se están preparando para dejar como obsoleto “frog” y eliminarlo del SDK. Están trabajando a fondo en las pruebas de conversión del nuevo compilador “dart2js”, corrigiendo gran cantidad de problemas de compatibilidad y reduciendo el tamaño de los ficheros generados en 3-4%.

Continue reading “Resumen de trabajo del Equipo de Google Dart”

Dart Team’s digest

Hi, I attached new Dart Team’s digest.

Very very interesting and important if you’re using dart:dom.

It’s been a while since the last update, but here’s a summary of some of the recent events in Dart-land.

In the Dart to JavaScript Compiler we’re getting ready to deprecate frog and remove it from the SDK. We increased test coverage for dart2js on build bots, fixed a bunch of browser compatibility issues and landed liveness analysis resulting in 3-4% code size reduction and less temporary variables. Finally, we’re now generating smaller code for simple tear-off closures.

In Dartium, we’re phasing out dart:dom and are now supporting wrapperless dart:html.

For the Dart Editor we now have new and improved Editor documentation! We also improved code completion in the absence of explicit type information. We have improved type inference in if, while, for and for-in statements and all launches now run in checked mode by default. All launches (JavaScript and Dartium) now serve from a server and not from a file: url. (This plays better with loading resources using XHR and the browser security model). Analysis results now cached between sessions which leads to faster start-up. Finally, we fixed a number of issues including, an issue with lots of warnings related to final fields and a performance issue with the outline view.

For Dart Server side libraries we published instructions on building native C/C++ extensions for the standalone Dart VM, landed feature enhancements and bug fixing in the HTTP, File and Directory interfaces. Finally, we’ve introduced hardening of the APIs to deal gracefully with unexpected arguments.

Anders Sandholm

Post wrote by Moisés Belchín

Important change on compilation DART to JavaScript process

Recently DART Team published a note on the DART discuss where they tell us has been an important and significant change on the DART to Javascript compilation process.

Currently, the way to run our applications written in DART is compile it to JavaScript so that browsers can run our code.

All of this will change when the virtual machine that runs our DART code natively is deployed and supported by most popular browsers, in particular Google Chrome will support it natively.

Continue reading “Important change on compilation DART to JavaScript process”

String + eliminado de dart2js y proximamente de VM

Hoy he leído un post en la lista oficial de DART donde mencionaban que el nuevo compilador de Dart a Javascript [dart2js] ha eliminado el soporte del operador “+” en la concatenación de cadenas.

También comentan que en breve la máquina virtual va a dejar de mantener el operador + en la concatenación de strings. Como indica Seth Ladd es buen momento para revisar nuestros códigos.

Continue reading “String + eliminado de dart2js y proximamente de VM”

Create a website or blog at WordPress.com

Up ↑