# Julia 1.14: new \`sizeof\` can break packages

**URL:** <https://discourse.julialang.org/t/julia-1-14-new-sizeof-can-break-packages/143360>\
**Category:** General Usage\
**Created:** [November 30, 2026, 10:41pm UTC](https://discourse.julialang.org/t/julia-1-14-new-sizeof-can-break-packages/143360 "2026-11-30T22:41:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![matthias314](https://avatars.discourse-cdn.com/v4/letter/m/a88e4f/32.png) [@matthias314](https://discourse.julialang.org/u/matthias314)\
**Post date:** [November 30, 2026, 10:41pm UTC](https://discourse.julialang.org/t/julia-1-14-new-sizeof-can-break-packages/143360/1 "2026-11-30T22:41:27Z")

</div>

I’m excited about the upcoming release. I’ve seen 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](https://github.com/JuliaLang/julia/issues/61361) of `sizeof` can break packages. Fixing this for my own packages doesn’t seem difficult (for types allowed in Julia 1.13): I can simply define a package-local function

```julia-auto
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-auto
julia> using BitIntegers

julia> @define_integers 24;

julia> Int32(1) % Int24
ERROR: bitcast: argument bitsize does not match bitsize of target type

```

I’ve open an [issue](https://github.com/rfourquet/BitIntegers.jl/issues/61) 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?
