Skip to content

[mypyc] Support i8, u16, u32 and u64 as vec item types - #22497

Merged
JukkaL merged 1 commit into
masterfrom
mypyc-uint-vec
Nov 16, 2026
Merged

JukkaL merged 1 commit into
masterfrom
mypyc-uint-vec

Conversation

@JukkaL

@JukkaL JukkaL commented Nov 16, 2026

Copy link
Copy Markdown
Collaborator

Add specialized vec types with packed item buffers for the new native integer types, similar to vec[i16] and vec[u8]. Previously mypyc crashed when compiling code that used these as vec item types, and they failed at runtime in interpreted code.

Append the new item type APIs to the end of the capsule struct, and bump the librt.vecs API version to 2.

librt.vecs now requires mypy-extensions 1.2.0 or newer, since older versions don't define the new native integer types.

Work on mypyc/mypyc#1226.

Add specialized vec types with packed item buffers for the new native
integer types, similar to vec[i16] and vec[u8]. Previously mypyc
crashed when compiling code that used these as vec item types, and
they failed at runtime in interpreted code.

Append the new item type APIs to the end of the capsule struct,
and bump the librt.vecs API version to 2.

librt.vecs now requires mypy-extensions 1.2.0 or newer, since older
versions don't define the new native integer types.
@JukkaL
JukkaL merged commit d1bad9f into master Nov 16, 2026
19 checks passed
@JukkaL
JukkaL deleted the mypyc-uint-vec branch November 16, 2026 13:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants