Post AoVjbnReaVsf5WZj3A by minoru@functional.cafe
(DIR) More posts by minoru@functional.cafe
(DIR) Post #AoVjbnReaVsf5WZj3A by minoru@functional.cafe
2024-11-25T19:06:34Z
0 likes, 0 repeats
Why is Haskell GHC.Prim.Char# a 31-bit character? Why 31 and not 32?I've searched the Internet but couldn't find any rationale for this. GHC source didn't enlighten me either. I couldn't even find where the size of Char# is defined, and the only relevant change seems to be an implementation of this proposal. Granted, it was my first time reading GHC code, so I might have missed some file from which sizes are code-generated.#Haskell #GHC
(DIR) Post #AoVjboGLY2QjckID44 by icon_of_computational_sin@mstdn.starnix.network
2024-11-28T19:14:54Z
0 likes, 0 repeats
@minoru so that you could group them into SDNVs.Just kidding. But this idea is totally rad and that's one reason to use (n-1) but values inside arrays.