Commit graph

8100 commits

Author SHA1 Message Date
Ayaz Hafiz
ceea194db4
Make sure "is open" constraints add flex vars at the right rank 2022-04-18 12:56:22 -04:00
Ayaz Hafiz
2856a38236
Solve all when branch pattern constraints before solving their bodies
Closes #2886
2022-04-18 11:03:25 -04:00
Ayaz Hafiz
e0c9931326
Bugfix debug printing 2022-04-18 10:21:56 -04:00
Kevin Gillette
6a3fd3a607
rename divFloor to divTrunc 2022-04-18 02:33:31 -06:00
Kevin Gillette
1908ff41c3
rem, sqrt, log are unchecked but have checked variants
mod exists but is not implemented due to lack of hardware support
(emulation, possibly in terms of rem, is needed).
2022-04-17 14:40:39 -06:00
Folkert
2c0b29efd1
use VecSet in IntroducedVariables 2022-04-17 20:53:54 +02:00
Folkert
7f3ca4458a
use VecSet in IntroducedVariables 2022-04-17 20:50:41 +02:00
Folkert
a1a7feca45
use VecSet in IntroducedVariables 2022-04-17 20:43:45 +02:00
Folkert
7b81c59009
Merge branch 'vecset-references' into builtins-in-roc 2022-04-17 20:32:38 +02:00
Folkert
d53a888540
Revert "use Vec instead of MutSet for references in can_ann"
This reverts commit d0b2cde1f4.
2022-04-17 20:32:20 +02:00
Folkert
9f453a7ba2
use vecset for non_closures 2022-04-17 20:30:32 +02:00
Folkert
c47460d792
use VecSet in recursive alias correction 2022-04-17 20:27:47 +02:00
Folkert
304b7fd569
use VecSet for exposed_symbols 2022-04-17 20:23:29 +02:00
Folkert
39aa112fd5
more VecSet 2022-04-17 20:14:25 +02:00
Folkert
f772c87c4b
more VecSet use, in canonical Env this time 2022-04-17 20:08:06 +02:00
Folkert
be1aff390c
use VecSet in canonicalizing annotations 2022-04-17 20:06:07 +02:00
Folkert
cc6c63355a
optimize for empty and singleton extends 2022-04-17 20:02:40 +02:00
Folkert
8692938fb3
Merge branch 'vecset-references' into builtins-in-roc 2022-04-17 19:39:03 +02:00
Folkert
dda4f46e67
use VecSet in References 2022-04-17 19:37:10 +02:00
Folkert
aa21186997
add VecSet type to collections 2022-04-17 19:36:31 +02:00
Folkert
d0b2cde1f4
use Vec instead of MutSet for references in can_ann 2022-04-17 19:13:58 +02:00
Folkert
2784affbc1
skip constraint gen for cached modules 2022-04-17 14:51:56 +02:00
Folkert
ec17367707
clippy 2022-04-17 14:46:11 +02:00
Folkert
d0c02ada8a
re-enable ignored test 2022-04-17 14:00:34 +02:00
Folkert
4254ece2c6
stop special-casing builtins 2022-04-17 14:00:21 +02:00
Folkert
d7d884b4f7
cleanup 2022-04-17 13:55:21 +02:00
Folkert
90a980a3e9
remove debug code 2022-04-17 13:54:53 +02:00
Folkert
5501787e64
delete unused code 2022-04-17 13:53:17 +02:00
Richard Feldman
718b999751
Merge pull request #2857 from rtfeldman/abilities-mono
Codegen for abilities
2022-04-16 22:59:16 -04:00
Folkert
e112f6ad2c
Merge remote-tracking branch 'origin/trunk' into builtins-in-roc 2022-04-16 21:01:51 +02:00
Folkert
51a02b05dc
don't cache builtins when the target is wasm (wasm declaration order is different from the cached version we make at compile time) 2022-04-16 20:36:25 +02:00
Folkert
86c86ab41e
stop inserting builtin implementations in all modules 2022-04-16 20:35:50 +02:00
Folkert
1568a57de0
turn panic into runtime error 2022-04-16 19:42:08 +02:00
Folkert
392b429e1a
stop skipping builtin imports 2022-04-16 19:41:29 +02:00
Sean Hagstrom
37d3e355ca refactor the logic for pretty printing float types into one function 2022-04-15 16:37:39 +01:00
Sean Hagstrom
c67a1bb8d4 fix(repl) and fix(pretty_print): update pretty_print output for Num FloatingPoint * to be Float * instead of F64 2022-04-15 16:37:39 +01:00
Ayaz Hafiz
e6b0d9a820
Fix typo 2022-04-15 10:54:35 -04:00
Richard Feldman
ae59eab55b
Merge pull request #2850 from rtfeldman/issue-2646/Num-toStr
Issue 2646 - Num.toStr crash
2022-04-15 10:54:20 -04:00
Ayaz Hafiz
95783e03a1
Handle aliasing of ability members 2022-04-15 10:21:35 -04:00
Ayaz Hafiz
491ec0034a
Don't try to send type problems over module boundaries
Closes #2863
Closes #2858
2022-04-15 10:01:26 -04:00
Ayaz Hafiz
00e5205d4c
More debugging for unified types 2022-04-15 09:53:23 -04:00
Ayaz Hafiz
7d4a006377
Bugfix sorting must implement constraints
Also makes things go faster
2022-04-15 09:29:12 -04:00
Ayaz Hafiz
fbe7ccf4c8
Use error macro 2022-04-15 08:51:29 -04:00
Ayaz Hafiz
8f335c3278
Add solve test for aliasing ability 2022-04-14 17:25:44 -04:00
Ayaz Hafiz
8694ea9d33
Add first ability gen tests 2022-04-14 17:06:19 -04:00
Ayaz Hafiz
b79b351136
The first ability... compiles 2022-04-14 16:50:41 -04:00
Ayaz Hafiz
6b4294307f
Start saving ability signature on designated variable again 2022-04-14 16:22:54 -04:00
Ayaz Hafiz
eb81c68bcb
Pass abilities store to mono 2022-04-14 16:20:55 -04:00
Richard Feldman
62f1cbed59
Merge pull request #2853 from rtfeldman/abilities-typechecking3
Abilities typechecking bug fixes
2022-04-14 13:53:38 -04:00
Richard Feldman
953c7aa9ff
Merge pull request #2855 from rtfeldman/outdented-parse
Make sure outdented records parse
2022-04-14 13:53:11 -04:00