Extending JavaScript Maps (or other built-in objects)

Sunday, April 27, 2014

Finally another technical post, this one is about my adventures in attempting to extend the built-in Map object in JavaScript to extend the functionality. As background, there are two reasons we’d want this:

  1. In the chat backend we currently use JavaScript objects ({}) as hashes/maps to keep track of …

read more →

JavaScript typed arrays pain

Wednesday, November 28, 2012

If you’ve ever tried to deal with binary data in JavaScript you know it isn’t much fun and you usually resort to using strings lots of charCodeAt and related functions.  Typed arrays are supposed to solve this though!  The typed array API consists of creating a buffer of …

read more →