tc39 / proposal-typedarray-stride

Proposal to add a `stride` parameter to TypedArrays
https://tc39.es/proposal-typedarray-stride/
MIT License
24 stars 3 forks source link

Disallow unaligned access and make stride a multiple of element size #2

Closed syg closed 4 years ago

syg commented 4 years ago

Losing alignment guarantees by construction is not worth the expressivity tradeoff IMO, especially given the interactions with SharedArrayBuffer and codegen.