Bluish Coder

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


Asynchronous Javascript

Ajaxian has a post about a new abstraction based around the recent Google Gears API for executing Javascript asynchronously.

What the Google Gears API provides is the ability to execute Javascript in a different browser thread, and to communicate with those threads via simple message passing. The new abstraction referenced in the Ajaxian post expands on this to allow registering handlers that can receive named messages.

This approach seems very similar to Erlang's lightweight processes and the ability to send messages to and from them. I think that having this type of functionality in Javascript would be very useful but expanding it to be more like Erlang's or Termite's API would be nicer. I did some experiments with this previously using Narrative Javascript.


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