Re:Should I Use Signed or Unsigned Ints? (Part 2)
by cpeterso on Tuesday September 01, 2015 @11:57PM
(#10157349)
A similar story about OCaml's garbage collector from https://twitter.com/mcclure111/status/637758978093547521:
[ Parent
| on HN ]
Re:Should I Use Signed or Unsigned Ints? (Part 2)
by danieldk on Wednesday September 02, 2015 @03:06AM
(#10157810)
OCaml uses a tag bit to distinguish ints from pointers, so (unboxed) ints are only 31 bits:
https://realworldocaml.org/v1/en/html/memory-representation-...
Floating point numbers are normally boxed (except for float arrays, float-only records, and some cases of local use).