Parallelization in JavaScript with Web Workers

Most of the time, JavaScript developers don't need to worry about CPU-intensive tasks. Every once in a while, though, some long-running, CPU-heavy work needs to be done client-side (for example, plotting an equation on a graph). If you try to do that sort of work in plain-old JavaScript client-side, it will block and cause the website to freeze up and become unresponsive until it's done, which isn't very good UX.

Read more →

Manipulating Canvas Pixel Data with JavaScript

The HTML5 canvas API exposes methods for drawing simple shapes on a canvas, and there are several libraries out there that provide high-level abstractions to make drawing complicated shapes easier (e.g. Fabric.js). Sometimes, though, you may need to manipulate your image's pixel data directly. This requires a low-level canvas API and isn't very intuitive - so in this post, I'll explain how it works.

Read more →

First Post!

Hello world! This is my first post, and I'd like to use it to introduce myself and say a little about why I'm starting this blog.

Read more →