Mozilla this week is touting technology to boost performance of its JavaScript engine and Web applications.
Called TraceMonkey, the technology adds native code compilation to the engine, which itself is called SpiderMonkey, said Mike Shaver, Mozilla vice president of engineering, in a blog post on Friday. The software builds on code and ideas shared with the Tamarin Tracing project, Shaver said.
TraceMonkey was placed in the Firefox 3.1 development tree this week. It is slated to be featured in Firefox 3.1, which is due to be available the end of this year.
"I'm extremely pleased to announce the launch of TraceMonkey, an evolution of Firefox's SpiderMonkey JavaScript engine for Firefox 3.1 that uses a new kind of Just-In-Time (JIT) compiler to boost JavaScript performance by an order of magnitude or more," said Brendan Eich, Mozilla CTO and the founder of JavaScript, in a blog post.
"TraceMonkey advances us toward the Mozilla 2 future where even more Firefox code is written in JavaScript. Firefox gets faster and safer as this process unfolds," Eich said.
The project still is early in development, though.
"The goal of the TraceMonkey project — which is still in its early stages — is to take JavaScript performance to another level, where instead of competing against other interpreters, we start to compete against native code," said Shaver.
"We have bugs to fix, and an enormous number of optimizations still to choose from, but we’re charging full speed ahead on the work we need to do for this to be a part of Firefox 3.1," Shaver said. "Depending on the benchmarks you choose, you might see massive speed-up, minor speed-up, or maybe even some slowdown — those latter cases are definitely bugs and reporting them through bugzilla will be a big help."
TraceMonkey supports x86, x86-64, and ARM. "This means we are ready for mobile and desktop target platforms out of the box," Eich said.
"As the performance keeps going up, people will write and transport code that was 'too slow' to run in the browser as JavaScript. This means the Web can accommodate workloads that right now require a proprietary plugin," said Eich.
He added he expects other browsers to follow Mozilla's lead and take JavaScript performance through current interpreter speed barriers, using JIT native code compilation.
Read more about software development in InfoWorld's Developer World Channel.
Get the independent advice and expertise you need to support a virtual workforce.
The increase in Linux popularity has increased the frequency and sophistication of malware attacks. Read this 2 page white paper now to learn how you can protect your Linux environment with real-time protection that is certified by all major Linux vendors.
Download now »Ensuring acceptable application delivery will become even more difficult over the next few years. As a result, IT organizations need to ensure that the approach that they take to resolving the current application delivery challenges can scale to support the emerging challenges. This handbook elaborates on the key tasks associated with planning, optimization, management and control and provides decision criteria to help IT organizations choose appropriate solutions.
Download now »A common misconception is that mid-range storage requirements are dramatically different than that of a larger enterprise. Mid-range storage users may require less capacity, but they have similar functionality and management requirements. This ESG paper examines mid-range storage needs and reviews a new solution that adjusts size while retaining value, performance and functionality.
Download now »
