JavaScript upgrade to feature modularization
The next major upgrade to the JavaScript platform, tentatively named ECMAScript 6, is set to feature modularization along with other improvements aimed at providing developers with more convenience and security.
Detailed this week in a presentation at the HTML5 Dev Conf event in San Francisco, the ECMAScript upgrade is being eyed for a 2013 release, stated presenter David Herman, a senior researcher at Mozilla Research who has participated in the development of the specification at ECMA International. Focusing on JavaScript at an HTML5 technical conference makes perfect sense, Herman explained. “[The two] are pretty much impossible to separate. HTML5 is really about the new APIs and abilities of the Web platform and JavaScript is the language of the Web platform, so you cannot use HTML5 without JavaScript and JavaScript is useless without the Web APIs, so the two need each other.”
[ InfoWorld columnist recently pondered JavaScript in "The Great JavaScript debate: Improve it or kill it?" | For more on software development, subscribe to InfoWorld's Developer World newsletter. ]
Modularization enables reuse of JavaScript code so that developers can share what they have written for reuse in other applications. “I think it’s safe to state that the module system is the most important feature in the next version of JavaScript,” Herman said. “Modules make it possible for people to share code.”
The road map for JavaScript improvements is “pretty exciting,” stated developer Ishika Paul, senior software engineer at ShareThis.com. Paul lauded improvements such as modularization, and she links JavaScript’s evolution to HTML5 and the new generation of the Web.
Also eyed for version 6 is binary data support, which enables such activities as reading a binary file or binary network protocol. “You could do things like read the contents of a PDF file” without being forced to represent items as strings, stated Herman. Binary data abilities are useful in data-intensive applications and can provide memory and possibly time savings, he added.
Private key abilities in the ECMAScript upgrade can enhance security for developers, who will be able to hide information to prevent malicious or unintentional intrusion into parts of a program, stated Herman. “It’s a basic engineering construct that you see in most programming languages, and JavaScript really doesn’t have much for doing that.”
A new generators ability in version 6 will make it easier to express a sequence of events in Web programs. Generators boost asynchronous programs, Herman said. Another new capability, string interpolation, will enable variables to be embedded inside a string. Adding a sanitizer to a string prevents the injection of malicious code. ECMAScript 6 will gain additional programming conveniences, such as syntax improvements, as well.
ECMA is considering including classes in ECMAScript at some point, which would provide engineering benefits for structuring a program. Additionally, a proxies ability is being eyed for a future ECMAScript implementation that would let developers “play with the underlying semantics of JavaScript objects,” Herman said. This can be useful for frameworks experimenting with different styles of software engineering or re-implementing existing Web APIs such as DOM (Document Object Model). Mozilla’s dom.js project re-implements the DOM library in JavaScript instead of C++, using proxies, stated Herman. “There could be real performance benefits.”
New features of JavaScript can be added via a transpiler to browsers that do not officially support them. Mozilla has a project called Narcissus that could feature a transpiler but does not yet do so.
This story, “JavaScript upgrade to feature modularization,” was originally published at InfoWorld.com. Follow the latest developments in programming at InfoWorld.com. For the latest developments in business technology news, follow InfoWorld.com on Twitter.
Paul Krill is an editor at massive at InfoWorld, focusing on coverage of application development (desktop and mobile) and core Web technologies such as HTML5, Java, and Flash.
source : www.infoworld.com
Other Post:
- MySQLers blended on Ellison's ownership
- SpaceX and Bigelow sign deal for inflatable space stations in orbit
- Lensbaby Creative Aperture Kit 2 is Now Available
- The forgotten, fat generation of Mac Portables
- vBulletin abandons bid for injunction against ex-devs
- Google Android Market leaves developers hoping for more improvement
- IBM carbon probe views electron movement in molecule
- Easing the pain of applications delivery
- Tegra 3-powered LG X3 impressive benchmark scores leak
- News on Huawei MediaPad
Details :
Submited at Wednesday, September 28th, 2011 at 6:00 pm on News by john
Comment RSS 2.0 - leave a comment - trackback
