Commit graph

989 commits

Author SHA1 Message Date
Folkert de Vries
3abdabe45b
Merge pull request #3338 from rtfeldman/wasm-more-list-fns
Wasm: more list functions
2022-06-27 21:28:52 +02:00
Ayaz
1aad7716a2
Merge pull request #3328 from rtfeldman/3259-list-findIndex
Adds List.findIndex to List module
2022-06-27 08:49:34 -04:00
Ayaz Hafiz
560fbfe64b
Cargo fmt 2022-06-27 13:48:10 +02:00
Marten/Qqwy
83288ed7da
And also add it to the symbol.rs list 2022-06-27 13:48:09 +02:00
Marten/Qqwy
47067e2b3b
Tests for List.findIndex 2022-06-27 13:48:09 +02:00
Brian Carroll
cae49f1cb5
wasm: Bring back an accidentally deleted test case
And put it in a more appropriately named test
2022-06-26 21:35:35 +01:00
Folkert de Vries
4f77b4769b
Merge pull request #3333 from rtfeldman/wasm-list-get-set
Wasm list get & set
2022-06-26 21:25:45 +02:00
Brian Carroll
e04cab0e0d
wasm: List.sublist 2022-06-26 19:02:07 +01:00
Brian Carroll
bbefacb76d
wasm: List.swap 2022-06-26 18:26:17 +01:00
Brian Carroll
29e9e5b88e
wasm: List.join 2022-06-26 18:16:58 +01:00
Brian Carroll
1f027127aa
wasm: List.append 2022-06-26 18:08:06 +01:00
Brian Carroll
3323d3e140
wasm: List.repeat 2022-06-26 17:47:24 +01:00
Brian Carroll
1d4a729dd5
wasm: List.reverse 2022-06-26 16:54:17 +01:00
Brian Carroll
0c110cf742
wasm: List.concat 2022-06-26 16:46:47 +01:00
Brian Carroll
c02e70db10
Merge branch 'trunk' of github.com:rtfeldman/roc into wasm-list-get-set 2022-06-26 16:23:06 +01:00
Folkert de Vries
b5d78aae6f
Merge pull request #3320 from rtfeldman/wasm-complete-num-support
Wasm: 100% of gen_num tests passing
2022-06-26 15:46:29 +02:00
Brian Carroll
eee2bfd049
wasm: implement List.set 2022-06-26 13:15:29 +01:00
Brian Carroll
d7f957601d
wasm: Implement List.single 2022-06-25 23:59:38 +01:00
Brian Carroll
91349c96f4
wasm: implement ListGetUnsafe 2022-06-25 23:48:31 +01:00
Brian Carroll
be0f57f90a
wasm: fix unsigned integer division 2022-06-25 14:36:31 +01:00
Brian Carroll
d8b85eeb45
wasm: implement Num.compare 2022-06-25 14:36:30 +01:00
Brian Carroll
cc929ff033
wasm: Call roc_panic on Num.neg overflow 2022-06-25 14:36:30 +01:00
Brian Carroll
8195c4e758
wasm: Call roc_panic on Num.abs overflow 2022-06-25 14:36:29 +01:00
Brian Carroll
7c10f71acd
wasm: implement Num.toStr 2022-06-25 14:36:28 +01:00
Brian Carroll
56297ebe97
wasm: implement Num.isMultipleOf 2022-06-25 14:36:28 +01:00
Brian Carroll
8887870c27
wasm: fix some tests in gen_num for 32-bit 2022-06-25 14:36:27 +01:00
Folkert
a4686cd74e
Merge remote-tracking branch 'origin/trunk' into flat-declarations 2022-06-25 15:21:18 +02:00
Brian Carroll
8e7943eaca
Merge pull request #3305 from rtfeldman/wasm-arithmetic-overflow
Wasm checked arithmetic operators + Num.mulSaturated
2022-06-25 13:21:33 +01:00
Brian Carroll
74f946b1aa
Create new operator Num.mulSaturated 2022-06-23 22:08:37 +01:00
Brian Carroll
e356f1c33f
builtins: fix saturated integer subtraction 2022-06-23 08:49:47 +01:00
Brian Carroll
320bdcc13b
wasm: implement all multiplication operators 2022-06-22 23:36:01 +01:00
Brian Carroll
f4ec2617fa
wasm: implement all subtraction operators (checked, wrapping, panicking, and saturated) 2022-06-22 22:54:09 +01:00
Brian Carroll
b1193e4134
wasm: implement all addition operators (wrapping, panicking, saturating, and checked) 2022-06-22 22:11:46 +01:00
Brian Carroll
10676d3ce9
wasm: implement checked addition 2022-06-22 22:11:39 +01:00
Ayaz Hafiz
2079a64cb7
Make sure to unwrap non-nullable unwrapped unions directly in alias analysis
Non-nullable unwrapped tag unions are represented directly as the type
of their singleton variant in morphic. Other recursive tag unions are
something like `(heap_cell, union [A, B (<rec>)])` for recursive union
`[A, B (<rec>)]`, but a non-nullable unwrapped tag union `[ Foo Str <rec> ]`
is represented directly as the tuple `(Str <rec>)`. Make sure we don't
try to unwrap a non-existent heap cell and union data for such type
representations.

Closes #3261
2022-06-22 12:36:37 -04:00
Folkert
aa6dcdf256
Merge remote-tracking branch 'origin/trunk' into flat-declarations 2022-06-22 13:50:01 +02:00
Folkert de Vries
f206194d1f
Merge pull request #3278 from rtfeldman/wasm-more-lowlevels
Implement more Num lowlevels in Wasm
2022-06-22 13:06:11 +02:00
Brian Carroll
37395a00ef
wasm: add support for NumToIntChecked 2022-06-22 00:27:38 +01:00
Brian Carroll
f5b46bf650
wasm: implement sin, cos, tan, sqrt, log, and pow 2022-06-21 23:59:38 +01:00
Brian Carroll
9d5713ed79
Merge branch 'trunk' into build-scripts-cleanup 2022-06-20 12:19:47 +01:00
Brian Carroll
4598b05345
Fix test_gen build script bugs 2022-06-20 08:24:48 +01:00
Brian Carroll
dbb4b31ebe
wasm: implement bytes_to_u16 and bytes_to_u32 2022-06-19 18:29:06 +01:00
Folkert
e0ab55cef5
Merge remote-tracking branch 'origin/trunk' into flat-declarations 2022-06-19 18:45:17 +02:00
Brian Carroll
b0d134b4d4
wasm: disable a failing test 2022-06-19 16:29:09 +01:00
Brian Carroll
ab12ddf85f
Get rid of some Unix-specific slashes 2022-06-19 16:21:33 +01:00
Brian Carroll
a775c94596
Reuse wasi-libc-sys in all Wasm build scripts 2022-06-19 16:21:33 +01:00
Brian Carroll
5aff2bfe35
Get rid of a Windows-unfriendly 'find' command in test_gen build script 2022-06-19 16:21:31 +01:00
Brian Carroll
af08644101
enable some more gen_wasm tests 2022-06-18 23:46:11 +01:00
Brian Carroll
f0b9bf5203
Fix build error 2022-06-18 23:46:10 +01:00
Folkert
d8b94b766e
Merge remote-tracking branch 'origin/trunk' into flat-declarations 2022-06-18 21:27:23 +02:00