Actionscript 4 specifications preview

actionscript 4

The Task Group behind ECMAScript is working on the 4th release of the language specifications.

Most of you will now that Actionscript is a ECMAScript based just like javascript, so the new specifications will influence AS4 too.

I found two very interesting links about this topic on the relative post @ Beedigital.net.

The first link is:
Proposed ECMAScript 4th Edition – Language Overview

It’s a full 40 pages PDF document about language specifications, so it’s quite heavy but just in the very first page there’s a interesting information about the actual status of the language specifications:

This document reflects the understanding of the language as of October 2007. TG1 is no longer accepting proposals and has started writing the language specification. The ES4 reference implementation is undergoing stabilization and is already passing large parts of its test suite, and this document describes the final language in most respects. That said, TG1 maintains a bug tracking system at http://bugs.ecmascript.org/, and ES4 is subject to further refinement as known and new bugs in the design are resolved.

latter on page 4:

The current Task Group 1 of Ecma Technical Committee 39 (Ecma TC39-TG1, hereinafter TG1) has met
since the fall of 2005, basing their work on ES3, the interim ES4 report, and experiences with Adobe’s and
thMicrosoft’s implementations. TG1 expects to complete the 4 Edition Specification in the fall of 2008.

So everything let us believe AS4 is quite near.

The second link posted by Beedigital.net is some lecture notes from Colin Moock, he will be explaining at the FITC 200 in February an April.

These lecture notes are mainly excerpts from the overview document, showing a lot of interesting code examples and is much more reader friendly.

I found a lot of the new stuff very interesting and my personal tops are:

  1. array type
  2. operator overloading
  3. generators
  4. Vector class
  5. destructuring assignment
  6. triple-quoted strings
  7. lexical block scoping

and other minors features too (mainly mutuated from python) like:

  • string indexing
  • slicing syntax

(the Mock’s document hasn’t anchors so i cannot link the above list, however just copy/find in page).

The most waited by many people is typed arrays, because let’s say it… 9 out of 10 times you use arrays all the elements are of the same type.
With typed arrays the virtual machine doesn’t need to check every element and everything should gain a lot of speed and make as4 a lot faster than as3 in particles, swarms, lists and bitmapData’s operations.

More on ECMAScript 4 at ecmascript.org with interesting tutorial on Evolutionary programming in ES4.

Let me know your personal favorite new features in a comment if you like.

5 Comments

5 Comments

  1. JuanMa  •  Jul 7, 2008 @1:03 pm

    3D Anyone?!

  2. sandrar  •  Sep 10, 2009 @11:26 pm

    Hi! I was surfing and found your blog post… nice! I love your blog. :) Cheers! Sandra. R.

  3. Thi  •  Jan 1, 2010 @11:25 pm

    yeah, me too. loved your blog

    fav! :)

  4. Benjamin  •  Jun 27, 2010 @3:58 am

    Sweet stuff.

    I hope syntax don’t get changed much, AS2 to AS3 was big jump…

  5. REgular programator tabajara  •  Jun 28, 2010 @2:01 pm

    arg,

    Now that I was good on AS3. Will have to spend lots of hours learning as4, instead of making money…

Leave a Reply

Allowed tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>