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

Add support for anoma-decode builtin #2775

Merged
merged 17 commits into from
May 15, 2024
Merged

Add support for anoma-decode builtin #2775

merged 17 commits into from
May 15, 2024

Conversation

paulcadman
Copy link
Collaborator

@paulcadman paulcadman commented May 13, 2024

This PR adds support for the anoma-decode builtin

builtin anoma-decode
axiom anomaDecode : {A : Type} -> Nat -> A

Adds:

  • An implementation of the cue function in Haskell
  • Unit tests for cue
  • A benchmark for cue applied to the Anoma / nockma stdlib

Benchmark results:

      cue (jam stdlib): OK
        36.0 ms ± 2.0 ms

Closes:

@paulcadman paulcadman added this to the 0.6.2 milestone May 13, 2024
@paulcadman paulcadman self-assigned this May 13, 2024
@paulcadman paulcadman force-pushed the support-anoma-decode branch from 7067ecf to d2fde45 Compare May 14, 2024 17:05
@paulcadman paulcadman marked this pull request as ready for review May 14, 2024 17:06
@paulcadman paulcadman requested review from janmasrovira and lukaszcz and removed request for janmasrovira May 14, 2024 17:07
@paulcadman paulcadman linked an issue May 14, 2024 that may be closed by this pull request
@paulcadman paulcadman force-pushed the support-anoma-decode branch from d2fde45 to 83720ff Compare May 14, 2024 17:36
@janmasrovira janmasrovira force-pushed the support-anoma-decode branch from 83720ff to c34357e Compare May 15, 2024 10:42
@paulcadman paulcadman force-pushed the support-anoma-decode branch from c34357e to f7927f9 Compare May 15, 2024 10:48
@paulcadman paulcadman force-pushed the support-anoma-decode branch from f7927f9 to 049bb4a Compare May 15, 2024 15:27
@paulcadman paulcadman merged commit 52f8afd into main May 15, 2024
4 checks passed
@paulcadman paulcadman deleted the support-anoma-decode branch May 15, 2024 17:30
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 Anoma serialisation primitives as Juvix builtin axioms
2 participants