Friday, November 21, 2008
Alchemy: C and C++ running in Flash
Alchemy is a research project that allows users to compile C and C++ code that is targeted to run on the open source ActionScript Virtual Machine (AVM2). With Alchemy, Web application developers can now compile their C and C++ code on Adobe Flash Player 10 or Adobe AIR 1.5.
Developers should be careful to avoid using C and C++ projects that rely on OS-specific libraries. Alchemy is ideal for computation-intensive use cases (which can be slower on Flash), such as audio/video transcoding, data manipulation, XML parsing, cryptographic functions, or physics simulation.
Performance:
Runtime performance can be considerably faster than ActionScript 3.0 and anywhere from 2-10x slower than native C/C++ code. Alchemy is not intended for general development of SWF applications using C/C++.
For more information, go to labs.adobe.com/technologies/alchemy
http://labs.adobe.com/wiki/index.php/Alchemy:Documentation:Getting_Started
and some samples are here (I always prefer to start with the code of others):
http://labs.adobe.com/wiki/index.php/Alchemy:Libraries
Links to this post:
<< Home






