Register FAQ/Rules Forum Spy Search Today's Posts Mark Forums Read

Welcome to the Mac Forums forums. Please read the FAQ if you have questions. Register to participate.

 
Go Back   Mac Forums > News and Article Discussion > MacRumors.com News Discussion
TouchArcade.com - iPhone Game Reviews and News

Reply
 
Thread Tools Search this Thread  
Old Sep 19, 2008, 11:49 AM   #1
MacRumors
macrumors bot
 
Join Date: Apr 2001
SquirrelFish Extreme Accelerates JavaScript Even More






longer bars represent faster speeds
The Webkit blog has posted benchmarks on their "next generation" JavaScript interpreter called SquirrelFish Extreme (SFX). SquirrelFish Extreme uses "more advanced techniques" to deliver even faster JavaScript performance.

The new version of SquirrelFish is nearly twice as fast the first version of SquirrelFish which we previously reported on. It is also over three times faster then the current Safari 3.1 version that is available from Apple.

JavaScript is heavily used in many modern interactive websites, including Apple's own MobileMe web apps. Google is also investing heavily in improving JavaScript performance and is working on their own accelerated JavaScript interpreter called V8. According to one blog, SquirrelFish Extreme is 38% faster than the current version of V8.

SquirrelFish Extreme is now available in the nightly betas of Webkit for personal testing, and should eventually make its way into future Safari releases.

Article Link

Last edited by arn : Sep 19, 2008 at 01:41 PM.
MacRumors is offline   Reply With Quote
Old Sep 19, 2008, 11:51 AM   #2
quigleybc
macrumors 68030
 
quigleybc's Avatar
 
Join Date: Jun 2005
Location: Beautiful Vancouver British Columbia, Canada
Send a message via Skype™ to quigleybc
if cross breeding fish and squirrels is what it takes to make javascript go faster....then so be it.
__________________
Black Book
Black iPhone
powermacg5 * iPod touch,nano,shuffle,3g * etc...
quigleybc is offline   Reply With Quote
Old Sep 19, 2008, 11:51 AM   #3
P-Worm
macrumors 68000
 
P-Worm's Avatar
 
Join Date: Jul 2002
Location: Salt Lake City, UT
Is the speed of javascript really that much of a problem that we need it to be that much faster? I have no idea because I know nothing when it comes to javascript.

P-Worm
__________________
Follow my show The Movie Audit as well as watch my other videos on my YouTube Channel!
P-Worm is offline   Reply With Quote
Old Sep 19, 2008, 11:55 AM   #4
RTiii320
macrumors 6502
 
Join Date: Aug 2008
Location: Long Beach California
this will be interesting to see
__________________
13" Alu-MacBook 2.4ghz, 4GB RAM, 250GB HD
32GB White iPhone 3G S⃣
RTiii320 is offline   Reply With Quote
Old Sep 19, 2008, 11:58 AM   #5
riversky
macrumors regular
 
Join Date: Mar 2005
Anyone know if this is an Intel only technology?
riversky is offline   Reply With Quote
Old Sep 19, 2008, 12:01 PM   #6
arn
macrumors god
 
arn's Avatar
 
Join Date: Apr 2001
Send a message via AIM to arn
Quote:
Originally Posted by P-Worm View Post
Is the speed of javascript really that much of a problem that we need it to be that much faster? I have no idea because I know nothing when it comes to javascript.
That's like asking if processor speeds are much of a problem.

I'm not sure it's so much of a problem, but people are using JavaScript for more intensive purposes (see mobileme). And faster is always better.

Also see:

http://www.harryguillermo.com/Pacman.aspx - PacMan in Javascript
http://280slides.com/ - "keynote"

arn
arn is offline   Reply With Quote
Old Sep 19, 2008, 12:08 PM   #7
retroneo
macrumors 6502
 
Join Date: Apr 2005
Quote:
Originally Posted by riversky View Post
Anyone know if this is an Intel only technology?
It will surely be ported to ARM for the iPhone.
retroneo is offline   Reply With Quote
Old Sep 19, 2008, 12:08 PM   #8
overanalyzer
macrumors 6502a
 
Join Date: Sep 2007
Location: Boston, MA USA
Quote:
Originally Posted by riversky View Post
Anyone know if this is an Intel only technology?
Sort of:

Quote:
Currently the code is limited to x86 32-bit, but we plan to refactor and add support for more CPU architectures. CPUs that are not yet supported by the JIT can still use the interpreter. We also think we can get a lot more speedups out of the JIT through techniques such as type specialization, better register allocation and liveness analysis. The SquirrelFish bytecode is a good representation for making many of these kinds of transforms.
Quote:
In addition, we’re interested in having JIT back ends for other CPU architectures.
The JIT is limited to x86 processors at the moment, but they're intending to add more as they go, and other elements of the improvements to the interpreter are available regardless of platform.
__________________
MBP 2.4 Core 2 Duo (work/home) / Mac Pro (work) / 24" Al iMac (home) / Mac Mini (home) / 8GB iPhone 3G
overanalyzer is offline   Reply With Quote
Old Sep 19, 2008, 12:09 PM   #9
twoodcc
macrumors 603
 
twoodcc's Avatar
 
Join Date: Feb 2005
Location: Right side of wrong
Send a message via AIM to twoodcc Send a message via MSN to twoodcc
dang, that's a big improvement, based on that graph. looking forward to this
__________________
tville pump
Smarter than the average bear
twoodcc is online now   Reply With Quote
Old Sep 19, 2008, 12:09 PM   #10
shawnce
macrumors 65816
 
Join Date: Jun 2004
Quote:
Originally Posted by riversky View Post
Anyone know if this is an Intel only technology?
At the moment the native code generation only supports Intel 32-bit but they are working on expanding support out to other processors. On non-Intel 32b systems you will fallback to the improved SquirrelFish "direct threading" byte-code interpreter which is fast but slower then the native code generation JIT.

All other improvements in SFX should work on non-Intel systems as I read things.
__________________
Steve Balmers the CEO of Microsoft... Dance Monkey, Developers!, The remix, The ad
shawnce is offline   Reply With Quote
Old Sep 19, 2008, 12:11 PM   #11
chrisgeleven
macrumors 6502
 
Join Date: Apr 2002
Location: Manchester, NH
Send a message via AIM to chrisgeleven
This is really going to show on the iPhone when it gets Safari 4. Web Apps are going to be fantastic on it.
__________________
Chris G.
MacBook 2.0 GHz Core Duo: OS X 10.6.1, 250GB HD, 2 GB RAM, Safari 4, iLife '09, iWork '09
iPhone 3G 3.1, Time Capsule 500GB
chrisgeleven is offline   Reply With Quote
Old Sep 19, 2008, 12:13 PM   #12
PlaceofDis
macrumors Demi-God
 
PlaceofDis's Avatar
 
Join Date: Jan 2004
Location: Chicago.
Send a message via AIM to PlaceofDis
well this is a good thing really because more and more javascripts are being used all around, and as such the difference will be able to be felt.
__________________
dim my eyes on the waves of confessions...
SpringWarmCold
PlaceofDis is offline   Reply With Quote
Old Sep 19, 2008, 12:14 PM   #13
pit29
macrumors 6502
 
Join Date: May 2006
Location: The Golden State
Quote:
Originally Posted by MacRumors View Post
SquirrelFish is available in the nightly betas of Webkit for personal testing, and should eventually make its way into future Safari releases.
Do the WebKit nightly builds contain already SquirrelFish Extreme, or just SquirrelFish?
pit29 is offline   Reply With Quote
Old Sep 19, 2008, 12:15 PM   #14
shawnce
macrumors 65816
 
Join Date: Jun 2004
SFX has been merged into the mainline code and so are available in the nightly builds.

Also if you read the webkit blog post...

Quote:
A Word About Benchmarks
We have included some performance results, but don’t take our word for it. You can get WebKit nightlies for Mac and Windows and try for yourself.
__________________
Steve Balmers the CEO of Microsoft... Dance Monkey, Developers!, The remix, The ad
shawnce is offline   Reply With Quote
Old Sep 19, 2008, 12:17 PM   #15
bishboria
macrumors newbie
 
Join Date: Sep 2008
I'd quite like to see a javascript engine that you can plug-in to any browser. Like taking chrome and using SFX instead of V8. Wonder if google would like that after the amount of effort they put into V8

I'm definitely going to download SFX and test it out.
bishboria is offline   Reply With Quote
Old Sep 19, 2008, 12:21 PM   #16
P-Worm
macrumors 68000
 
P-Worm's Avatar
 
Join Date: Jul 2002
Location: Salt Lake City, UT
Quote:
Originally Posted by arn View Post
That's like asking if processor speeds are much of a problem.

I'm not sure it's so much of a problem, but people are using JavaScript for more intensive purposes (see mobileme). And faster is always better.

Also see:

http://www.harryguillermo.com/Pacman.aspx - PacMan in Javascript
http://280slides.com/ - "keynote"

arn
Hmm. I see what you mean. I tried the PacMan one and it had some jitter to it. I thought that JavaScript was one of those things that could take forever to download, but once you did it was smooth sailing.

Anyway, I guess this opens a lot of doors for what can be done with it. Exciting stuff.

P-Worm
__________________
Follow my show The Movie Audit as well as watch my other videos on my YouTube Channel!
P-Worm is offline   Reply With Quote
Old Sep 19, 2008, 12:23 PM   #17
SirOmega
macrumors 6502a
 
Join Date: Apr 2006
Isn't Chrome using Webkit? Does this mean Google could drop V8 development and use SFX? It doesn't make a lot of sense to diversify JS engine development because it just means more browsers and more configurations for website developers (and JS framework developers) to test. We've got four mainstream browsers right now - IE, FF, Safari and Opera. Chrome is moving in, but if Safari and Chrome both used webkit and SFX, it would keep from adding one more browser to test.
SirOmega is offline   Reply With Quote
Old Sep 19, 2008, 12:33 PM   #18
shawnce
macrumors 65816
 
Join Date: Jun 2004
Quote:
Originally Posted by P-Worm View Post
Hmm. I see what you mean. I tried the PacMan one and it had some jitter to it. I thought that JavaScript was one of those things that could take forever to download, but once you did it was smooth sailing.
Don't confuse Java with JavaScript. Java requires a Java Virtual Machine (JVM) to exist on your system (aka may have to download something). JavaScript is directly supported by modern browsers and JavaScript is often directly embedded in the HTML the browser downloads. "SFX" is talking about JavaScript not Java.

Blame Netscape for the confusion by calling it JavaScript.

Quote:
Originally Posted by SirOmega View Post
Isn't Chrome using Webkit?
Yes for its rendering engine.

Quote:
Originally Posted by SirOmega View Post
Does this mean Google could drop V8 development and use SFX?
Yes and given the V8 license Safari could pickup V8.

Personally I expect V8 and SFX to share ideas over time possibly ending up with a single JS engine in the WebKit domain. Chrome has unique-ish operational model that makes V8 a better pick for them at this time.
__________________
Steve Balmers the CEO of Microsoft... Dance Monkey, Developers!, The remix, The ad
shawnce is offline   Reply With Quote
Old Sep 19, 2008, 12:38 PM   #19
Riemann Zeta
macrumors 6502
 
Join Date: Feb 2008
Quote:
Blame Netscape for the confusion by calling it JavaScript.
Yeah, it is a stupid name--back in the 1990s, Java was a hot buzzword, so I guess they couldn't resist. I would love to see anything that would speed up browsing back-ported to the iPhone, which still uses the old 3.1 webkit. I'm downloading the Webkit nightly and will start using it in lieu of Safari 4 DP2. The only issue I have with Safari 4 DP2 is that it is horribly unstable if you enable QuartzGL. So while I have QuartzGL hard-enabled on my system, I use the "QuartzGLEnable == No" flag in Safari's Info.plist. I guess I'll see if Webkit is snappier--it might be so snappy, I'll end up with whiplash.
Riemann Zeta is offline   Reply With Quote
Old Sep 19, 2008, 12:39 PM   #20
xUKHCx
Demi-God (Moderator)
 
xUKHCx's Avatar
 
Join Date: Jan 2006
Location: The Kop
Its about time they updated their blog.

Quote:
Originally Posted by shawnce View Post
SFX has been merged into the mainline code and so are available in the nightly builds.

Also if you read the webkit blog post...
I just got the latest nightly to check it out and 3.8x faster than the current version of Safari.

Left to right

Webkit: 996 ms
Safari 3.1.2: 3769 ms
Firefox (3.0.1): 3424 ms
Minefield with tracemonkey on: 1727 ms
Attached Thumbnails
Click image for larger version

Name:	Untitled-2.jpg
Views:	221
Size:	409.5 KB
ID:	135765  
__________________
The red men: Paul William Carlile (19), Raymond Thomas Chapman (50), Gary Christopher Church (19), Joseph Clark (29), Paul Clark (18)

Last edited by xUKHCx : Sep 19, 2008 at 12:44 PM.
xUKHCx is offline   Reply With Quote
Old Sep 19, 2008, 12:43 PM   #21
memco
macrumors regular
 
Join Date: May 2008
I'm excited by this prospect for my personal browsing--it always helps to have fast browsing. Sadly, I'm still on a PPC mac so I can't take advantage of SFX. Further, this is kind of bad from a development perspective because people still running things like IE or FF are going to have worse experiences with code (if it's not properly optimized in its own right.)
memco is offline   Reply With Quote
Old Sep 19, 2008, 12:46 PM   #22
-Alan-
macrumors member
 
Join Date: Mar 2007
So, does this mean Safari will be able to start using the WYSIWYG editor here at MacRumors?
__________________
Convert
-Alan- is offline   Reply With Quote
Old Sep 19, 2008, 01:03 PM   #23
shawnce
macrumors 65816
 
Join Date: Jun 2004
Quote:
Originally Posted by memco View Post
I'm excited by this prospect for my personal browsing--it always helps to have fast browsing. Sadly, I'm still on a PPC mac so I can't take advantage of SFX.
Yes you CAN benefit from SFX on PowerPC systems. Only the native JIT doesn't work all other / most other aspects SFX work on PowerPC.
__________________
Steve Balmers the CEO of Microsoft... Dance Monkey, Developers!, The remix, The ad
shawnce is offline   Reply With Quote
Old Sep 19, 2008, 01:04 PM   #24
lgoodlove
macrumors member
 
Join Date: Aug 2008
Location: Iowa
Send a message via AIM to lgoodlove
safari faster!!!

Safari running faster is good news to me. I know googles V8 is impressive and should be considered a big opponent in web browsing.

I know sooo windowz many ppl who love safari because of it's clean look, and fast performance.

The only thing I am disappointed with safari is it fails on loading images frequently compared to firefox 3. Any developers or close to want to tell me why this is? I am assuming it's because they want to decrease load times thus they give servers less time to respond... PLEASE if you know about this tell me I develop web sites and would love to know more about the "best browser in the world"
__________________
Better to be a pirate, then join the navy.
lgoodlove is offline   Reply With Quote
Old Sep 19, 2008, 01:07 PM   #25
xUKHCx
Demi-God (Moderator)
 
xUKHCx's Avatar
 
Join Date: Jan 2006
Location: The Kop
Quote:
Originally Posted by lgoodlove View Post
The only thing I am disappointed with safari is it fails on loading images frequently compared to firefox 3. Any developers or close to want to tell me why this is? I am assuming it's because they want to decrease load times thus they give servers less time to respond... PLEASE if you know about this tell me I develop web sites and would love to know more about the "best browser in the world"
Really I have found it to be the exact opposite and in fact when doing various tests/work in my browser in regards to images I simply can not use Firefox due to the dropped images however Safari gets them loaded 100% of the time.
__________________
The red men: Paul William Carlile (19), Raymond Thomas Chapman (50), Gary Christopher Church (19), Joseph Clark (29), Paul Clark (18)
xUKHCx is offline   Reply With Quote

Reply

Mac Forums > News and Article Discussion > MacRumors.com News Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 09:03 PM.

Mac News | Mac Rumors | iPhone Game Reviews | iPhone Apps

Powered by vBulletin® Version 3.6.10
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Copyright 2002-2009, MacRumors.com, LLC