# Julia 1.14: new \`sizeof\` breaks packages

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

</div>

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](https://github.com/JuliaLang/julia/issues/61361) 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

```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 opened 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?

---

<div class="post-metadata">

**Author:** ![hhaensel](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/hhaensel/32/1207_2.png) [@hhaensel](https://discourse.julialang.org/u/hhaensel)\
**Post date:** [December 1, 2026, 7:05am UTC](https://discourse.julialang.org/t/julia-1-14-new-sizeof-breaks-packages/143360/2 "2026-12-01T07:05:07Z")

</div>

There’s an open issue [1.14 regression: `sizeof` returns 8 for `Type{T}` types · Issue #64767 · JuliaLang/julia · GitHub](https://github.com/JuliaLang/julia/issues/64767).  
It’s not exactly your issue, though.
