C/C++ to ActionScript Compiler

As an example of the complexity of this project, the engineers ported the C++ version of Quake 1 engine into Flash Player and it worked perfectly and performed well. It is an extreme case but showcased the potential of this project.

The Quake 4 Intro video is here just to serve as an eye-candy.


While browsing around Flash/Flex blogs, I stumbled on an interesting article from Ted — Extending Adobe Flash Player and Adobe AIR with C and C++ via ActionScript 3.

The interesting thing as told by Ted was that Adobe’s Engineers are working on an internal project which is sort of a cross-compiler for ActionScript allowing any c/c++ code to run in the Flash Player or Adobe AIR. This is a rather nerve racking feat and Ted have already written of many interesting implications for extending Adobe’s platform in terms of legacy code, programming languages, and other open source code libraries.

Part of this implementation includes a pattern in ActionScript that allows for “green threading” that supports executing synchronous code in the asynchronous ActionScript virtual machine. The work done here is quite groundbreaking and has highlighted quite a few performance improvements in the current virtual machine while expanding the capability of the platform.

Adobe engineers and hackers have ported the C++ version of Quake 1 engine into Flash Player and it worked perfectly and performed well. This is extreme engineering and an utmost over-the-top expectation from the Flash Player. What if multiplayer games can be played without even downloading a piece of it, right off the browser, have all the office tools working flawlessly right inside your browser — well, it is rather limitless of what you can do; think of it and it might just be possible.


Don't like it? There are lots of published articles, pick a random one.

oCricket

Brajeshwar posted this article on Thu, Feb 28th, 2008 at 1:19 pm
Categorized under Featured, Technology and has the following tags

Suggest 1 or more tags for this article

Use a comma (,) to separate 2 or more tags.

[?]

Prev Article: JAX India 2008

Next Article: Adobe School Innovation Awards


Possibly Related Articles

Archives: Visit the Archives for more articles.

Comments Post Yours

There are 6 responses so far. You can follow any responses to this entry through the RSS feed. You can leave a response, or trackback from your own site.

  1. Do you know about Jake2? Google it and get impressed. Because that is already what you are talking about — multiplayer Q2 using OpenGL without a real installtion etc.

  2. Honestly, the above Quake 4 trailer is completely unrelated to the article and might be misleading.

  3. Sorry Tim. You’re right and I’ve added a note that the video is just for eye-candy!

  4. “C/C++ to ActionScript compiler” might be a bit pulled out of proportion. As far as I know there is no ActionScript of any kind involved. The compiler compiles C/C++ code to AVM2 byte code, which has nothing to do with ActionScript at all.

  5. Related to that; there is some effort done to convert c# binary to actionscript 3 source. Have a look at jsc.sf.net.

  6. Can someone tell me how to retrieve this compiler or any sample of how using an application (or a c++ dll) in an actionscript. thanks for help!!

Post yours

Sidenotes

Quick notes, scribbles, somehow related to this website and to what I do. Or perhaps I'm just plain lazy to make them into a full article.

The rise and fall of Twitter

Superb, Awesome! Couldn't avoid having it here for people to enjoy. Via: TechCrunch. 9th Aug, 2008

Spawning does Django

Our team had a discussion yesterday why Spawning might be a good solution for our Python-Django specific Web server. The discussion is still hot on the table and have not come to a conclusion; nonetheless, ...2nd Aug, 2008

Take the A List Apart 2008 Survey

It's A List Apart's second annual survey for people who make websites. I took it! And so should you. The Survey for People Who Make Websites. This year's survey corrects many of last year's mistakes, with ...29th Jul, 2008

Django 1.0 alpha released

Django Project have released Django 1.0 Alpha today (22nd Jul, 2008 IST). If this is the timeline Django would stick to; then, Django 1.0 final release should hit the web on 2nd Sep, 2008. Alpha ...22nd Jul, 2008

The Continuum, a massive Flash Game

[flv:http://media.brajeshwar.com/v/games/the-continuum-trailer.flv 640 360] Watch The Continuum Trailer on YouTube Saw this at TechCrunch -- The Continuum: Flash Gaming Goes Hardcore. The Continuum is a new Flash game, featuring an extremely polished interface and deep ranking system. The ...12th Jul, 2008

View the Sidenotes Archive

Play the Penguin Game

Recommended

  • Oinam The official conglomerate of the Oinam related companies, institutes and holdings.
  • Not Safe for Work Ever clicked a link and felt embarrassed with the content in front of your co-workers? Ever caught unaware because the funny link your friend sent was a little beyond funny? Let’s minimize that with NSWF.
  • Forum Oinam’s technical discussion forum where developers and designers can discuss all technical topics.
  • oCricket oCricket is about Cricket and people enthusiastic about it.
  • Downloads All downloads, Free and Open Source.
  • Ode to Apple Dedicated to Apple - Mac, iPhone, iPod, iTunes, Quicktime, Apple TV and all the awesome softwares for the Apple Mac.
  • My Special Job My Special Job is a place where you can look for your weird necessities, strangely superb employees, when your need are more of those hackers, geeks, and ultimate rockstars in the Internet Technology.

Download free Brajeshwar Wordpress Theme

Brajeshwar

Brajeshwar I firmly believe in keeping things simple, easy for users and I envison pushing the technical envelop time and again for the betterment of viable commercial and practical applications.

Want to know more about me?

Brajeshwar's affinity with Adobe

My Photos

More photos on Flickr

Member of 9rules Network

"Brajeshwar" has 843 Articles and 5,903 comments, contained within 20 categories and 1,167 tags.

This site is in operation since 11th June, 2001.