Fernando Correia’s Weblog

September 21, 2008

JavaScript performance: SquirrelFish Extreme

Filed under: Software Development — Fernando Correia @ 11:17 am
Tags: , ,

The WebKit team announced a new generation of their JavaScript engine: SquirrelFish Extreme.

It leverages several advanced techniques and the result is quite fast JavaScript execution.

With this new scripting engine and its great rendering speed, WebKit is even better positioned as a leading browser engine.

There are already several benchmarks comparing SquirrelFish Extreme to previous WebKit versions and to other engines:

The new generation of browsers with fast rendering and scripting engines and multiprocess architecture is becoming a competitive platform for Rich Internet Applications and may provide a compelling alternative to environments like Flash / Flex and Silverlight.

September 5, 2008

Delicious in Google Chrome

Filed under: Software Development — Fernando Correia @ 5:07 pm
Tags:

I really liked Google Chrome. It is fast and has a clean interface. One thing that was preventing me from switching to it is the lack of support for Delicious, where I keep my Web tags.

While we wait for extension support, there is a way to achieve good enough integration that makes Delicious usable from Chrome.

Tagging pages

To be able to tag pages on Delicious from Chrome we can use a bookmarklet. Instructions:

  • Open the Delicious bookmarklets help page.
  • Press Control+B to show Chrome’s bookmarks bar.
  • Still in the Bookmarklets page, locate the instructions for Safari.
  • Drag the two links into your bookmarks bar.

Delicious buttons

Now, whenever you want to bookmark a page on Delicious, just click on the icon on the bookmarks bar. Remember you can hide and show this bar, so press Control+B when you need the icon and enjoy a clean interface the rest of the time.

Searching pages

You can use Chrome’s Omnibox to search inside your Delicious tags:

  • Right-click in the Omnibox and select Edit search engines.
  • In the Search Engines dialog press the Add button.
  • Fill the form as follows:
    • Name: Delicious
    • Keywork: d
    • URL: http://delicious.com/search?context=userposts&p=%s&lc=1&u=your_user_name
  • Press OK to close the form.

Now on your Omnibox you can type “d”, the space bar, and your search term, like this:

d python

And a search page in Delicious will be shown.

Google Bookmarks

You can also integrate Google Bookmarks using the same technique described here.

Conclusion

I agree this is not as great as the Delicious extension for Firefox. But I think it is convenient enough to enable me to try switching to Chrome as my primary browser.

September 3, 2008

Django 1.0 is Out

Filed under: Software Development — Fernando Correia @ 10:11 pm
Tags: ,

Jacob Kaplan-Moss announced the release of Django 1.0. That’s a great milestone for this Python Web framework.

Jacob recalls how the project grew to a proportion that they couldn’t imagine in the first days, and concludes that

“Django 1.0 represents a the largest milestone in Django’s development to date: a web framework that a group of perfectionists can truly be proud of.”

Among the major features in the release notes are:

  • Stability and forwards-compatibility
  • A new documentation site
  • Re-factored admin application
  • Improved Unicode handling
  • An improved ORM
  • Automatic escaping of template variables
  • GeoDjango
  • Pluggable file storage
  • Jython compatibility
  • Generic relations in forms and admin
  • INSERT/UPDATE distinction
  • Split CacheMiddleware
  • Refactored django.contrib.comments

Chrome cheat codes

Filed under: Software Development — Fernando Correia @ 9:42 am
Tags: ,

Open these links in Chrome:

  • about:network
  • about:stats
  • about:cache
  • about:histograms
  • about:plugins
  • about:dns
  • about:version

Edit: Found more:

  • about:memory
  • about:internets
Source:
http://img141.imageshack.us/img141/120/chromesecretzq2.jpg

September 2, 2008

Chrome is Fast: JavaScript benchmark

Filed under: Software Development — Fernando Correia @ 5:29 pm
Tags: ,

I ran the V8 JavaScript virtual machine’s benchmark suite on Internet Explorer, Firefox and Chrome. Guess who comes first…

The old JavaScript engines are not even in the same league. For a competitor I think we must wait for Tamarin TraceMonkey.

Edits:

Reader PA contributed with another benchmark that finds that Lua is faster. Good, let’s all switch to Lua then! =D

Another independent benchmark: Google Chrome browser mini-review, benchmark (still fast).

Something more scientific-looking here: Google Chrome Benchmarks (still rocks).

Chip has a nice review and uses Mozilla’s own benchmark (still flies):

Alex pointed out that Celtic Kane has an interesting benchmark that deserves a good look. It shows very different results.

(Sorry, but Opera is not my style…)

Also John Resig did a great job on several benchmarks across several browsers:

Brendan Eich speaks for the TraceMonkey team with some in-depth analysis.

Matt Hackett also published a benchmark.

Faster JavaScript and faster browser engines mean richer browser applications without plugins like Flash and Silverlight.

Google Chrome is Out

Filed under: Software Development — Fernando Correia @ 4:54 pm
Tags: ,

Google just released Chrome, its own Web browser. It can be downloaded at http://www.google.com/chrome

After it downloads, it offers to import your settings from Firefox. When it opens, it tells you that it has a single edit box where you can search and navigate.

The first impression delivers on the promise. It is sleek!

Localization

If your primary language is not English you’ll probably see Chrome localized in your language. In fact, there is a single executable and you can choose the language in the options!

Search

I just typed some search terms on the text box. The search results where shown immediately. I can press ENTER to open. Great!

Tabs

Next I tried opening and closing some tabs. The animation is very fast and smooth.

Ajax

Google Reader, Gmail and Google Maps seem to work really well in Chrome. Certainly we didn’t expect anything less. I’m not sure if I see the Javascript speed improvements already. Maybe when the browser does not freeze the way Firefox sometimes does.

Edit: See the benchmark.

Flash

Flash works well. I tried a casual game and my sample Flex application.

Download

I liked the download interface better than Firefox’s. The download is shown in the tab footer and you click on it when it’s done. Simple and effective.

New tab

After having navigated for a while, I opened a new tab. Now it shows the sites I visited most. And it opened really fast, just as promised. Google doesn’t want you to default to an empty page.

History

[Edit] Being able to search inside the pages in your history is certainly a killer feature. Many times we remember a few words about a page we read before, and we want to find it fast. Google delivers on search, again.

Conclusion

My first impression was good. I will certainly use Chrome a little more. Of course, a great strength of Firefox is its many excellent plugins. I don’t thing I’m willing to leave some of them behind. On the other hand, I believe plugin authors will be interested in Chrome soon.

[Edit] For a better review than mine see Google Chrome: Should You Convert?.

Google Chrome Wallpaper

Filed under: Software Development — Fernando Correia @ 12:57 pm
Tags: ,

Want a nice wallpaper of Google Chrome?

Just click on the picture below and when it opens in full resolution, use your browser to save it as a wallpaper.

Make it centered and use a white background. Presto.

Source: This is a logo that qualifies for fair use. Found in Wikipedia.

Edit: For something more elaborate go to Google Chrome Wallpapers.

Google Chrome Screenshots

Filed under: Software Development — Fernando Correia @ 12:37 pm
Tags: ,

Tom Spring wrote an article in PC World about the upcoming Google Chrome browser.

He displays and comments on 9 screenshots. Since you can’t touch it right now, at least you can see it:

September 1, 2008

Google Chrome

Filed under: Software Development — Fernando Correia @ 11:32 pm
Tags: ,

I know that by now you’ve heard about Google Chrome. I think it is great news. A new browser, by Google, that focus on stability, speed and ease of use. Open source to boot. That must be the start of something great. Hmm… should I uninstall Internet Explorer 5.5 already?

For your convenience, a list of links about it:

The party line:

“Google Chrome is clean and fast. It gets out of your way and gets you where you want to go.”

An interesting opinion by Lance Ulanoff:

“By mid 2010 Firefox has 50 percent of the market, IE 45 percent, and Google Chrome and Opera are fighting over the scraps.”

The Rubric Theme. Get a free blog at WordPress.com

Follow

Get every new post delivered to your Inbox.