I’m excited about the upcoming release. I’m seeing a 3x speedup for the test scripts of my packages, and sometimes even a 2x speedup for compiled code. There is one problem, however, that bothers me:
The new semantics of sizeof can break packages. Fixing this for my own packages doesn’t seem difficult (for primitive types allowed in Julia 1.13): I can simply define a package-local function
sizeof(::Type{T}) where T = Core.bitsizeof(T) ÷ 8
that shadows the one from Base.
However, also packages I depend on can break. Specifically, BitIntegers.jl doesn’t fully work with Julia 1.14:
julia> using BitIntegers
julia> @define_integers 24;
julia> Int32(1) % Int24
ERROR: bitcast: argument bitsize does not match bitsize of target type
I’ve opened an issue a month ago. The maintainer hasn’t had any GitHub activity for several months, so I’m not sure that this will be fixed before Julia 1.14 is released. (I’ve also messaged the maintainer here on Discourse, without success.)
BitIntegers.jl is not just any package. According to JuliaHub, it has 49k downloads/month, and 132 other packages depend on it. How to deal with this?