top | item 43258305

(no title)

lapinot | 1 year ago

https://ocaml.org/manual/5.3/api/Int64.html

discuss

order

MrMcCall|1 year ago

I see, now. From that doc:

> Performance notice: values of type int64 occupy more memory space than values of type int

I just couldn't even imagine that a 64-bit int would require MORE memory than an int that is one bit less (or 33 bits less if on a 32-bit architecture).

It really makes absolutely no sense discussing OCaml as a possible systems-level programming language.

MrMcCall|1 year ago

Sorry, I should have said that an Int64 shouldn't take more memory on a 64-bit system where the default int is 63 bits, because of the "reserved bit".

It was early this morning.