User Name
Password
AppleNova Forums » Apple Products »

Safari: We can build it faster, stronger.


Register Members List Calendar Search FAQ Posting Guidelines
Safari: We can build it faster, stronger.
Page 1 of 3 [1] 2 3  Next Thread Tools
Brad
Selfish Heathen
 
Join Date: May 2004
Location: Zone of Pain
 
2005-06-12, 17:50

In case you don't follow Dave Hyatt's blog, here's some big news for you Safari users! The Apple Safari developer team already has been providing the source for WebCore and JavaScriptCore for others to use, but they've only been available in point updates after each major Safari upgrade. Developers like The Omni Group who roll special implementations of it have had to wait around for Apple to release these updates so they could in turn get to work at processing and using them.

They (and you) must wait no longer!

The Safari team has decided to go a step farther, now, and has implemented a CVS for WebKit, WebCore, and JavaScriptCore! For developers, that means getting access to goodies before they're officially released and it also means contributing fixes and immediately seeing the results. For end users, that means you can essentially have the future versions of Safari today.

From Hyatt's blog:
Quote:
As some of you have already noticed (those of you that built), the new WebKit not only passes Acid2, but it's also substantially faster at loading Web pages and at handling JavaScript. It contains a number of additional performance improvements that went in post-Tiger.
I can confirm this, as I just rolled my own copy from the CVS and am using it now.

How do you do it? Well, you need Apple's developer tools installed first. You can install from your OS X Install discs or you can download from connect.apple.com (after joining with a free ADC account). Then, hit webkit.opendarwin.org for instructions. Read and follow the instructions very carefully.

You can either run a specific instance of Safari with the new code (recommended) or you can replace the system frameworks with your own builds (AT YOUR OWN RISK).

The quality of this board depends on the quality of the posts. The only way to guarantee thoughtful, informative discussion is to write thoughtful, informative posts. AppleNova is not a real-time chat forum. You have time to compose messages and edit them before and after posting.
  quote
thegelding
feeling my oats
 
Join Date: May 2004
Location: there are nice people here...that makes me happy
Send a message via AIM to thegelding  
2005-06-12, 18:20

or a simpleton like me, is it worth the time and effort, or should i stick with the safari i got running with 10.4.1??

g
  quote
morningstarrising
Veteran Member
 
Join Date: Jan 2005
Location: Philadelphia, PA
 
2005-06-12, 18:22

So what you going to do with this?

I'm not touching this, cuz if I did, i'd be the first OS X Mac to be infected with a virus..lol
  quote
Brad
Selfish Heathen
 
Join Date: May 2004
Location: Zone of Pain
 
2005-06-12, 18:23

It's probably not worth the time and effort, G.

Quote:
Originally Posted by morningstarrising
So what you going to do with this?

I'm not touching this, cuz if I did, i'd be the first OS X Mac to be infected with a virus..lol
Huh?
  quote
torifile
Less than Stellar Member
 
Join Date: May 2004
Location: Durham, NC
Send a message via AIM to torifile  
2005-06-12, 19:22

Just for the sheer geekiness of it, I downloaded the source and I'm getting an error in the webkit build. I'm redownloading now. Maybe I screwed that up...

Quote:
Unsuccessful open on filename containing newline at /Users/sbanawan/Webkit/WebKitTools/Scripts/webkitdirs.pm line 91.
The line causing the error is:

Code:
open CONFIGURATION, "$baseProductDir/Configuration" or die;
Any ideas?

If it's not red and showing substantial musculature, you're wearing it wrong.
  quote
staph
Microbial member
 
Join Date: May 2004
Send a message via AIM to staph  
2005-06-12, 19:31

Quote:
Originally Posted by torifile
Just for the sheer geekiness of it, I downloaded the source and I'm getting an error in the webkit build. I'm redownloading now. Maybe I screwed that up...

Quote:
Unsuccessful open on filename containing newline at /Users/sbanawan/Webkit/WebKitTools/Scripts/webkitdirs.pm line 91.
The line causing the error is:

Code:
open CONFIGURATION, "$baseProductDir/Configuration" or die;
Any ideas?
What is $baseProductDir defined as?

You could always work out where the Config dir actually is and replace the variable with an absolute path.

Edit: filename containing newline? Bizarre! Are there spaces in the path to the build directory?
  quote
torifile
Less than Stellar Member
 
Join Date: May 2004
Location: Durham, NC
Send a message via AIM to torifile  
2005-06-12, 19:43

Quote:
Originally Posted by staph
What is $baseProductDir defined as?

You could always work out where the Config dir actually is and replace the variable with an absolute path.

Edit: filename containing newline? Bizarre! Are there spaces in the path to the build directory?
Don't know what $basProductDir is defined as. I didn't define it. All I did was copy and paste the build command. There are no spaces in the target directory name (at least there aren't if the directory isn't defined with a space; the path to the directory I'm in is Yoshi/Users/sbanawan/webkit).

If it's not red and showing substantial musculature, you're wearing it wrong.
  quote
staph
Microbial member
 
Join Date: May 2004
Send a message via AIM to staph  
2005-06-12, 20:22

Quote:
Originally Posted by torifile
Don't know what $basProductDir is defined as. I didn't define it.
Somewhere else in the code should be a line with something along the lines of

Code:
$baseProductDir = "/path/to/webkit";
or

Code:
GetOptions ( baseProductDir => \$baseProductDir );
or something like that. Just have a look for other occurences of the variable name somewhere before line 91.

Is there a file called Configuration in your webkit folder, or one of the folders under it? If you can find the actual file, you can replace the filename ("$baseProductDir/Configuration") in line 91 with the full path, and it would hopefully Just Work™.
  quote
torifile
Less than Stellar Member
 
Join Date: May 2004
Location: Durham, NC
Send a message via AIM to torifile  
2005-06-13, 22:45

Very strange and maybe related to my errors: when I started up poisoned tonight, I kept getting permissions errors. Something about not being able to create a folder or something. I did a repair permissions but that didn't seem to fix it (and I deleted all prefs and everything....) I wonder what the problem is...

If it's not red and showing substantial musculature, you're wearing it wrong.
  quote
Brad
Selfish Heathen
 
Join Date: May 2004
Location: Zone of Pain
 
2005-06-13, 22:46

My advice regarding Safari: trash everything you pulled and start over with the instructions from scratch.
  quote
torifile
Less than Stellar Member
 
Join Date: May 2004
Location: Durham, NC
Send a message via AIM to torifile  
2005-06-13, 22:54

I did that twice. I just restarted and my poisoned problem disappeared. Lemme see if my safari one did too.

Well, no go still.... Should I be putting this in a specific directory? Right now, I'm downloading to a directory in my home directory.

edit: what the hell. Now it's working... I just checked everything out into my home directory. I hope it wasn't the restart that fixed it. That's just too windows-esque.

If it's not red and showing substantial musculature, you're wearing it wrong.
  quote
torifile
Less than Stellar Member
 
Join Date: May 2004
Location: Durham, NC
Send a message via AIM to torifile  
2005-06-13, 23:20

Ok. It's built. I ran it with WebKitTools/Scripts/run-safari but it seems the same. Even the build number is the same (412). Am I missing something?
  quote
Brad
Selfish Heathen
 
Join Date: May 2004
Location: Zone of Pain
 
2005-06-13, 23:29

Safari, the application, is exactly the same.
WebKit, the engine that powers Safari, is what's new.

One sure-fire way to see some changes?

The Acid2 Test.

Look at it with your specially-launched Safari (using the script in Terminal) and you should see a nice smiley. Quit it, launch Safari normally, and try again and you'll see a page with lots of rendering errors (after seeing a weird file download). That's one indication of the bugs that the newer WebKit fixes.

Also, I've found scrolling with two-fingers to be much smoother and faster with the new WebKit. Heck, I've even modified the script to open a Adium with the custom WebKit.

The quality of this board depends on the quality of the posts. The only way to guarantee thoughtful, informative discussion is to write thoughtful, informative posts. AppleNova is not a real-time chat forum. You have time to compose messages and edit them before and after posting.
  quote
darshu
Member
 
Join Date: Jun 2004
 
2005-06-14, 00:48

Quote:
Originally Posted by torifile
Just for the sheer geekiness of it, I downloaded the source and I'm getting an error in the webkit build. I'm redownloading now. Maybe I screwed that up...

Quote:
Unsuccessful open on filename containing newline at /Users/sbanawan/Webkit/WebKitTools/Scripts/webkitdirs.pm line 91.
The line causing the error is:

Code:
open CONFIGURATION, "$baseProductDir/Configuration" or die;
Any ideas?
That was a bug one of the devs checked in, they fixed it later. The fun of working on a live CVS tree
  quote
Brad
Selfish Heathen
 
Join Date: May 2004
Location: Zone of Pain
 
2005-06-14, 09:04

Yeah, that's why just starting over can mysteriously fix it so easily.

Remember that this whole thing is a "use at your own risk" project.
  quote
IonYz
Member
 
Join Date: Nov 2004
Location: Chicagoland
Send a message via AIM to IonYz  
2005-06-15, 00:31

Does it feel snappier?

I'd like some new CSS stuff to play with though. Maybe rounded anti-aliased borders or some really neat CSS3 stuff. Deer Park has a dozen or so neat things to play with.

And why is this page so wide. Code blocks should overflow to scroll.

/* styling for my posts */
.intelligence {display: none;}
  quote
Brad
Selfish Heathen
 
Join Date: May 2004
Location: Zone of Pain
 
2005-06-15, 01:06

Quote:
Originally Posted by IonYz
And why is this page so wide. Code blocks should overflow to scroll.
Believe me when I say it's not nearly as easy as you suggest. The PRE forces out the width and because everything is wrapped in table cells, the cells stretch out infinitely. I actually have fixed this on the test server by abolishing nearly all tables, but it breaks like hell in Internet Explorer.

The quality of this board depends on the quality of the posts. The only way to guarantee thoughtful, informative discussion is to write thoughtful, informative posts. AppleNova is not a real-time chat forum. You have time to compose messages and edit them before and after posting.
  quote
CobaltFire
Member
 
Join Date: May 2005
Send a message via AIM to CobaltFire  
2005-06-15, 01:29

To be honest (and I am a big IE user since that's all I have at work), break IE to make it run on Safari better. I'm sure the IE users (10% was the last figure I heard) will deal. Anyhow, interesting stuff on that Safari thing, I may have to play with that.

EDIT: It figures that the first thread I open after I post this would screw up royally. I have a pic (kinda interesting formatting...) but can't figure out how to post it.

15.4" PowerBook G4 1.25GHz/512MB (Radeon 9600/64MB)
Keep our troops overseas in your hearts and minds - it means more to them than you can imagine.
I would rather be hated for who I am than loved for who I am not.
  quote
nassau
Member
 
Join Date: Jul 2004
 
2005-06-15, 10:11

maybe i'm i misunderstanding the whole thing here, but this page is wide as hell in safari (1.3) too...
  quote
Brad
Selfish Heathen
 
Join Date: May 2004
Location: Zone of Pain
 
2005-06-15, 10:49

Better?

Hint: when you use the CODE tag, it respects all whitespace. Therefore, it never gives a carriage return until you put it in there. I just changed the problematic CODE tags in the above posts to QUOTE tags.

The quality of this board depends on the quality of the posts. The only way to guarantee thoughtful, informative discussion is to write thoughtful, informative posts. AppleNova is not a real-time chat forum. You have time to compose messages and edit them before and after posting.
  quote
torifile
Less than Stellar Member
 
Join Date: May 2004
Location: Durham, NC
Send a message via AIM to torifile  
2005-06-15, 11:11

Quote:
Originally Posted by Brad
Better?

Hint: when you use the CODE tag, it respects all whitespace. Therefore, it never gives a carriage return until you put it in there. I just changed the problematic CODE tags in the above posts to QUOTE tags.
Sorry. That was me, I think.
  quote
Brad
Selfish Heathen
 
Join Date: May 2004
Location: Zone of Pain
 
2005-06-15, 11:30

No sweat, T.

Though, this southern summer heat makes me want to reach for an iced tea.
  quote
EmC
Senior Member
 
Join Date: Jun 2004
Location: Columbus, Georgia
 
2005-06-15, 11:53

Wow, this is a lot faster. Thanks for pointing it out.
  quote
Purgatory
New Member
 
Join Date: Sep 2004
 
2005-06-28, 23:02

I don't notice much in terms of speed, but Safari ignores the fact that I set my Kensington PilotMouse Optical Pro's scroll wheel to super fast unless I use this CVS thingy, so I'm in.
  quote
Kyros
Member
 
Join Date: Feb 2005
 
2005-07-01, 17:58

Just out of curiosity, how soon would one expect to see a Safari 2.1 or something similar? Or does this project have nothing/little to do with that?
  quote
Brad
Selfish Heathen
 
Join Date: May 2004
Location: Zone of Pain
 
2005-07-01, 18:14

This project probably has very little bearing on when Apple will make an official release for Safari. Safari had made strides LONG before Apple actually released 1.3 and 2.0; so, that's a good sign that the release dates are guided moreso by politics than technical achievments.

On a related note, this project has a new blog on the .org page that Hyatt and company will be updating with relevant details:
http://webkit.opendarwin.org/blog/

The quality of this board depends on the quality of the posts. The only way to guarantee thoughtful, informative discussion is to write thoughtful, informative posts. AppleNova is not a real-time chat forum. You have time to compose messages and edit them before and after posting.
  quote
_Ω_
Veteran Member
 
Join Date: May 2004
Send a message via AIM to _Ω_  
2005-07-04, 04:16

Any one using NightShift ?

Quote:
NightShift automatically downloads and updates WebKit, the Safari HTML rendering engine, to the latest nightly version. No user intervention is required, everything is fully automated.

* Downloads WebKit nightly build from web server
* Mounts the disk image
* Creates a backup of the previous version on disk
* Copies the new nightly build to its default location
* Launches the new version of WebKit
* Option to undo latest install and revert to last version
* Option to show the change log for past week
  quote
staph
Microbial member
 
Join Date: May 2004
Send a message via AIM to staph  
2005-07-04, 05:06

I am now. It seems to work rather well.
  quote
Bill M
Member
 
Join Date: May 2004
 
2005-07-04, 22:55

Thanks for the tip, Omega. I just tried NightShift and it works just right. It is quite automated and certainly beats one having to build it; better leave that to the Pros like Brad and Co.

To anyone who will give it a shot, don't forget that you should launch the "webkit" app which will be installed in your Applications folder, instead of your regular Safari. It will show as a purple/gold Safari icon in the Dock. This "new" Safari thingie is indeed quite faster and renders complex websites much better IMHO.

Last edited by Bill M : 2005-07-04 at 23:23. Reason: fixed typo
  quote
_Ω_
Veteran Member
 
Join Date: May 2004
Send a message via AIM to _Ω_  
2005-07-04, 23:12

Just so everyone knows I am NOT using it. I just stumbled across it and thought of this thread.

  quote
Posting Rules Navigation
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

Page 1 of 3 [1] 2 3  Next

Post Reply

Forum Jump
Thread Tools
Similar Threads
Thread Thread Starter Forum Replies Last Post
safari stops and then beachballs constantly nassau Genius Bar 3 2005-05-31 08:36
Safari 2.0 and Text Size Issue justinseth Genius Bar 4 2005-05-17 09:38
10.3.9 Safari stability jsk173 Apple Products 22 2005-04-25 13:58
PowerBook G5 unixguru Speculation and Rumors 81 2004-10-24 18:25
Olympics: Stronger, Higher, Faster, Doper? curiousuburb AppleOutsider 60 2004-08-17 11:24


« Previous Thread | Next Thread »

All times are GMT -5. The time now is 18:33.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004 - 2024, AppleNova