Re:Construct-JS – A library for creating byte level data str...
by jonstewart on Monday March 18, 2019 @08:32AM
(#19420503)
Parse binary structs... with a language that only has doubles.
[ Parent
| on HN ]
Re:Construct-JS – A library for creating byte level data str...
by FrancisStokes on Monday March 18, 2019 @10:12AM
(#19421104)
I'm guessing you haven't seen the new data types?
- https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe... - https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe... - https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe... - https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe... - https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe... - https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe... - https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe... - https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe... - https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe... - https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...
Re:Construct-JS – A library for creating byte level data str...
by gridlockd on Monday March 18, 2019 @12:23PM
(#19422464)
Nowadays Javascript supports packed binary data natively. The only things that Javascript lacks is a 64-bit integer type. All other numeric types can safely be represented in a double.
JITs can also use integer types internally when possible (small integer optimization).