YUI 3.0 – Changes From the Root

1

Posted on : 08/28/2008 | By : Jimmy Vu | In : Development News

If you are web developer you may have noticed that the latest version of Yahoo’s User Interface toolset and widgets (for web development), YUI 3.0, is now available as a preview release. YUI has long been a popular “Ajax” library both because of its liberal BSD license, and because of the number of features it provides.

The big news about YUI the third are that it changes from the root and (unfortunately) is not compatible with YUI 2.x APIs as Eric and Matt stated on developer blog.

YUI 3.0 builds off of the YUI 2.x codeline, but we’ve evolved most of the core APIs in working toward the five key goals described above. As a result, migrating from YUI 2.x to 3.x will require effort at the implementation level.

However, YUI 3.0 will ship with a limited compatibility layer for the current YUI Core that will allow you to run some of your YUI 2.x-based implementations (Yahoo Global Object, Dom Collection, and Event Utility) on top of YUI 3.0.

These radical changes are toward 5 goals:

  • Lighter (less K-weight on the wire and on the page for most uses)
  • faster (fewer http requests, less code to write and compile, more efficient code)
  • more consistent (common naming, event signatures, and widget APIs throughout the library)
  • more powerful (do more with less implementation code)
  • more securable (safer and easier to expose to multiple developers working in the same environment; easier to run under systems like Caja or ADsafe)

Read the rest of this entry »

Recommended Reading

Data standards called crucial to patient safety: IOM calls for federal initiative.(Practice Trends)(Institute of Medicine): An article from: Family Practice NewsThis digital document is an article from Family Practice News, published by International Medical News Group on February 1, 2004. The length of the ar... Read More >
Prempro 0.45/1.5. (New & Approved).: An article from: Family Practice NewsThis digital document is an article from Family Practice News, published by International Medical News Group on April 15, 2003. The length of the arti... Read More >
Oxytrol. (New & Approved).(Brief Article): An article from: Family Practice NewsThis digital document is an article from Family Practice News, published by International Medical News Group on April 15, 2003. The length of the arti... Read More >

Turn on JavaScript JIT in Firefox 3.1

1

Posted on : 08/24/2008 | By : Jimmy Vu | In : Development News

Mozilla has just introduced a new JavaScript optimization feature to Firefox 3.1 development code base (Shiretoko) that well enhances JavaScript-based web apps performance by a 2x – 20x fold compared to the Firefox 3.0, according to JavaScript performance tests ran and published by Mozilla’s Brendan Eich.

I’m extremely pleased to announce the launch of TraceMonkey, an evolution of Firefox’s SpiderMonkey JavaScript engine for Firefox 3.1 that uses a new kind of Just-In-Time (JIT) compiler to boost JS performance by an order of magnitude or more.

Here are some of the charts from Brendan’s blog:

assorted-benchmarks

Assorted benchmarks

SunSpider micro-benchmarks

SunSpider micro-benchmarks

However the best way to evaluate it is to see it in action via simple JavaScript image editor that lets you adjust a picture’s contrast and brightness with a couple of sliders created by Mike Schroepfer. By default, TraceMonkey is disabled (as it is still buggy), there is a very noticeable delay while sliding. Turn it on (javascript.options.jit.content = true in about:config) and the thing works like charm, very smoothly.

JavaScript Image Editor

JavaScript Image Editor

Going into significant detail on how all of this came about, Brendan notes some key points:

Read the rest of this entry »

Recommended Reading

Oxytrol. (New & Approved).(Brief Article): An article from: Family Practice NewsThis digital document is an article from Family Practice News, published by International Medical News Group on April 15, 2003. The length of the arti... Read More >
PhRMA web site helps low-income patients find free medications.(Practice Trends)(Pharmaceutical Research and Manufacturers of America)( www.helpingpatients.org): An article from: Skin & Allergy NewsThis digital document is an article from Skin & Allergy News, published by International Medical News Group on June 1, 2004. The length of the article... Read More >
Plan to redirect Academic Health funds slammed: reaction to IOM report.(Practice Trends): An article from: Family Practice NewsThis digital document is an article from Family Practice News, published by International Medical News Group on October 1, 2003. The length of the art... Read More >