1
1
mirror of https://github.com/anoma/juvix.git synced 2025-01-08 08:39:26 +03:00
juvix/tests
Paul Cadman 1ab94f5537
Add support for anoma-encode builtin (#2766)
This PR adds support for the `anoma-encode` builtin:

```
builtin anoma-encode
axiom anomaEncode : {A : Type} -> A -> Nat
```

In the backend this is compiled to a call to the Anoma / nockma stdlib
`jam` function.

This PR also contains:
* An implementation of the `jam` function in Haskell. This is used in
the Nockma evaluator.
* Unit tests for `jam`
* A benchmark for `jam` applied to the Anoma / nockma stdlib.

Benchmark results:

```
$ juvixbench -p 'Jam'
All
  Nockma
    Jam
      jam stdlib: OK
        109  ms ± 6.2 ms
```
2024-05-14 17:45:49 +01:00
..
Anoma/Compilation Add support for anoma-encode builtin (#2766) 2024-05-14 17:45:49 +01:00
Asm JuvixReg to CASM translation (#2671) 2024-03-20 12:14:12 +01:00
benchmark Fix benchmarks test compilation (#2552) 2023-12-10 12:13:56 +01:00
Casm Fully respect _evalOptionsNoFailure in the Core evaluator (#2756) 2024-04-30 14:09:01 +01:00
Compilation Multiway if syntax (#2770) 2024-05-08 16:18:34 +02:00
Core Cairo field compatibility (#2712) 2024-04-09 10:15:47 +02:00
examplesExpected Add a test suite for milestone examples (#1920) 2023-03-24 13:16:26 +00:00
Geb/positive Read Package on demand and cache it (#2548) 2023-12-06 18:24:59 +01:00
Internal Per-module compilation (#2468) 2023-12-30 20:15:35 +01:00
negative Import tree (#2751) 2024-05-14 10:53:33 +02:00
nockma/positive Fix bugs in the Nockma prettyprinter and parser (#2632) 2024-02-09 14:59:42 +01:00
positive Add integer literals with bases (#2746) 2024-04-22 17:07:32 +02:00
Reg/positive Fix memory access order in the JuvixReg to CASM translation. (#2697) 2024-03-27 10:40:24 +01:00
runtime/positive Merge stack and temporary variable groups in JuvixReg (#2579) 2024-01-17 19:11:40 +01:00
smoke/Commands Deduplicate project remote dependencies (#2761) 2024-05-03 19:28:25 +01:00
Tree Fix memory access order in the JuvixReg to CASM translation. (#2697) 2024-03-27 10:40:24 +01:00
VampIR Add PackageDescription.Basic module Package variant (#2509) 2023-11-13 17:36:18 +00:00
WithoutPackageFile Fix #2510 (#2512) 2023-11-17 16:10:38 +01:00
.gitattributes Juvix C runtime (#1580) 2022-11-03 09:38:09 +01:00