Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prose for basic struct/array instructions #393

Merged
merged 4 commits into from
Jul 6, 2023
Merged

Prose for basic struct/array instructions #393

merged 4 commits into from
Jul 6, 2023

Conversation

rossberg
Copy link
Member

@rossberg rossberg commented Jul 4, 2023

Leaving out type unrolling for now, since that's defined in #377.

@rossberg rossberg requested a review from tlively July 4, 2023 13:41
@rossberg rossberg mentioned this pull request Jun 27, 2023
53 tasks
Copy link
Member

@tlively tlively left a comment

Choose a reason for hiding this comment

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

LGTM % comments

document/core/exec/instructions.rst Outdated Show resolved Hide resolved
document/core/exec/instructions.rst Outdated Show resolved Hide resolved
document/core/exec/instructions.rst Outdated Show resolved Hide resolved
document/core/exec/instructions.rst Outdated Show resolved Hide resolved

6. Pop the :math:`n` values :math:`\val^\ast` from the stack.

8. For every value :math:`\val_i` in :math:`\val^\ast`:
Copy link
Member

Choose a reason for hiding this comment

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

Skipped number 7.

Copy link
Member Author

Choose a reason for hiding this comment

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

Fixed.

document/core/exec/instructions.rst Outdated Show resolved Hide resolved

17. For each consecutive subsequence :math:`{b'}^n` of :math:`b^\ast`:

a. Let :math:`k_i` be the integer for which :math:`\bytes_{\X{ft}}(k_i)` is :math:`{b'}^n`.
Copy link
Member

Choose a reason for hiding this comment

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

Does this work even if t is a floating point type?

Copy link
Member Author

Choose a reason for hiding this comment

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

Changed to "constant"; also adjusted metavariable to c.


a. Trap.

12. Let :math:`\fieldval` be the :ref:`field value <syntax-fieldval>` :math:`S.\SARRAYS[a].\AIFIELDS[i]`.
Copy link
Member

Choose a reason for hiding this comment

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

Count should resume at 14.

Copy link
Member Author

Choose a reason for hiding this comment

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

Fixed.

document/core/exec/instructions.rst Outdated Show resolved Hide resolved
rossberg and others added 2 commits July 6, 2023 08:28
Co-authored-by: Thomas Lively <tlively@google.com>
Copy link
Member Author

@rossberg rossberg left a comment

Choose a reason for hiding this comment

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

Thanks for the thorough review!


6. Pop the :math:`n` values :math:`\val^\ast` from the stack.

8. For every value :math:`\val_i` in :math:`\val^\ast`:
Copy link
Member Author

Choose a reason for hiding this comment

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

Fixed.


17. For each consecutive subsequence :math:`{b'}^n` of :math:`b^\ast`:

a. Let :math:`k_i` be the integer for which :math:`\bytes_{\X{ft}}(k_i)` is :math:`{b'}^n`.
Copy link
Member Author

Choose a reason for hiding this comment

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

Changed to "constant"; also adjusted metavariable to c.


a. Trap.

12. Let :math:`\fieldval` be the :ref:`field value <syntax-fieldval>` :math:`S.\SARRAYS[a].\AIFIELDS[i]`.
Copy link
Member Author

Choose a reason for hiding this comment

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

Fixed.

@rossberg rossberg merged commit 6a8d4f1 into main Jul 6, 2023
@rossberg rossberg deleted the spec.prose branch July 6, 2023 07:37
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