Marten/Qqwy
83288ed7da
And also add it to the symbol.rs list
2022-06-27 13:48:09 +02:00
Marten/Qqwy
a4e1e4e59e
Actually expose findIndex from the List module.
2022-06-27 13:48:09 +02:00
Marten/Qqwy
47067e2b3b
Tests for List.findIndex
2022-06-27 13:48:09 +02:00
Marten/Qqwy
11c2160e27
Adds documentation for List.findIndex
2022-06-27 13:48:08 +02:00
Marten/Qqwy
7bbc61bb0d
Implements the List.findIndex function (in pure Roc)
2022-06-27 13:48:04 +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
Ayaz Hafiz
e239f6e912
Move instantiate_rigids to types crate
2022-06-24 08:48:02 -04:00
Ayaz
cd1f76aaab
Merge pull request #3306 from rtfeldman/collect-specialization-lambda-sets-during-unification
...
Collect specialization lambda sets during unification
2022-06-23 17:53:46 -04:00
Brian Carroll
39ec8819e3
Update test_mono for changed Symbol constants
2022-06-23 22:26:24 +01:00
Folkert de Vries
92a1750e82
Merge pull request #3301 from rtfeldman/i3261
...
Make sure to unwrap non-nullable unwrapped unions directly in alias analysis
2022-06-23 23:25:04 +02:00
Brian Carroll
4c9847e4c1
formatting
2022-06-23 22:09:44 +01:00
Brian Carroll
74f946b1aa
Create new operator Num.mulSaturated
2022-06-23 22:08:37 +01:00
Folkert de Vries
507ebe3ed3
Merge pull request #3303 from rtfeldman/copy-table
...
Use copy table for importing variables from storage subs
2022-06-23 21:18:10 +02:00
Brian Carroll
e356f1c33f
builtins: fix saturated integer subtraction
2022-06-23 08:49:47 +01:00
Brian Carroll
e3812b4bf3
builtins: implement i128 multiplication
2022-06-23 08:29:43 +01:00
ayazhafiz
d3f8734af8
Correct ability unification failure order
2022-06-22 23:42:20 -04:00
ayazhafiz
aa9fbb7cd2
Remove stray debug
2022-06-22 23:40:59 -04:00
Brian Carroll
320bdcc13b
wasm: implement all multiplication operators
2022-06-22 23:36:01 +01:00
Ayaz Hafiz
d1bec6952c
Remove unused import
2022-06-22 18:13:09 -04:00
Ayaz Hafiz
eb1f62dbf3
Collect specialization lambda sets during unification rather than solve
2022-06-22 18:10:47 -04:00
Brian Carroll
f4ec2617fa
wasm: implement all subtraction operators (checked, wrapping, panicking, and saturated)
2022-06-22 22:54:09 +01:00
Ayaz Hafiz
328eea8b25
Add extra metadata parameter to unification
2022-06-22 17:19:01 -04:00
Brian Carroll
bbccaf4cd2
wasm: refactor wrapping addition
2022-06-22 22:11:47 +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
d7ac8cfcbc
wasm: implement addOrPanic in Zig
2022-06-22 22:11:44 +01:00
Brian Carroll
795afc0cf6
wasm: implement saturating addition in Zig
2022-06-22 22:11:42 +01:00
Brian Carroll
10676d3ce9
wasm: implement checked addition
2022-06-22 22:11:39 +01:00
Richard Feldman
e800c26cfe
Merge remote-tracking branch 'origin/trunk' into package-config
2022-06-22 15:20:21 -04:00
Ayaz Hafiz
6e536ee783
Use copy table for importing variables from storage subs
...
This avoids having to taking the subs-being-imported-from as mutable.
2022-06-22 14:10:01 -04: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
Ayaz Hafiz
fdba8b26d4
Add test for types of destructed recursive alias in issue
2022-06-22 11:16:42 -04:00
Folkert de Vries
69ab681f9c
Merge pull request #3256 from rtfeldman/i3230
...
Soundness bugs related to inference variables within recursive def annotations
2022-06-22 13:11:23 +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
Folkert de Vries
7203031c9f
Merge pull request #3283 from rtfeldman/JanCVanB-patch-1
...
Fix argument order in `List.sublist` examples
2022-06-22 12:51:32 +02:00
Brian Carroll
37395a00ef
wasm: add support for NumToIntChecked
2022-06-22 00:27:38 +01:00
Brian Carroll
7a050949ef
wasm: support 128-bit numbers as arguments to Roc procedures
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
Richard Feldman
72281e34d1
Merge pull request #3277 from rtfeldman/fix-doc-comment-not-rendering
...
fix doc comment rendering
2022-06-21 16:06:06 -04:00
Richard Feldman
0e96dd9d73
Fix some broken auto-links in builtin docs
2022-06-21 15:13:05 -04:00
Jan Van Bruggen
44c52db6c3
Fix argument order in List.sublist
examples
2022-06-21 01:55:00 -06:00
Richard Feldman
033efe33e5
Merge pull request #3228 from rtfeldman/illegal_instruction_PENTIUM_N3700
...
WIP don't require avx, avx2, sse, sse4.2 on all x86-64
2022-06-20 08:32:14 -04: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
7d47fcc411
formatting
2022-06-20 00:15:47 +01:00
Brian Carroll
dbb4b31ebe
wasm: implement bytes_to_u16 and bytes_to_u32
2022-06-19 18:29:06 +01:00
Folkert
630f8d9c2d
fix doc comment rendering
2022-06-19 19:27:20 +02:00
Brian Carroll
0e6ee6a6ee
wasm: simplify == for Dec
2022-06-19 17:59:47 +01:00
Brian Carroll
b0d134b4d4
wasm: disable a failing test
2022-06-19 16:29:09 +01:00
Brian Carroll
1ce5268b3e
Get rid of Unix-specific rm
command
2022-06-19 16:21:34 +01:00
Brian Carroll
ab12ddf85f
Get rid of some Unix-specific slashes
2022-06-19 16:21:33 +01:00