Use Cases For JavaScript Bitwise Operators

This article by Glad Chinda came up while I was doing some research into ECMAScript numbers and bitwise operations for Potoo 3.

It's quite helpful so I'm posting it here lest I forget it. Potoo 3 will be using 32 bit numbers for its instruction set instead of classes.

How is this possible you may ask?

Bitwise operations convert regular Double ECMAScript numbers into 32 bit values according to the spec.

Interesting use cases for JavaScript bitwise operators
Show Comments