Optimize with haXe

TwitterFacebook
Get flash to fully experience Pearltrees
http://haxe.org/doc/intro

haXe introduction

haXe (pronounced as hex ) is an open source programming language While most other languages are bound to their own platform (Java to the JVM, C# to .Net, ActionScript to the Flash Player), haXe is a multiplatform language . It means that you can use haXe to target the following platforms :

Why use haXe?

Extremely fast compiling The compiler is lightning fast. When compared to the Flash or Flex compilers, you will find a noticeable speed increase. http://haxe.org/doc/why

See "Platform Specific Features/Flash" by seb Dec 8

http://haxe.org/doc/flash/flex This is a rough introduction to getting the Flex 2 framework and haXe to work together. It shows one possible way to develop a Flex applications based on Flash Player 9 that includes code written in haXe. Please note that this tutorial does not apply to the Flex 3 framework.

Using flex with haXe

This new release includes some still experimental SWC output feature. SWC is the library format used by Flash. haXe only supports SWC for Flash9+. The idea is that a lot of people that write AS3 libraries would really love to use haXe because of the language and its performances, but can't because their users are using AS3. So far it was already possible to generate AS3 code from haXe code, but at this time you were losing all haXe compiler performances improvements. http://ncannasse.fr/blog/haxe_swc

Constant expression optimizer

haXe produces bytecode/opcodes which are optimized better than the adobe compilers / mxmlc. This provides a small but significant increases in speed which all mount up. See the links at the foot of the page for more information. I'm going to jump straight in to full on detail here! from the examples in question, here is snippet of code from the non-optimised version: Non-Optimized

Haxe Optimization with Inline (Elliots Questions) – webr3.org

http://webr3.org/blog/haxe/haxe-optimization-with-inline-elliots-questions/