Skip to content

Fix deserialization of functions#16

Merged
denialhaag merged 2 commits into
mainfrom
fix-function-deserialization
Apr 15, 2026
Merged

Fix deserialization of functions#16
denialhaag merged 2 commits into
mainfrom
fix-function-deserialization

Conversation

@denialhaag
Copy link
Copy Markdown
Collaborator

@denialhaag denialhaag commented Apr 15, 2026

This PR fixes the deserialization of functions by no longer relying on the index of the function name, as required by the spec: https://github.com/unitaryfoundation/jeff/blob/8bee28ef974b928f00465f316425d22548c0e7e8/impl/capnp/jeff.capnp#L1497-L1498

I came across this bug while trying to create the issue promised in #14 (comment). While the Python builder does like to mix up the order of the strings, it does not create faulty jeff modules.

@denialhaag denialhaag self-assigned this Apr 15, 2026
@denialhaag denialhaag requested review from burgholzer and dime10 April 15, 2026 17:56
Copy link
Copy Markdown
Collaborator

@dime10 dime10 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @denialhaag !

Comment thread lib/Translation/Deserialize.cpp
@denialhaag denialhaag force-pushed the fix-function-deserialization branch from c6dfe71 to 4016233 Compare April 15, 2026 21:49
Copy link
Copy Markdown
Collaborator

@burgholzer burgholzer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍🏼

@denialhaag denialhaag merged commit 439f076 into main Apr 15, 2026
6 checks passed
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.

3 participants