module Int8 = struct type t = int end;
module Int16 = struct type t = int end;
...
But I’m wondering if there is a standard / idiomatic set of definitions.
The XY problem: I’m using this not for computation, but for serialization, where I want the type to specify how many bytes we are writing to, and this needs to be consistent across multiple different programming languages.
I wrote a PR to add support for small signed integers but it hasn’t gotten any comments/review yet. I’ve pinned the branch in my private projects without issue though, so maybe that would be of interest.
Is there any differences in performance among the integer libraries mentioned on this thread? I’ve used stdint but im wondering if there is a more performant alternative.