Commit graph

1055 commits

Author SHA1 Message Date
Brian Carroll
a9aee13086
test_gen: support RocResult for Wasm tests 2022-07-06 22:01:03 +01:00
Brian Carroll
617e18af98
wasm: enable remaining List tests, except 2 panics 2022-07-06 22:01:02 +01:00
Brian Carroll
f132350ef3
wasm: implement List.sortWith 2022-07-06 22:01:01 +01:00
Brian Carroll
86cb50ed09
test_gen: fix some list tests for 32-bit targets 2022-07-06 21:59:40 +01:00
Brian Carroll
e5e56a7795
wasm: Implement List.prepend 2022-07-06 21:59:37 +01:00
Folkert
6e664b466f
fix merge conflict 2022-07-06 22:35:14 +02:00
Ayaz Hafiz
89e356b5eb
Ambient lambda set unification means we can have nice things again 2022-07-06 13:08:59 -04:00
Ayaz Hafiz
20a9a9765a
Disable wasm test for now 2022-07-06 12:49:03 -04:00
ayazhafiz
efbd1bf4c7
Add unbound runtime error function var gen test 2022-07-06 12:49:02 -04:00
ayazhafiz
937b73b797
Compile lambdas that have an empty lambda set
Closes #3224

This should also fix a number of other issues often observed when a
lambda is never actually called, but we fail to codegen because it has
an empty lambda set.
2022-07-06 12:49:01 -04:00
Folkert de Vries
b28561d1c9
Merge branch 'trunk' into dylib-roc-benchmarks 2022-07-06 18:39:16 +02:00
Richard Feldman
c9346b0744
Merge pull request #3418 from rtfeldman/repl-expect
repl expect
2022-07-06 09:40:40 -04:00
Ayaz Hafiz
634d4c534a
Add gen test for recursive capture call 2022-07-06 09:11:02 -04:00
Folkert
3017a14599
rename 2022-07-06 14:07:52 +02:00
Ayaz Hafiz
2492fba9f9
Gen tests for promoted num layouts 2022-07-05 22:16:52 -04:00
Folkert de Vries
93dbda9ac5
Merge pull request #3399 from rtfeldman/pure-roc-map-with-index
Pure Roc `List.mapWithIndex`
2022-07-06 00:25:46 +02:00
Folkert
cd8b08dcb0
add benchmark for List.map performance 2022-07-06 00:20:20 +02:00
Folkert
2aabdaa9c8
remove debug print 2022-07-06 00:19:24 +02:00
Folkert
52d339463a
make OptLevel configurable in gen test code gen 2022-07-06 00:19:13 +02:00
Folkert
2debf2629d
start using criterion in the test_gen crate 2022-07-05 17:29:26 +02:00
Folkert
93db29faf0
add option for debugir LLVM debug info in gen tests 2022-07-05 17:20:10 +02:00
Folkert
0d8fc5f2da
put platform functions (roc_alloc etc) in a module 2022-07-05 17:10:32 +02:00
Folkert
6d7c329698
Str.walkScalars 2022-07-04 18:01:19 +02:00
Folkert
1de9270ecf
Merge remote-tracking branch 'origin/trunk' into str-walk 2022-07-04 16:30:07 +02:00
Folkert
9c41a4d442
str.appendScalar 2022-07-04 16:27:04 +02:00
Brian Carroll
62e93dd921
wasm: enable test for List.mapWithIndex 2022-07-04 15:14:52 +01:00
Folkert de Vries
4523e90bc7
Merge pull request #3398 from rtfeldman/wasm-str-full-coverage
Wasm Str: 100% tests passing
2022-07-04 14:51:52 +02:00
Folkert de Vries
1441e8c347
Merge pull request #3392 from rtfeldman/wasm-boxed-eq-and-refcount
Dev backends: Eq and refcount for Boxed layout
2022-07-04 13:17:37 +02:00
Brian Carroll
fdc0851883
wasm: fix Str.fromUtf8Range 2022-07-04 11:52:18 +01:00
Brian Carroll
a342f02824
wasm: fix Str.fromUtf8 2022-07-04 11:24:38 +01:00
Brian Carroll
02ec30425c
wasm: Implement Str.split 2022-07-04 11:24:38 +01:00
Brian Carroll
6b1e9c75c8
mono: generate refcounting helper functions for Boxed layout 2022-07-03 23:31:49 +01:00
Folkert
65f80b61c6
add Str.walkUtf8WithIndex 2022-07-03 20:24:08 +02:00
Folkert
eeb271d07f
Str.splitFirst and Str.splitLast 2022-07-03 19:47:06 +02:00
Brian Carroll
7c7e450756
mono: generate Eq functions for Boxed layout 2022-07-03 18:42:35 +01:00
Ayaz Hafiz
8855f269ba
Make captures niche more private 2022-07-03 10:37:36 -04:00
Ayaz Hafiz
71d612078a
no_niche to represent lack of captures niche 2022-07-03 10:37:36 -04:00
Ayaz Hafiz
a5ea4f8c11
Remove references to multimorphic names 2022-07-03 10:37:35 -04:00
Ayaz Hafiz
276db791bd
Update capture niche tests 2022-07-03 10:37:35 -04:00
ayazhafiz
1ed2e1a8e9
Improve test 2022-07-03 10:37:28 -04:00
Ayaz Hafiz
98b310a604
Fix wasm test gen 2022-07-03 10:37:28 -04:00
Ayaz Hafiz
fe318488e2
Add more multimorphic gen tests 2022-07-03 10:37:28 -04:00
Ayaz Hafiz
ada4b0ea43
Add test gen for multimorphic capture 2022-07-03 10:37:26 -04:00
Brian Carroll
b2c094ca07
Merge pull request #3379 from rtfeldman/wasm-box
Wasm box & unbox
2022-07-03 12:55:48 +01:00
Brian Carroll
7ea9854e49
wasm: Refactor and bug-fix copy_value_from_memory 2022-07-03 10:22:11 +01:00
Folkert de Vries
2a82d24847
Merge pull request #3369 from rtfeldman/pure-roc-list-walk
List.walk and friends in pure Roc
2022-07-03 02:32:43 +02:00
Folkert de Vries
0d17f007d1
Merge pull request #3376 from rtfeldman/wasm-list-drop-at
implement List.dropAt for the wasm backend
2022-07-03 00:58:42 +02:00
Folkert
00397db8b6
implement List.dropAt for the wasm backend 2022-07-02 22:20:34 +02:00
Richard Feldman
af05723d35
Rename startsWithCodePt to startsWithScalar 2022-07-02 15:51:33 -04:00
Richard Feldman
284ff5de35
Enable some missing tests 2022-07-02 15:22:20 -04:00