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

Support nockma scry #2678

Merged
merged 10 commits into from
Mar 21, 2024
Merged

Support nockma scry #2678

merged 10 commits into from
Mar 21, 2024

Conversation

paulcadman
Copy link
Collaborator

@paulcadman paulcadman commented Mar 3, 2024

This PR adds support for Anoma/Nockma scry OP. It is used for obtaining values from the Anoma storage (key value store). See the linked issue for details on scry.

This PR adds support for scry to the Nockma language and compilation from the frontend via a builtin: anoma-get:

builtin anoma-get
axiom anomaGet : {Value Key : Type} -> Key -> Value

In the backend, the Value and Key types could be anything, they will depend on choices of Anoma applications. The type of the returned Value is unchecked. It's currently the responsibility of the user to match the annotated type with the type of data in storage.

We will not put this builtin in the standard library. It will be exposed in the anoma-juvix library. It's likely that the frontend anomaGet function will evolve as we use it to write Anoma applications and learn how they work.

@paulcadman paulcadman force-pushed the support-nockma-scry branch 2 times, most recently from 2edc12d to 40be37d Compare March 20, 2024 17:48
janmasrovira
janmasrovira previously approved these changes Mar 21, 2024
@lukaszcz lukaszcz self-requested a review March 21, 2024 09:09
@janmasrovira janmasrovira merged commit 2e00642 into main Mar 21, 2024
4 checks passed
@janmasrovira janmasrovira deleted the support-nockma-scry branch March 21, 2024 15:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support Nockma/Anoma scry operation
3 participants