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

Find: Chrome 27, released today, is 5 percent faster and includes conversational search

Nice insights into how pages are loaded. 

---

// published on Ars Technica // visit site

Chrome 27, released today, is 5 percent faster and includes conversational search

Google has updated the stable version of Chrome to version 27. On top of the usual bug and security flaw fixes, the new version is claimed to load webpages about 5 percent faster on average.

Finding a 5 percent improvement in a browser that's already fast is no mean feat. The better performance comes from making Chrome smarter about the way it uses the network: being more aggressive to download things in some instances and being less aggressive in others.

HTML pages generally include references to many other files that the browser needs to download before it can show a complete page to the user: CSS, JavaScript, and images. These can themselves have dependencies; HTML files can embed other HTML files, CSS files can reference images or other CSS files, and scripts can cause other scripts to be loaded, for example.

Read 7 remaining paragraphs




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