News for hackers. Stuff that matters.
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:

  So the GC stats package in #OCaml has a record of how many words have been
  allocated since startup and it's a float

  it has been explained to me OCaml GC recording bytes in floats is because
  float can store up to 2^52 integer but int only goes up to 2^30.
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).