Thursday, May 23, 2013

Find: Surprise! Mozilla can produce near-native performance on the Web


Nice insight into the history of js, and the race to make it faster and more general purpose. Mozilla is focusing on a js subset. 

---

// published on Ars Technica // visit site

Surprise! Mozilla can produce near-native performance on the Web
Aurich Lawson / Thinkstock

In a bid to make JavaScript run ever faster, Mozilla has developed asm.js. It's a limited, stripped down subset of JavaScript that the company claims will offer performance that's within a factor of two of native—good enough to use the browser for almost any application. Can JavaScript really start to rival native code performance? We've been taking a closer look.

The quest for faster JavaScript

JavaScript performance became a big deal in 2008. Prior to this, the JavaScript engines found in common Web browsers tended to be pretty slow. These were good enough for the basic scripting that the Web used at the time, but it was largely inadequate for those wanting to use the Web as a rich application platform.

In 2008, however, Google released Chrome with its V8 JavaScript engine. Around the same time, Apple brought out Safari 4 with its Nitro (née Squirrelfish Extreme) engine. These engines brought something new to the world of JavaScript: high performance achieved through just-in-time (JIT) compilation. V8 and Nitro would convert JavaScript into pieces of executable code that the CPU could run directly, improving performance by a factor of three or more.

Read 94 remaining paragraphs




--
Benjamin Watson
Papa, Husband, Computer Scientist, Professor
@bunnybusatsu | bunnybosatsu.tumblr.com

No comments:

Post a Comment