5 ms·
63 bit integers are actually used in Ocaml which is then used to figure out if a value is a integer or a pointer https://blog.janestreet.com/what-is-gained-and
by erk__ 4y ago
63 bit integers are actually used in Ocaml which is then used to figure out if a value is a integer or a pointer
https://blog.janestreet.com/what-is-gained-and-lost-with-63-bit-integers/ https://blog.janestreet.com/what-is-gained-and-lost-with-63-...
- torstenvl 4y ago63-bit integers with undefined behavior for negatives do not exist in OCaml.
- erk__ 4y agoNo but the thing is that the 64th bit will cause undefined behavior if it is set incorrectly, it will cause a interger to be seen as a pointer instead of a number. That was the reason I thought about it.
- deleted 4y ago[deleted]
- matheusmoreira 4y agoAlso used in Ruby virtual machines and no doubt many others.