News for hackers. Stuff that matters.
Re:Binary in JavaScript by codecurve on Wednesday July 29, 2015 @05:21AM (#9967316)
That's good to hear, I wasn't aware of Typed Objects. I guess the library linked at the end of the post is basically a very non-specific polyfill already? Well, using it like that is one way to get around bitwise littering.
Re:Binary in JavaScript by thomasfoster96 on Wednesday July 29, 2015 @10:18AM (#9968754)
The library at the bottom isn't anywhere near a typed objects polyfill - it just packs data into small spaces. Typed Objevts would let you have objects where properties are of a static type (int8, Boolean, string) and they are stored using Array Buffers.
Re:Binary in JavaScript by codecurve on Wednesday July 29, 2015 @10:30AM (#9968849)
Sure, the underlying storage mechanisms are different and it doesn't support as many types, but I didn't say it was a good polyfill.