This repository has been archived by the owner on Apr 9, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 16
feat(acvm): Directive for sorting networks #77
Merged
Merged
Conversation
This file contains 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
guipublic
changed the title
Directive for sorting networks
feat(acvm) Directive for sorting networks
Feb 6, 2023
kevaundray
changed the title
feat(acvm) Directive for sorting networks
feat(acvm): Directive for sorting networks
Feb 6, 2023
Can you elaborate on why this is needed? If I'm reading it right, I'm not sure why we'd need a directive for implementing sorting. Is it an optimization or something else? |
It is required for implementing dynamic arrays efficiently, so yes it is some kind of optimisation. You can have a look at noir PR #754 which uses it to sort arrays. |
kevaundray
reviewed
Feb 7, 2023
kevaundray
reviewed
Feb 7, 2023
kevaundray
approved these changes
Feb 7, 2023
TomAFrench
added a commit
to TomAFrench/acvm
that referenced
this pull request
Feb 10, 2023
* master: feat: Update Arkworks' dependencies on `acir_field` (noir-lang#69) add tests for `from_hex` and `to_hex` (noir-lang#85) improve field formatting (noir-lang#84) chore(ci): Leverage reusable workflows (noir-lang#81) fix clippy (noir-lang#82) 0.4.1 Release remove duplicated match statement for Directive::Log (noir-lang#79) 0.4.0 Release update changelog feat(acvm): Directive for sorting networks (noir-lang#77) feat: Preprocess methods for ACVM interface (noir-lang#71) expose acir_field through acir (noir-lang#75) chore(acvm): rename remaining references to gadget calls (noir-lang#76) feat: Add Log Directive (noir-lang#61) blackbox to black_box (noir-lang#72) feat(ci)!: add spellchecker (noir-lang#73)
TomAFrench
added a commit
that referenced
this pull request
Feb 10, 2023
* master: feat: Update Arkworks' dependencies on `acir_field` (#69) add tests for `from_hex` and `to_hex` (#85) improve field formatting (#84) chore(ci): Leverage reusable workflows (#81) fix clippy (#82) 0.4.1 Release remove duplicated match statement for Directive::Log (#79) 0.4.0 Release update changelog feat(acvm): Directive for sorting networks (#77) feat: Preprocess methods for ACVM interface (#71) expose acir_field through acir (#75) chore(acvm): rename remaining references to gadget calls (#76) feat: Add Log Directive (#61) blackbox to black_box (#72) feat(ci)!: add spellchecker (#73)
TomAFrench
added a commit
that referenced
this pull request
Feb 10, 2023
* master: feat: Update Arkworks' dependencies on `acir_field` (#69) add tests for `from_hex` and `to_hex` (#85) improve field formatting (#84) chore(ci): Leverage reusable workflows (#81) fix clippy (#82) 0.4.1 Release remove duplicated match statement for Directive::Log (#79) 0.4.0 Release update changelog feat(acvm): Directive for sorting networks (#77) feat: Preprocess methods for ACVM interface (#71) expose acir_field through acir (#75) chore(acvm): rename remaining references to gadget calls (#76) feat: Add Log Directive (#61) blackbox to black_box (#72) feat(ci)!: add spellchecker (#73)
TomAFrench
added a commit
that referenced
this pull request
Feb 10, 2023
* master: feat: Update Arkworks' dependencies on `acir_field` (#69) add tests for `from_hex` and `to_hex` (#85) improve field formatting (#84) chore(ci): Leverage reusable workflows (#81) fix clippy (#82) 0.4.1 Release remove duplicated match statement for Directive::Log (#79) 0.4.0 Release update changelog feat(acvm): Directive for sorting networks (#77) feat: Preprocess methods for ACVM interface (#71) expose acir_field through acir (#75) chore(acvm): rename remaining references to gadget calls (#76) feat: Add Log Directive (#61) blackbox to black_box (#72) feat(ci)!: add spellchecker (#73)
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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
Summary of changes
Adds a directive for generating a sorting network that sort the inputs of the directive according to the provided ordering.
Test additions / changes
Unit test which extensively test the sorting networks
Checklist
cargo fmt
with default settings.