Feeds

Mozilla answers Google's Crankshaft with IonMonkey

Another simian joins Firefox JavaScript engine

3 Big data security analytics techniques

Mozilla is developing a new JIT compiler for SpiderMonkey – the Firefox JavaScript engine – aiming to provide a new set of JavaScript optimizations. Known as IonMonkey, this will be SpiderMonkey's third JIT, but Mozilla hopes to consolidate all its optimization work on the new platform.

"Our goal is to implement a new compiler to enable many new JavaScript optimizations," reads the IonMonkey page on the MozillaWiki. "In particular, IonMonkey will feature much more organized and explicit data structures typical of advanced compilers. This goal of being clean and flexible will be extremely important for future optimization work and experimentation."

The project is led by David Anderson and David Mandelin, who were instrumental in building the JaegerMonkey JIT that was added to Firefox 4. Anderson and Mandelin aim to at least match the speed of Firefox's Trace JIT and Google's Crankshaft JavaScript engine.

When Google first revealed Crankshaft last fall, Mandelin said that Mozilla's JavaScript team and developer community "definitely have the skills and resources to enhance" the Firefox engine in ways that rival Google's design, and he indicated that work would begin soon after the release of Firefox 4.

"Plenty to do after Firefox 4 comes out," Mandelin said . "In the words of David Anderson, 'The game’s back on'."

Crankshaft was inspired by Sun's Java HotSpot performance engine, the revamped Java virtual machine that arrived in 1999, according to an exchange between The Register and Google engineer Eric Kay in December. Google Chrome developer Lars Bak was the lead man on the Sun HotSpot team, and Crankshaft uses HotSpot-like "adaptive compilation", identifying important code and optimizing that code as needed.

This is also reminiscent of what Mozilla does with the TraceMonkey extension to its JavaScript engine. But TraceMonkey "traces" code, detecting loops and converting them to assembly code. It works in tandem with JaegerMonkey. When TraceMonkey doesn't apply, JaegerMonkey kicks in and converts entire methods into assembly.

IonMonkey will make use of the Type Interface project from Mozilla man Brian Hackett, an effort to work around JavaScript's untyped setup. "[Hackett's project] is a hybrid static and dynamic analysis that is able to pinpoint, for certain, the types for every variable and property in a JavaScript program. This allows you to remove all sorts of run-time checks and perform optimizations that would otherwise be impossible," Anderson tells Infoq.

Mozilla intends to share all its IonMonkey code across the x86, x64, and ARM platforms. ®

SANS - Survey on application security programs

More from The Register

next story
This time it's 'Personal': new Office 365 sub covers just two devices
Redmond also brings Office into Google's back yard
Oh no, Joe: WinPhone users already griping over 8.1 mega-update
Hang on. Which bit of Developer Preview don't you understand?
Microsoft lobs pre-release Windows Phone 8.1 at devs who dare
App makers can load it before anyone else, but if they do they're stuck with it
Half of Twitter's 'active users' are SILENT STALKERS
Nearly 50% have NEVER tweeted a word
Next Windows obsolescence panic is 450 days from … NOW!
The clock is ticking louder for Windows Server 2003 R2 users
Ditch the sync, paddle in the Streem: Upstart offers syncless sharing
Upload, delete and carry on sharing afterwards?
Microsoft TIER SMEAR changes app prices whether devs ask or not
Some go up, some go down, Redmond goes silent
Batten down the hatches, Ubuntu 14.04 LTS due in TWO DAYS
Admins dab straining server brows in advance of Trusty Tahr's long-term support landing
prev story

Whitepapers

SANS - Survey on application security programs
In this whitepaper learn about the state of application security programs and practices of 488 surveyed respondents, and discover how mature and effective these programs are.
Combat fraud and increase customer satisfaction
Based on their experience using HP ArcSight Enterprise Security Manager for IT security operations, Finansbank moved to HP ArcSight ESM for fraud management.
The benefits of software based PBX
Why you should break free from your proprietary PBX and how to leverage your existing server hardware.
Top three mobile application threats
Learn about three of the top mobile application security threats facing businesses today and recommendations on how to mitigate the risk.
3 Big data security analytics techniques
Applying these Big Data security analytics techniques can help you make your business safer by detecting attacks early, before significant damage is done.