Bluish Coder

Programming Languages, Martials Arts and Computers. The Weblog of Chris Double.


Javascript 1.7

It looks like Javascript 1.7 is getting some interesting new features. Brendan Eich did a presentation about what is being added and changed.

One that looks useful for the concurrency things I'm playing with is destructuring assignment:

var [a, b, c] = [ 'one', 'two', 'three' ];

This would make breaking apart messages received from processes a bit easier.

Interestingly Javascript 1.7 has Python style generators. These have been used in Python to build lightweight threads so it looks like it'll be possible to do the threading described in my previous posts natively one day.

This document describes how to build pre-release versions of the Javascript shell to play with this.


This site is accessable over tor as hidden service mh7mkfvezts5j6yu.onion, or Freenet using key: