Commit graph

318 commits

Author SHA1 Message Date
Brendan Hansknecht
64df1c6921
update uitest and mono_test 2023-12-05 14:13:18 -08:00
Brendan Hansknecht
37656f4cc0
update uitest and mono_test 2023-12-05 12:45:31 -08:00
LoipesMas
4225c9e8c7 Add generated test files 2023-12-05 00:10:02 +01:00
Brendan Hansknecht
e1c850e2d1
update uitest and mono_test 2023-12-03 12:41:04 -08:00
Brendan Hansknecht
b04699acdf
change debug to call Inspect.inspect instead of inlining it
This is to workaround #6167 and can be reverted once it is fixed
2023-12-03 09:51:55 -08:00
Brendan Hansknecht
4587c4ebc5
update uitest and mono_test 2023-12-02 21:18:31 -08:00
Brendan Hansknecht
f5fb01fd53
Get tests passing
Add roc_dbg to some platforms.
Also start updating some roc_panic impls.
2023-11-29 21:05:49 -08:00
Richard Feldman
10470f33cc
Fix mono tests 2023-11-29 21:02:37 -05:00
Brendan Hansknecht
83bf3cbd3a
update tests 2023-11-28 16:40:42 -08:00
Brendan Hansknecht
9b181e1b3f
add inspect implementation for dict and set 2023-11-28 16:40:42 -08:00
Brendan Hansknecht
79a58843b5
fix mono tests with wrapping custom function 2023-11-28 16:40:42 -08:00
Brendan Hansknecht
21b68a2e27
add a set of currently failing mono tests for inspect 2023-11-28 16:40:42 -08:00
Elias Mulhall
0ccc71389a
move pattern desugar tests to test_mono 2023-11-26 20:26:43 -05:00
Norbert Hajagos
70a10e45c1
Merge branch 'main' into get-pointer 2023-11-22 08:30:38 +01:00
Brendan Hansknecht
2ef97fc5a1
update mono tests due to List.sublist change 2023-11-20 21:09:12 -08:00
HajagosNorbert
9c21ac1388
rename to GetElementPointer, index -> indices 2023-11-13 15:48:05 +01:00
Folkert
abff41c91f
update mono tests 2023-11-06 18:19:34 +01:00
Isaac Van Doren
139d3c6f89
make dropFirst and dropLast drop n elements 2023-10-29 13:23:33 -05:00
Isaac Van Doren
3df2ace4a6
add test_mono files 2023-10-14 15:38:31 -05:00
Anton-4
44eedf7359
fix mono tests 2023-10-07 19:32:09 +02:00
Brendan Hansknecht
fb1db19dca
mono test 2023-09-17 09:00:01 -07:00
Folkert
26c85d9ccc
mono tests 2023-09-13 20:24:17 +02:00
Folkert
dfee6740dd
mono tests 2023-09-13 20:24:16 +02:00
Richard Feldman
eb8dc25cd2
Update mono tests 2023-09-13 20:24:14 +02:00
Brendan Hansknecht
e6f3b01918
update mono tests 2023-09-08 18:28:33 -07:00
Richard Feldman
b54a37e4b0
Merge remote-tracking branch 'origin/main' into walk-with-index 2023-08-17 11:54:34 -04:00
Richard Feldman
d63144489a
Merge remote-tracking branch 'origin/main' into walk-with-index 2023-08-17 00:08:50 -04:00
Anton-4
63b7fef60f
Merge + update mono tests 2023-08-16 19:21:34 +02:00
Richard Feldman
7768264868
Update mono tests again 2023-08-15 02:39:50 -04:00
Richard Feldman
af357a5cbd
Update mono tests 2023-08-15 02:30:21 -04:00
Richard Feldman
fd866a5a64
Update mono tests 2023-08-14 20:17:43 -04:00
Richard Feldman
e8e1d0457f
Update mono tests 2023-08-14 20:06:04 -04:00
Richard Feldman
08e7b52ddc
Update mono tests 2023-08-10 23:34:23 -04:00
Folkert
4c17caa90d
update mono tests 2023-08-08 18:39:54 +02:00
Anton-4
44941db349
Merge pull request #5715 from roc-lang/str-replace
Don't have Str.replace functions return Result
2023-08-01 11:07:07 +02:00
Richard Feldman
4cb3a06246
Update mono 2023-07-31 09:49:54 -04:00
Folkert
cdc90f8495
update mono tests 2023-07-30 18:48:37 +02:00
Folkert
99fcbd8d5f
update mono test 2023-07-25 09:52:54 +02:00
Ayaz
b36ad76cdd
Merge pull request #5576 from roc-lang/spike-erasure
Implement function erasure
2023-07-17 03:27:29 -05:00
Folkert
48fa4f7a8e
When possible, prefer NonNullableUnwrapped over NullableWrapped
e.g. in the scenario of `[ A Str, B, C, D ]`, rather than having one tag be nullable, we want
to store the tag id in the pointer. This generally saves 8 bytes for
every allocation, and prevents an allocations for all tags except A.
2023-07-16 20:06:46 +02:00
Ayaz Hafiz
fea41000e5
Update mono tests 2023-07-12 17:00:55 -05:00
Folkert
bb97c384bb
preserve semantics in the glue generation 2023-07-09 15:47:28 +02:00
Ayaz Hafiz
a5e1558a6e
Do not drop uninhabited captures from lambda sets
Previously, we would drop uninhabited captures from lambda sets' runtime
representations, which meant sets like

```
[L1 {a: Str}, L2 {a: []}]
```

had runtime representation

```
{Str}
```

rather than

```
Union({Str}, {[]})
```

if we drop unreachable lambdas from the representation, then the
reachable lambdas are somewhat more efficient to compile (as there are
less material tag options), but the compiler complexity increases
because we must represent voided capture sets in the lambda set.

Even if a lambda has voided captures, we must specialize it, because
failing to do so opens us up to losing relevant specializations needed
later on. See 2f7020aa31 for a
previous occurence of that.

As such, simply keep voided layouts in place during lambda set
compilation. The optimizer should elide them anyway.
2023-06-29 17:32:50 -05:00
Anton-4
c4b0a2ec29
Merge pull request #5620 from roc-lang/dict-set
Add some missing Dict and Set functions
2023-06-29 12:06:49 +02:00
Richard Feldman
437fb7e46c
Update mono tests 2023-06-27 14:53:48 -04:00
Folkert
7e380d9533
update mono tests 2023-06-27 19:39:26 +02:00
Folkert
ae47cc5171
in TRMC, still apply normal TCE 2023-06-24 19:45:44 +02:00
Folkert
654cf7b861
changes after review 2023-06-24 14:49:57 +02:00
Folkert
f7104bfe54
update mono tests 2023-06-24 14:49:55 +02:00
Folkert
bc64e4b92b
fix layout check issue 2023-06-24 14:49:53 +02:00