I’m a jQuery enthusiast. Maybe even an evangelist. So I decided to make workers easy for my fellow jQuery developers - and thus was born the jQuery.Hive. Inititally it began it’s life as PollenJS a jQuery-looking library of functions that were light, useful and thread-safe. This was before the WebKit implementation existed so everything was written with the notion that it would only exist in the Worker. The MOST IMPORTANT goals were and still are:
Not long after I began developing PollenJS, Safari WebKit added Worker support and shortly thereafter Chrome WebKit caught up. Of course then PollenJS was officially broken - it normalized messages into objects to add support for identity from one worker to the other… WebKit sent errant empty messages.
This is when the Hive was born.
… Which was awesome, because it gave me the opportunity to make the main window as easy to manage development with workers as PollenJS had become within the worker. The basic goals were:
Let’s look at the data filter example from above, but in jQuery.Hive/Pollen JS syntax…
It’s important to remember that including ‘jquery.hive.pollen.js’ is REQUIRED, or else you will not get compatibility across implementations. And plus, it’s got rad stuff in it.
Considering it’s youth as a project, the API is subject to change.
Edit In the time since this was originally published, Chrome, Safari & Opera now support complex JSON messages.
This entry was posted by (@rwaldron) on May 18, 2010 in Chromium, Firefox, HTML5, JavaScript, jQuery, jQuery Plugins, jQuery.Hive, PollenJS and Web Workers.
Comments