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.
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
feat(brillig): foreign call/oracle compilation #1600
feat(brillig): foreign call/oracle compilation #1600
Changes from 39 commits
6184f52
823bd84
545d333
f6810af
c5e34c5
06543b5
3c9f106
9a9c461
043c3c4
e51d3c6
1ed956b
2a797a1
cd39144
ba8ae00
cf393ff
4644da9
d50c69f
398ddf9
c5b9579
aa2185c
3847f0a
828c116
1d52f5e
2d3ab61
801a739
2bcfc24
49a151d
5247a48
5995b30
6d83b22
1a9d33c
2787cc9
8713a89
70f8fe2
91defbc
4269ac2
48405c6
f49d69c
f309bac
efd84b8
f5bbb70
d6c7496
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Comment needs to be updated.
We should also have an enumeration for Oracles. It is unclear without it which values may be valid for this string.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will update comment as part of #1643 refactor. An enumeration would be good for
nargo
oracle builtins such as println, however, we want to let developers specify their own oracles if they so chose. Need to think on the best way to include these two flowsThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, in that case we should likely give them a separate BrilligID like we do for FunctionIds
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We shouldn't need a separate instruction type for this. Instead, we can follow the example used by intrinsic functions and have a separate Value type
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I made an issue here: #1643. Good call out, I will refactor this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like there is already a separate Value type for oracles as well that we can use