The upcoming changes for flat float arrays will also affect the Complex
module in the standard library, since records consisting solely of floats have an unboxed representation right now.
Is there already a plan for the transition? Will complex numbers remain records or will they be switched to the then considerably more efficient floatarray
representation? The latter would presumably break code that uses record access, e.g. x.re, x.im
, but I doubt this would be a terrible problem. Complex numbers are rather rarely used in practice, and any code base using this form of access can presumably be rewritten automatically with little effort.