chore: Remove Value::Array in favor of Instruction::MakeArray#2494
Closed
chore: Remove Value::Array in favor of Instruction::MakeArray#2494
Value::Array in favor of Instruction::MakeArray#2494Conversation
Co-authored-by: Maxim Vezenov <mvezenov@gmail.com>
Contributor
Author
|
Closing this PR, I don't think it's a large code improvement |
Contributor
Author
|
Reopening this, after some second thought I think this may still be valuable. |
b2b10fc to
76b77f8
Compare
added 2 commits
September 6, 2023 11:10
…ing into an empty new block
jfecher
commented
Sep 6, 2023
Comment on lines
+1248
to
+1251
| let expected_opcodes = vec![ | ||
| Opcode::Arithmetic(&Expression::one() - &Expression::from(Witness(1))), | ||
| Opcode::MemoryInit { block_id: BlockId(0), init: vec![Witness(1)] }, | ||
| Opcode::Arithmetic(&Expression::one() - &Expression::from(Witness(2))), |
Contributor
Author
There was a problem hiding this comment.
I'm unsure why this memory init is needed now. Did we need it before as well? Neither array is used dynamically.
Contributor
Author
|
Still one last bug in |
5 tasks
Contributor
Author
|
Closing this PR, there are too many confilcts to update it. I think the idea of a MakeArray instruction is still a good one and we should revisit this eventually. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Problem*
Resolves #1733
Summary*
This PR is an experiment to see if removing
Value::Arraysimplifies the code at all. Since it is the only Value that may contain other ValueIds, removing it means we no longer have to specially handle and recur on Value::Array when working on ValueIds.So far though, preliminary results of this PR are that there are no large gains made from removing it.
Documentation
This PR requires documentation updates when merged.
Additional Context
PR Checklist*
cargo fmton default settings.