Changes to ECMAScript, Part 2: Harmony Highlights - Proxies and Traits

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
5,938
Loading...
Alert icon
Sign in or sign up now!
Alert icon
There is no Interactive Transcript.

Uploaded by on Apr 27, 2010

Google Tech Talk
April 20, 2010

ABSTRACT

Presented by Tom Van Cutsem.

We discuss two proposed language features for inclusion in ECMAScript-Harmony. The first, dynamic proxies, enables Javascript programmers to create proxy objects that can intercept property access, assignment, enumeration, etc. It is a powerful metaprogramming mechanism that provides a standard API for creating generic wrappers for transparent access control, implementing legacy API adaptors, profilers, lazy initialization, etc.

The second part of the talk introduces a traits library for ECMAScript 5. Traits are a more robust alternative to multiple inheritance or mixin-based composition. Based on ECMAScript 5's new "property descriptor" API, we built a portable lightweight library that supports trait-based object composition. We discuss the limitations of introducing traits using a library approach and highlight the benefits of direct support for traits in ECMAScript-Harmony.

Talk slides are available here: http://es-lab.googlecode.com/files/harmony_highlights_techtalk.pdf

Part 1 of this talk series is available here: http://www.youtube.com/watch?v=Kq4FpMe6cRs

Tom Van Cutsem is a post-doc researcher at the University of Brussels (VUB) in Belgium. His research focus is on programming language design and implementation, with an emphasis on metaprogramming, concurrent and distributed programming. He is co-designer of the distributed scripting language AmbientTalk. Tom is currently on a six-month Visiting Faculty appointment at Google in MTV, cooperating with Mark Miller on Ecmascript-Harmony, the next standard edition of the Javascript programming language.

Category:

Science & Technology

Tags:

License:

Standard YouTube License

Link to this comment:

Share to:

Top Comments

  • Great Talk! Clear and to the point.

    The interception mechanisms provided via proxies seem quite powerful - they should fill an important metaprogramming gap within javascript.

    Thanks for all your hard work Tom and Mark.

  • @lordmetroid I think it's the one titled Changes to JavaScript, Part 1: EcmaScript 5 from a while ago. Not 100% sure but will watch both anyways.

see all

All Comments (5)

Sign In or Sign Up now to post a comment!
  • Russian Lady needs to meet you ** leefoxnow.info **

  • What is the first part?

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more