Posts about technical partnerships
Categories
- Jun 18 2010
Find the closest Power of 2 with JavaScript
One of the things I have been working on over the last couple of days, is a convenient set of functions to manipulate a Processing.js Canvas for use in the CubicVR WebGL Engine. You may already know that a OpenGL performs best with textures with 2^n (power of 2) dimensions. To minimize CPU load, We […]
Continue ReadingFind the closest Power of 2 with JavaScript- Tagged in:
- performance,
- tools and workflow
- Jun 18 2010
Javascript Web Workers: Opera 10.6 Beta Supports SharedWorkers
While poking around the Web Worker API in the latest Opera Beta Release, I discovered that they had also implemented support for Shared Web Workers. If you’re not familiar with Shared Web Workers, have a look here. The basic premise is that a Shared Worker can have multiple connections made to one Worker. Paraphrased from […]
Continue ReadingJavascript Web Workers: Opera 10.6 Beta Supports SharedWorkers- Tagged in:
- performance,
- tools and workflow
- Jun 17 2010
Processing Pixel Data with Web Workers…
One of the questions that came up in the Processing track was: “Can you pass the image data from a Canvas to a Web-Worker for processing?” My assumption was “yes” as the specs declare you can paste any complex object to and from workers so long as you’re not trying to pass a DOM element. […]
Continue ReadingProcessing Pixel Data with Web Workers…- Tagged in:
- design,
- performance
- Jun 17 2010
Javascript Web Workers: Opera 10.60 Beta Supports Complex Messages
Opera 10.60 Beta was announced this week and along with the list of new HTML5 features it’s supporting was Web Workers. Of course I was excited to run it through the renderer/worker test suite I set up for my previous posts about Safari 5 and Chrome 5. The results were pleasing, the first Opera release […]
Continue ReadingJavascript Web Workers: Opera 10.60 Beta Supports Complex Messages- Tagged in:
- performance,
- tools and workflow
- Jun 07 2010
Javascript Web Workers: Safari 5 Now Supports Complex Messages
Following the announcement of Safari 5 [ 5.0 (7533.16) ] today, I did some due diligence and ran it through the json-object, array, boolean and string Worker message cases that I had produced for testing against Chrome 5. The results are in and thankfully consistent – so not much to report here accept that – […]
Continue ReadingJavascript Web Workers: Safari 5 Now Supports Complex Messages- Tagged in:
- performance,
- tools and workflow
- Jun 07 2010
JavaScript EventSource: Now available in Firefox!
…Not natively… but this will work in the meantime: Git it here firefox-event-source.js ;(function (w) { if ( !w[‘EventSource’] ) { // parseUri 1.2.2 // (c) Steven Levithan <stevenlevithan.com> // MIT License var parseUri = function(str) { var o = { key: [‘source’,’protocol’,’authority’,’userInfo’,’user’,’password’,’host’,’port’,’relative’,’path’,’directory’,’file’,’query’,’anchor’], q: { name: ‘queryKey’, parser: /(?:^|&)([^&=]*)=?([^&]*)/g }, parser: { strict: /^(?:([^:\/?#]+):)?(?:\/\/((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?))?((((?:[^?#\/]*\/)*)([^?#]*))(?:\?([^#]*))?(?:#(.*))?)/ } […]
Continue ReadingJavaScript EventSource: Now available in Firefox!- Tagged in:
- performance,
- tools and workflow
- Jun 07 2010
JavaScript Web Workers: Motörmouth is a Twitter Client
About a month ago, I released jQuery.Hive/Pollen, a plugin + library for developing jQuery applications that use Web Workers. And as per usual, the number one question is “what can I do with workers?”. With that in mind, I decided that at least every month (and hopefully even more frequently then that) I would produce […]
Continue ReadingJavaScript Web Workers: Motörmouth is a Twitter Client- Tagged in:
- performance,
- tools and workflow
- May 26 2010
Chrome 6: Server Push Events with new EventSource()
This is mighty awesome. I’ve put together some test demos, to run them you’ll first need to get this Chromium build: 47357 WIN32 47357 MAC 47357 32-Bit Linux 47357 32-Bit Linux Then download these: https://gist.github.com/415116 client.html <script src=”event-source.js”></script>; event-source.js document.addEventListener(‘DOMContentLoaded’, function () { var eventSrc = new EventSource(‘events.php’); eventSrc.addEventListener(‘open’, function (event) { console.log(event.type); }); eventSrc.addEventListener(‘message’, […]
Continue ReadingChrome 6: Server Push Events with new EventSource()- Tagged in:
- performance,
- tools and workflow
- May 26 2010
Javascript Web Workers: Chrome 5 Now Supports Complex Messages
After updating to Chrome 5 (specifically 5.0.375.55) last night I immediately ran some tests to see if the Web Worker API had been updated to support postMessage() arguments of types other than string. Turns out, it had. Here’s the test, plus the results: https://gist.github.com/414901 renderer.html <script src=”renderer.js”></script> renderer.js var worker = new Worker(‘worker.js’); worker.addEventListener(‘message’, function […]
Continue ReadingJavascript Web Workers: Chrome 5 Now Supports Complex Messages- Tagged in:
- performance,
- tools and workflow
- May 18 2010
Javascript Web Workers: From Basics to jQuery.Hive, Part III
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 […]
Continue ReadingJavascript Web Workers: From Basics to jQuery.Hive, Part III