Skip to Content

SquirrelFish could make Safari a lot faster

Safari is about to get a whole lot faster. The Surfin' Safari weblog has written about SquirrelFish, the code name (and what a code name it is) for the new interpreter for WebKit's core JavaScript engine.

How much faster is it? Surfin' Safari claims that is 1.6x faster than the current interpreter, but we'll have to get our hands on it to see. They also go into detail about why it's faster, so check that out if you're interested. You'll find phrases like "...WebKit's previous JavaScript interpreter was a simple syntax tree walker," which we assume is some sort of AT-AT walker.

[Via Computer World]

Categories

Internet Internet Tools

Safari is about to get a whole lot faster. The Surfin' Safari weblog has written about SquirrelFish, the code name (and what a code name it...
 

Add a Comment

*0 / 3000 Character Maximum

22 Comments

Filter by:
Daniel

this article basically tells us nothing

June 10 2008 at 9:44 PM Report abuse rate up rate down Reply
totoro

so when does Safari actually get this marvel? Or more importantly, when does Mobile Safari get this marvel?

(not counting nightly build stuff :p )

June 05 2008 at 2:07 PM Report abuse rate up rate down Reply
Sam

You don't have to wait to get your hands on squirrelfish, as it's in the latest webkit nightly.

I did some speed comparisons on my blog if you're interested: http://gthing.net/new-javascript-engine-in-webkit-nerd-stuff/

THe bottom line is that the latest webkit nightly executes javascript nearly twice as fast as safari. Firefox 2, 3 Beta, opera, and internet explorer aren't even contenders - some 10x slower than webkit.

June 05 2008 at 1:29 PM Report abuse rate up rate down Reply
moo

I spose I'm the only one here who has taken a class in compiler design and actually knows what hes talking about. In fact, I bet I'm the only one here who has taken a class in Syntax (as in, linguistics), so I doubly know about Syntax trees. Yay for me!

An example would be to make a tree out of: foo = bar * 2 + baz

The tree might look like:
= -> foo
-> * -> bar
-> + -> 2
-> baz

Sorry thats not too organized, thanks to ascii, but the idea is that the arguments for the equal sign are its two arguments, what its equal to and where to put it. The arguments for the multiplier are the two multiplicands, which are bar and the sum of 2 + baz, etc....

interesting stuff....

June 05 2008 at 12:21 PM Report abuse rate up rate down Reply
6 replies to moo's comment
Scott Lembcke

Actually it's probably an LALR Walker. :p
http://en.wikipedia.org/wiki/LALR_parser

June 05 2008 at 11:47 AM Report abuse rate up rate down Reply
Chris

I agree, best icon I've seen in a long time.

June 05 2008 at 11:16 AM Report abuse rate up rate down Reply
mikepk

AT-AT, LOL. You should see the development version, it's got Turbo Lasers.

As someone who writes a lot of javascript, the new competition in browsers and web applications has really allowed it to shine. I'm glad the interpreters are finally getting serious attention. I still remember reading feedback from the IE team on the complaints that their interpreter was *broken* because of it's memory leaks that basically said "why do you want to write code in javascript? If you want to write applications use a real language" I'm paraphrasing but that was their rationale for not fixing fundamentally broken stuff in IE's JScript.

Times they are a changing.

June 05 2008 at 11:01 AM Report abuse rate up rate down Reply
Ryan Trevisol

Best. Icon. Ever.

June 05 2008 at 10:43 AM Report abuse rate up rate down Reply
ZipperSeven

Wasn't Treewalker some kind of Marvel alternate-universe series version of Blade? (the Daywalker)?

Either that or I'm thinking something to do with Ents.

June 05 2008 at 10:18 AM Report abuse rate up rate down Reply
Ultim8fury

[quote]What Is SquirrelFish?
SquirrelFish is a register-based, direct-threaded, high-level bytecode engine, with a sliding register window calling convention. It lazily generates bytecodes from a syntax tree, using a simple one-pass compiler with built-in copy propagation.[/quote]

Well, now I'm enlightened.

June 05 2008 at 9:52 AM Report abuse rate up rate down Reply
Buy an ad here

Hot Apps on TUAW

Tweets

© 2012 AOL Inc. All Rights Reserved.