Skip to content

Conversation

@pablogsal
Copy link
Member

@pablogsal pablogsal commented Dec 23, 2025

Add end_lineno, column, end_column, and opcode fields to frame entries.
Uses delta encoding for end positions to minimize file size.
reader, writer, tests, and documentation.

@pablogsal
Copy link
Member Author

pablogsal commented Dec 23, 2025

@lkollar smaller PR here to add opcode and location support to the file format. Most of the bulk is tests + docs update.

…tion and opcode

Add end_lineno, column, end_column, and opcode fields to frame entries.
Uses delta encoding for end positions to minimize file size.
reader, writer, tests, and documentation.
@pablogsal pablogsal force-pushed the tachyon-binary-file-refux branch from 97a86dd to bb4129f Compare December 23, 2025 01:42
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Copy link
Contributor

@lkollar lkollar left a comment

Choose a reason for hiding this comment

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

This looks great, just a couple of minor things.

@pablogsal
Copy link
Member Author

@lkollar fixed

@pablogsal pablogsal requested a review from lkollar December 24, 2025 14:39
f"Thread ({interp_id}, {thread_id}), sample {i}, "
f"frame {j}: opcode mismatch "
f"(expected {exp_frame['opcode']}, got {act_frame['opcode']})",
)
Copy link
Member

Choose a reason for hiding this comment

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

This is a long and duplicate list, that's not very dry, I wrote pablogsal#119

Copy link
Member Author

Choose a reason for hiding this comment

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

Thanks a lot @StanFromIreland !

Copy link
Member

@StanFromIreland StanFromIreland left a comment

Choose a reason for hiding this comment

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

LGTM

@pablogsal pablogsal merged commit 7c44f37 into python:main Dec 24, 2025
46 checks passed
@pablogsal pablogsal deleted the tachyon-binary-file-refux branch December 24, 2025 16:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants