I believe that haXe is the right platform for developing api’s and code libraries.

Why haXe?

If you use just the haXe core libraries.

HaXe

Can compile to Javascript by generating a single.js file
Can compile to Flash 6-8 by generating a single .swf file
Can compile to Flash 9-10 / Tamarin by generating a single .swf file

generate optimized integer arithmetic
autocast when reading […]