1
1
mirror of https://github.com/anoma/juvix.git synced 2024-12-03 09:41:10 +03:00
juvix/test/Nockma
Paul Cadman c499d0d7e1
Support Anoma stdlib curry function (#3097)
This PR adds support for the Anoma node stdlib function to the nockma
backend.

https://developers.urbit.org/reference/hoon/stdlib/2n#cury

This PR also changes the arguments placeholder value when compiling
functions and closures to make it a tuple of length equal to the
function/closure arity.

To use curry, the function argument's placeholder argument tuple must
have length equal to the function airty.

For example if we are compiling a function with arity 2, the compiled
nock function should have the form:

```
[compiled-code [0 0] env]
```
2024-10-11 16:53:06 +02:00
..
Compile/Tree Add builtin ByteArray type (#2933) 2024-08-13 11:13:27 +01:00
Eval Support Anoma stdlib curry function (#3097) 2024-10-11 16:53:06 +02:00
Parse Use prettyString instead of show . pretty (#2711) 2024-04-12 10:26:54 +02:00
Compile.hs Translation from Juvix Tree to Nockma (#2614) 2024-02-06 08:33:14 +00:00
Encoding.hs Improve performance of anomaEncode / anomaDecode in the Core evaluator (#2975) 2024-08-30 18:20:18 +01:00
Eval.hs Add nockma evaluator (#2564) 2024-01-11 12:04:38 +00:00
Parse.hs Add nockma evaluator (#2564) 2024-01-11 12:04:38 +00:00