3 ms·
IPv6 and ZFS use 128-bit integers - I suspect this is why this primitive was added.
by bluepizza 2y ago
IPv6 and ZFS use 128-bit integers - I suspect this is why this primitive was added.
- stephencanon 2y ago(Author and implementer of the Swift Int128 proposal here) There's lots of one-off uses for 128-bit integers scattered around systems programming (and programming in general, I just happen to come from more of a systems background). Individually using a pair of 64b integers for each case is totally workable, but eventually life is easier if you just have an Int128 type. There's not really any one use case that drove their inclusion in the standard library, rather lots of times that we were saying "it would be kind of nice if we had this".
- easeout 2y agoThanks for your work!