You can recycle emails and spams to cash!
up home page bottom recycle email

Add a comment Bookmark

French German version Spanish version Italian version

The entire web At this site


Hello Tech Timers! This issue of the SitePoint Tech Times is all about Harmony.



 

Email not displaying correctly? View it in your browser.

 SitePoint Tech Times

Issue 203: August 19, 2008  Tips, Tricks, News and Reviews for Web Coders

Introduction

Andrew TetlawHello Tech Timers! This issue of the SitePoint Tech Times is all about Harmony.

Kevin brings exciting news from a recent meetup of The ECMA Technical Committee in Oslo. I know “technical committee” and “excitement” seem like a contradiction in terms, but trust me, if you’re a JavaScript fan you’re going to be excited.

Read on for Kevin’s report.

Top

Our web developer customers can sleep at night.

Your job is building great websites for your clients. Lying awake at night wondering if those sites are accessible is not.

That’s why we maintain Fully Redundant Network Operations Center capabilities from two cities 24/7/365. So you can impress your clients and still get some shut-eye.

Find out why 3.1 million websites call The Planet home.

Celerons for $69/Month + Free Setup

Dual Xeon 2.4 IDE for $139

Free Backup for 90 Days

Summary

ECMAScript Harmony: New Life for JavaScript

One by one, the core standards that define the Web are getting a new lease on life. First, the W3C rebooted its development of HTML by abandoning its single-minded focus on XHTML and embracing the work of the WHAT-WG’s HTML 5 draft as a new beginning. Now, at a meeting in Oslo at the end of July, the long-divided standards body responsible for the JavaScript language has managed to find new unity through compromise.

The standard that describes JavaScript is called ECMAScript (because “JavaScript” is a trademark owned by Sun Microsystems). The last full update to ECMAScript, ECMA-262 3rd Edition, was published in 1999. In the over eight years since its publication, progress of JavaScript as a web standard has barely budged.

The lack of change to ECMAScript in that time has not been due to the language’s maturity. ECMA-262 3rd Edition has widely-recognized issues that real-world browsers have had to work around for years, so there has been plenty of need for a 4th Edition. In the absence of one, browser makers have had to reverse-engineer each other’s implementations in order to decide how to deal with the holes in the spec—pretty much the worst-case scenario for all concerned.

The Split in TC39

The ECMA Technical Committee 39 (TC39, the committee responsible for developing ECMAScript standards) certainly hasn’t been sitting idle during this time. Discussion of the features that should go into the 4th Edition of ECMA-262 have been ongoing pretty much non-stop, but consensus has been elusive.

Within TC39, representatives from Mozilla, Adobe, Opera, and Google wanted to undertake major enhancements to the language, and began assembling a list of new features shortly after the release of the 3rd Edition. Many of these features (like namespaces, generators, optional static typing, and getters/setters) have been added into real-world implementations of ECMAScript over the years (e.g. ActionScript 3 in Flash/Flex, JavaScript 1.7 and 1.8 in Firefox).

But not everyone within TC39 favored these kinds of changes. Over a year ago, representatives of Microsoft and Yahoo! within the committee stated that they felt a relatively minor update to the language, to fix the problems that had become apparent in the 3rd Edition, was more appropriate. They pointed out, for example, that features like packages, namespaces, and early binding that had been implemented in ActionScript 3 would present performance challenges if anyone tried to implement them in browsers.

This split within the committee led to the formation of two groups, each with its own draft: those seeking to add major features called their draft “ECMAScript 4.0,” while the more conservative group called its draft “ECMAScript 3.1.” But there could only be one ECMA-262 4th Edition, so as long as the two groups worked in parallel, the future of ECMAScript would remain unknown.

All that changed last month in Oslo. Read on below to find out what happened.

Top

What is Fanatical Support®?

The world’s hosting leader, Rackspace Hosting, is the expert when it comes to delivering hosting solutions.

It all starts with Fanatical Support®, the commitment to delivering an unequaled customer experience by supporting the technology and the customer 24×7x365.

No call centers or automated phone systems, every Rackspace customer has a dedicated support team managing their account and teams of experts managing the infrastructure, network and hosted solutions for them. And that means the customer can focus on their business - and nothing else.

Click to learn more about Rackspace Hosting.

Harmony at the Oslo Meeting

What had been scheduled to be a regular meetup of the divided TC39 in Oslo at the end of July turned out to be a massive turning point for the committee and—we have good reason to hope—the JavaScript language itself.

The members of TC39 agreed that a divided committee was good for no one, and forged an agreement that would allow work to continue on a single, unified draft for the 4th Edition of ECMA-262, under the name “ECMAScript 3.1.” To reflect the historic settling of differences that this represented, the effort has been dubbed ECMAScript Harmony.

Under Harmony, each side of the debate has made a key concession:

  • The “ECMAScript 4.0″ group has conceded that packages, namespaces, and early binding are all features that are unsuitable for the Web. They have been permanently ruled out of being included in any future version of the ECMA-262 standard.
  • The “ECMAScript 3.1″ group has conceded that some of the features that were proposed for ECMAScript 4.0 do have merit, and these will be reworked for inclusion in a release to follow ECMAScript 3.1. That subsequent release is being called “ES-harmony”.

Moving forward, the committee anticipates being able to deliver a 4th Edition of ECMA-262 in the first half of 2009, with at least two real-world implementations (i.e. two of the four major browsers) in the wild. No new features will be added to this release that are not already present in at least three of the four major browsers (e.g. getters and setters will make it in).

The official announcement by Mozilla’s Brendan Eich can be read at Ajaxian, and the reactions from other JavaScript notables like John Resig, Douglas Crockford, Mike Chambers, and Alex Russell make worthwhile reading (with varying levels of technical detail). Also, Episode 2 of the newly-launched Open Web Podcast brings a lot of these people together to discuss the change in direction.

What’s It All Mean?

Obscure dropped features aside, the fundamental point here is that TC39 has realized the same thing that the W3C was forced to realize about HTML last year: writing standards and hoping that the browsers will follow doesn’t work. No matter how good the W3C’s recommendation for XHTML2 looked on paper, it wasn’t going to force Microsoft to support it in Internet Explorer. With HTML 5, the W3C is letting the browsers try out new ideas, and is forging standards from the good stuff.

Similarly, the members of TC39 could add all the features in the world to ECMAScript 4.0, but the only way to find out if a feature works on the Web is to build it into a real-world browser first. Then you can decide if it should make it into the standard.

And now for the obvious question: is CSS next? I for one will be keeping a close eye on the W3C’s CSS Working Group in the weeks ahead.

Leave a comment on the blog and let me know what you think:

kev JavaScript & CSS Blog: Stylish Scripting
by Kevin YankECMAScript Harmony: New Life for JavaScript

Top

Morae: Usability Testing for Software & Web Sites.

An all-digital tool that enables you to:

  • Quickly identify website and software design problems
  • Affordably conduct user testing. Quickly calculate metrics & graph results.
  • Deliver professional results in a fraction of the time.

That’s all for this issue — thanks for reading! See you next week.

Andrew Tetlaw
techtimes@sitepoint.com
SitePoint Technical Editor

Top

Latest Release

The Ultimate HTML Reference

Book

Tell me more..

Free Book Samples

Simply JavaScript
Simply Rails 2
Build Your Own Database Driven Website Using PHP & MySQL, 3rd Ed.
The PHP Anthology, 2nd Ed.

New Technical Articles

A Designer’s Guide to HTML Email

Alex WalkerSo you’ve been given the task of creating an HTML email newsletter, but you’ve heard the rumors: rendering issues, image blocking, not to mention the email client discrepancies. Check out Alex’s guide to gain useful tips on templates, testing, and all the hazards that can befall the uninitiated.

Full Story…

 Techy Forum Threads

 More Techy Blog Entries

News & Trends

For the Best SEO, Google Says Think Text
4 comments
reCAPTCHA: Awesome Use of Wasted Time That Works
7 comments

Help Your Friends Out

People you care about can benefit from the wealth of information on new and maturing technologies available on the Internet. Help them learn how to do it by forwarding them this issue of the Tech Times!

Send this to a friend
Mailing Address:
48 Cambridge St, Collingwood, VIC, 3066 AU
Phone: +61 3 9090 8200
 

© Copyright 2008 SitePoint. All rights reserved.

 

If you liked my post, feel free to subscribe to my rss feeds

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*