News for hackers. Stuff that matters.
Re:WebGPU Shading Language by szatkus on Tuesday March 10, 2020 @11:31AM (#22536287)
Number type in JS is fp64 since forever (at least the interface, usually it's optimized to int32 by an engine, but if you use decimals you can be sure you have fp64 under the hood) and BigInt[0] is supported in almost all modern browsers.

[0] https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...

Re:WebGPU Shading Language by hajile on Wednesday March 11, 2020 @09:20AM (#22545563)
Small correction, but it's optimized to int31 by all the current engines with the last bit used for tagging.

BigInt is now available on Firefox and Chrome (with JSC/Safari support in the works). That gives arbitrarily-large integers (with the JIT deciding the best size.