Thursday, November 27, 2008

Alchemy and LLVM

I've just tried Adobe Alchemy, a preview tool that uses LLVM to compile C++ to actionscript. It still has some touching up to do ( see my posts here and here and my experience with alchemy ), but it is very promising. There is even someone working on porting Doom to flash ( here ). This finally opens the door to truly portable binary files. One can now distribute C/C++ applications to anyone as swf files, without requiring the user to compile them. Now we can really have a web-based OS ;) ( kidding ).

Truth is, I've always disapproved of flash, because it seemed to encourage a less semantic web, with many sites just filled with bloated flash. A nice clean web page, with a fallback for no javascript is the way it should be :). But now I just look at flash as another virtual machine, and it can be targeted by LLVM. And so I approve. All we need now is an LLVM JIT implementation of the flash player ;). While your at it, throw in an Actionscript front-end to LLVM.

I hope LLVM grows much more, and solves all of the worlds problems. What will LLVM look like in 5 years? Front-ends, back-ends, optimizations, JIT, etc., I don't see the limit.

No comments: