Skip to content

Instantly share code, notes, and snippets.

@meltingice
Created March 18, 2011 01:43
Show Gist options
  • Save meltingice/875484 to your computer and use it in GitHub Desktop.
Save meltingice/875484 to your computer and use it in GitHub Desktop.
What I wish JS could do.
function render() {
var pixels = get_pixels();
new Thread(function () {
for (i = 0, len = pixels.length; i < len; i +=4) {
// holy shared process memory batman!
// manipulate pixels here
}
finished();
});
}
function finished() {
// done!
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment