haXe

AS3 – Fast memory access without Alchemy

Posted in AS3, haXe on May 3rd, 2010 by Philippe – 11 Comments

With the Flash Player 10, Adobe added a new set of instructions allowing to compile C/C++ in a way the AVM2 could execute. By wrapping a little bit of glue code in C, Alchemy allows to reuse some of the numerous open source C libraries available.

And when you appreciate the speed of Alchemy-compiled C code, you can wonder how it can possibly be so much faster than AS3. Unfair!

What makes Alchemy code so fast? The main secret is a faster memory management, because obviously C/C++ is all about pointers & malloc’ing. ByteArray in AS3 is kind of slow so Adobe had to hack the AVM2 to remove this bottleneck or Alchemy would have been pointless.

And the good news for us AS3 geeks is that it is possible to use this fast memory in AS3…

read more »

haXe – what’s in it for you

Posted in haXe on August 2nd, 2009 by Philippe – 6 Comments

The haXe community has been buzzing about it for some weeks, and a few days ago you could read in haXe 2.0.4 release notes that the experimental C++ compilation target was now included.

You probably know that haXe can be used as an alternative to AS2 and AS3 for Flash development, but you would definitely be missing something if you limit this powerful language to “just Flash”…

So how did haXe get to be able to compile as C++ and why is it a big thing?

read more »