You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
paulcadman
changed the title
Support Anoma serialisation primitives as Juvix builtin axioms.
Support Anoma serialisation primitives as Juvix builtin axioms
May 3, 2024
This PR updates the Anoma nockma stdlib to the version in Anoma 0.13.0
obtained from:
*
https://github.com/anoma/anoma/blob/1bbaf664ad87eb14a9aaf0012ac822a67cbc1a8f/lib/nock.ex#L433
NB: As is documented in the code, the standard library paths are
obtained by running commands in the urbit dojo against the loaded
stdlib. For example to find the path to the `dec` function in the stdlib
run:
```
~zod:dojo> => anoma !=(dec)
[9 342 0 31]
```
Part of:
* #2764
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:
* #2764
The Anoma hoon stdlib now supports serialisation primitives:
jam
.We need to make these available as Juvix builtins, in the same way as we did for anomaGet.
Proposed builtins:
The text was updated successfully, but these errors were encountered: