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]
Share
Categories
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
this article basically tells us nothing
June 10 2008 at 9:44 PM Report abuse Permalink rate up rate down Replyso when does Safari actually get this marvel? Or more importantly, when does Mobile Safari get this marvel?
(not counting nightly build stuff :p )
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.
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....
Actually it's probably an LALR Walker. :p
http://en.wikipedia.org/wiki/LALR_parser
I agree, best icon I've seen in a long time.
June 05 2008 at 11:16 AM Report abuse Permalink rate up rate down ReplyAT-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.
Best. Icon. Ever.
June 05 2008 at 10:43 AM Report abuse Permalink rate up rate down ReplyWasn'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.
[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.
Hot Apps on TUAW
Deals of the Day
more deals- Verizon Leather Sleeve for Tablets for $4 + free shipping
- Wicked Jaw Breaker Noise-Isolating In-Ear Headphones for $6 + free shipping
- Refurb Apple MacBook Air Laptops: 12" 64GB SSD for $699 + free shipping
- JVC Motion Sensing Clock Radio with Dual iPod Docks for $55 + free shipping
- Apple iPhone Headset with Mic for $4 + $2 s&h
- Refurb Apple iPod nano 8GB MP3 Player for $99 + free shipping, 16GB for $119
Software Updates
more updates- EFI Firmware Update brings Lion Internet Recovery to 2010-model Macs
- OS X Lion 10.7.3 released with Safari 5.1.3, Wi-Fi bug fix
- Aperture updated to 3.2.2, addresses Photo Stream issue
- Apple updates Keynote to address Lion issues
- Google Search app gets new look on iPad
- Apple releases Apple TV Software Update 4.4.3



22 Comments