Haha, yeah using TypedArrays to flat pack data structures is so much fun Instead of {a: 6, b: 7, prev: 2, next: 0} we could store it as a quad in a Uint16Array as [6,7,2,0]. Iterating over items is done in jumps of 4. Index at 1, and terminate at 0 and we have minimal GC! :D
-
-
How long before someone puts a struct-like EcmaScript proposal together that sits over TypedArray
-
hehehe, yeah was thinking about this — that'd be sick as; especially in the context of WASM / FFI. Heard something about it last in '15, not sure what the status is.
- 1 more reply
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.