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

[move compiler] add named blocks #14577

Merged
merged 6 commits into from
Nov 29, 2023
Merged

[move compiler] add named blocks #14577

merged 6 commits into from
Nov 29, 2023

Conversation

cgswords
Copy link
Contributor

Description

This adds named blocks for loop, while, and normal block positions.

Test Plan

A number of new tests.


If your changes are not user-facing and not a breaking change, you can skip the following section. Otherwise, please indicate what changed, and then add to the Release Notes section as highlighted during the release process.

Type of Change (Check all that apply)

  • protocol change
  • user-visible impact
  • breaking change for a client SDKs
  • breaking change for FNs (FN binary must upgrade)
  • breaking change for validators or node operators (must upgrade binaries)
  • breaking change for on-chain data layout
  • necessitate either a data wipe or data migration

Release notes

Copy link

vercel bot commented Oct 31, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
mysten-ui ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 29, 2023 0:13am
sui-core ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 29, 2023 0:13am
sui-typescript-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 29, 2023 0:13am
3 Ignored Deployments
Name Status Preview Comments Updated (UTC)
explorer ⬜️ Ignored (Inspect) Visit Preview Nov 29, 2023 0:13am
multisig-toolkit ⬜️ Ignored (Inspect) Visit Preview Nov 29, 2023 0:13am
sui-kiosk ⬜️ Ignored (Inspect) Visit Preview Nov 29, 2023 0:13am

(255 - 255 == 0) ||
(255 & 255 == 255) &&
(255 | 255 == 255) ||
(255 ^ 255 == 0) &&
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I had to drop just a few of these to get the compiler through name resolution due to the context size increase. 😞

Copy link
Contributor

Choose a reason for hiding this comment

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

Can we somehow track getting back to fix this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I added a FIXME. If you'd like me to add an issue as well, I will. Since it's a fairly-invasive rewrite, I'd rather postpone it for another diff.

Copy link
Contributor

@tnowacki tnowacki left a comment

Choose a reason for hiding this comment

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

I haven't looked through tests extensively yet (though I think we will need some more of them :)) I just wanted to get you some feedback ASAP, sorry for the delay.
Overall,l ooks great! Thanks for turning this out so quickly. Mostly some nits/small concerns. The blocking ones being:

  • I think used_labels is unused?
  • We need a better error message for incorrect label usage

Not blocking but, I think we should gate this behind 2024? ... Maybe? ... maybe not I don't know anymore lol

Base automatically changed from compiler-dev to main November 22, 2023 00:12
@cgswords cgswords force-pushed the cgswords/named_blocks branch from be679c3 to 30b6e71 Compare November 22, 2023 20:08
@vercel vercel bot temporarily deployed to Preview – mysten-ui November 22, 2023 20:09 Inactive
@cgswords cgswords force-pushed the cgswords/named_blocks branch from 9b8170b to 29e383a Compare November 27, 2023 23:58
@vercel vercel bot temporarily deployed to Preview – mysten-ui November 27, 2023 23:59 Inactive
@cgswords cgswords force-pushed the cgswords/named_blocks branch from 29e383a to 315c0e8 Compare November 28, 2023 19:43
@vercel vercel bot temporarily deployed to Preview – mysten-ui November 28, 2023 19:44 Inactive
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