Commit Graph

8567 Commits

Author SHA1 Message Date
Ayaz Hafiz
a242a90416 Stale comment 2022-05-08 15:08:16 -04:00
Ayaz Hafiz
2e57bf0b6a Permit able variables in aliases, and thread them through 2022-05-08 15:08:14 -04:00
Ayaz Hafiz
01af970b49 Constraining ability members is the same as a usual def 2022-05-08 15:07:27 -04:00
Ayaz Hafiz
45134a547d Update solve test 2022-05-08 15:07:27 -04:00
Ayaz Hafiz
c67bc5a8d6 Remove when-related changes 2022-05-08 15:07:27 -04:00
Ayaz Hafiz
b5efd830e5 Solve and gen ability members that bind other able variables 2022-05-08 15:07:27 -04:00
Ayaz Hafiz
c01baa9168 Fix failing reporting tests 2022-05-08 15:07:27 -04:00
Folkert
b21a226281
simplify constraints 2022-05-08 20:11:12 +02:00
Folkert
7be41d8c09
remove unused variables from let/letrec 2022-05-08 20:06:00 +02:00
Mfon Eti-mfon
9068c2414e
Rename float functions and vars 2022-05-08 18:42:12 +01:00
Mfon Eti-mfon
de7fe31289
Update the Num builtin 2022-05-08 16:45:03 +01:00
Folkert
29a9564d36
and yet another result wrapper 2022-05-08 17:16:24 +02:00
Folkert
2e9477e011
remove another result wrapper 2022-05-08 17:16:13 +02:00
Folkert
d5b010cb13
remove unused Result wrapper 2022-05-08 17:16:00 +02:00
Mfon Eti-mfon
85c622b169
Update symbols definition 2022-05-08 15:54:34 +01:00
Brian Carroll
c93cfd0993
Merge pull request #3028 from rtfeldman/implement-wasm-num-pow-int
implement NumPowInt in wasm backend
2022-05-08 15:11:37 +01:00
Ayaz
31cc64b634
Merge pull request #3027 from rtfeldman/borrow-reference-matrix 2022-05-08 09:43:59 -04:00
Ayaz
21b4a4c38e
Merge pull request #3023 from rtfeldman/correct-opaque-delayed-aliases
Correct instantiation of delayed opaques
2022-05-08 09:39:42 -04:00
jonas schell
532055bf3b implement NumPowInt 2022-05-08 14:17:11 +02:00
Folkert
529ec39aeb
remove ven_graph from mono dependencies 2022-05-08 12:32:24 +02:00
Folkert
8be6957e9b
fix merge conflict 2022-05-08 12:29:52 +02:00
Folkert
90517f09a5
use matrix for SCCs 2022-05-08 12:19:33 +02:00
Folkert
fbbc31855d
update mono tests 2022-05-08 12:18:10 +02:00
Folkert
df9b5bd0f5
construct reference matrix 2022-05-08 12:18:10 +02:00
Folkert
c5b7ff98fd
move reference matrix 2022-05-08 12:18:10 +02:00
Ayaz
dd51479764
Merge pull request #3009 from rtfeldman/list-map-ownership
List map ownership
2022-05-07 19:59:15 -04:00
Richard Feldman
36f64d8496
Merge remote-tracking branch 'origin/trunk' into hostgen 2022-05-07 18:49:25 -04:00
Folkert
35eff878ae
fix two strings 2022-05-08 00:20:37 +02:00
Folkert
13d4b0c8c8
Merge remote-tracking branch 'origin/trunk' into update_zig_09 2022-05-08 00:03:39 +02:00
Folkert de Vries
97c7b01e55
Merge pull request #3019 from rtfeldman/cli-max-threads
Cli `--max-threads=<N>` option
2022-05-07 23:35:08 +02:00
Folkert
3ad16e1f45
assert condition 2022-05-07 23:00:56 +02:00
Folkert
6a736615e1
clarify BORROWED usage 2022-05-07 23:00:51 +02:00
Ayaz Hafiz
af3a677f12
Correct instantiation of delayed opaques
I didn't realize that delayed instantiation of aliases instantiates
their real var, not the whole alias type. So prior to this, we were
wrapping all opaques in a structural `Alias(..)`. Which is okay from a
typechecking perspective because Aliases are transparent, but is
wasteful.
2022-05-07 16:50:14 -04:00
Folkert
0bf284721b
all the comments 2022-05-07 22:47:16 +02:00
Folkert de Vries
e2383fec50
Merge pull request #3021 from rtfeldman/mono-fruit
Clean up some unused code paths in mono
2022-05-07 22:33:35 +02:00
Richard Feldman
5f7ef4c105
Merge pull request #3018 from rtfeldman/generalize-reduce-allocation
Generalize reduce allocation
2022-05-07 16:28:17 -04:00
Richard Feldman
51ee101bd1
Merge remote-tracking branch 'origin/trunk' into cli-max-threads 2022-05-07 16:23:41 -04:00
Folkert
d40e26c52e
revert to llvm-as/llc 2022-05-07 22:17:44 +02:00
Ayaz Hafiz
50bbf1349d
Revert "Drop another unused branch"
This reverts commit 19175a85d8.
2022-05-07 15:36:11 -04:00
Ayaz Hafiz
19175a85d8
Drop another unused branch 2022-05-07 15:04:35 -04:00
Ayaz Hafiz
7e58c4ddea
Unused var 2022-05-07 15:01:25 -04:00
Ayaz Hafiz
02bff35203
Remove dead let-identifier code 2022-05-07 15:01:04 -04:00
Folkert
58889507de
remove usage of llvm-as and llc 2022-05-07 20:47:23 +02:00
Folkert
81caa96af2
Merge remote-tracking branch 'origin/trunk' into update_zig_09 2022-05-07 19:38:04 +02:00
Folkert de Vries
24279e12d0
Merge pull request #3017 from rtfeldman/sweep-deps
Sweep unused deps
2022-05-07 18:38:37 +02:00
Richard Feldman
b9dbfa8c33
Always use 16B alignment for 128-bit ints 2022-05-07 10:52:31 -04:00
Richard Feldman
4763e828b7
Don't use mem::align_of in code generation!
See the comments added in this commit for the reason.
2022-05-07 10:28:19 -04:00
Richard Feldman
e272a720aa
Add ptr_alignment_bytes 2022-05-07 10:20:40 -04:00
Folkert
ec8b2cd8b1
get rid of num_cpus in favor of std:🧵:available_parallelism 2022-05-07 15:11:18 +02:00
Folkert
35bf66f650
hook up the max_threads flag 2022-05-07 14:18:28 +02:00
Folkert
2066999908
get the threading info into file.rs 2022-05-07 14:01:34 +02:00
Folkert
60e03226eb
formatting 2022-05-07 13:24:42 +02:00
Folkert
fa3eff6515
re-use a vector that already has a good capacity 2022-05-07 13:21:23 +02:00
Folkert
c308276c22
remove a to_vec() call 2022-05-07 13:20:53 +02:00
Folkert de Vries
a65d736f37
Merge pull request #3014 from rtfeldman/alias-in-opaque
Instantiate aliases in delayed alias args
2022-05-07 13:07:35 +02:00
Folkert de Vries
201d09d9bf
Merge branch 'trunk' into list-map-ownership 2022-05-07 11:59:51 +02:00
ayazhafiz
0626433a14 Sweep unused deps
`cargo +nightly udeps` told me what's good
2022-05-06 22:54:42 -04:00
ayazhafiz
afd68f103f Un-ignore test that works now 2022-05-06 22:21:39 -04:00
Ayaz
e8c2e96879
Merge pull request #3015 from rtfeldman/matrix-more-bitvec
Matrix more bitvec
2022-05-06 21:43:54 -04:00
Folkert
8a209334cc
use bitvec in the input for sccs 2022-05-07 00:39:15 +02:00
Folkert
13fc0f9a1e
make params.p use a bitvec 2022-05-06 22:55:18 +02:00
Folkert
b46de2f0a8
Revert "make params.p use a bitvec"
This reverts commit a2b04d35f7.
2022-05-06 22:55:06 +02:00
Folkert
2b1491189a
Revert "use bitvec for params.s"
This reverts commit 65ca5d33b3.
2022-05-06 22:48:59 +02:00
Folkert de Vries
e67ae7c922
Merge pull request #2817 from rtfeldman/i/2792
Fix llvm type errors for float functions
2022-05-06 22:34:45 +02:00
Folkert
65ca5d33b3
use bitvec for params.s 2022-05-06 22:23:32 +02:00
Richard Feldman
4c3c42f278
Merge pull request #3011 from rtfeldman/fmt-tests
Improved formatting tests
2022-05-06 16:17:57 -04:00
Folkert
a2b04d35f7
make params.p use a bitvec 2022-05-06 22:06:16 +02:00
Ayaz Hafiz
7e234d4550
Instantiate aliases in delayed alias args 2022-05-06 16:04:47 -04:00
Folkert
3e38dc80f5
use bitvec for group (internally) 2022-05-06 21:56:48 +02:00
Folkert de Vries
990823e6b7
Merge pull request #3010 from rtfeldman/polymorphic_lambda_set_usage
Better symbol specialization data structure, and handle closure specialization
2022-05-06 21:37:22 +02:00
Ayaz Hafiz
ebcd72f7af
Bindgen our first struct 2022-05-06 15:08:06 -04:00
Richard Feldman
281602d664
Merge pull request #3003 from rtfeldman/threading
Explicit single vs multithreading for build functions
2022-05-06 15:07:33 -04:00
Richard Feldman
36255b056b
Test expected == actual after verifying idempotence 2022-05-06 14:45:59 -04:00
Folkert
9e80673b1d
implement Num.round in the wasm backend like how the dev backend does it 2022-05-06 20:41:02 +02:00
Richard Feldman
a8991dc268
Trim inputs and expected in fmt tests 2022-05-06 14:37:23 -04:00
Richard Feldman
eb1d572b24
Test that modules reformat stably too 2022-05-06 14:37:23 -04:00
Richard Feldman
ad51624eb2
Write a better test for tui example 2022-05-06 14:37:23 -04:00
Richard Feldman
eb8e7d6a97
Verify stable formatting in fmt tests 2022-05-06 14:37:22 -04:00
Richard Feldman
c0f18f1c52
Move RemoveSpaces into fmt, for use in tests 2022-05-06 14:37:22 -04:00
Richard Feldman
7be5948476
Add formatter test 2022-05-06 14:37:22 -04:00
Ayaz Hafiz
2a4ed33530
We love the eta reductions 2022-05-06 14:32:54 -04:00
Folkert
07383e96f0
Merge remote-tracking branch 'origin/trunk' into i/2792 2022-05-06 20:17:53 +02:00
Folkert
64b633bea6
make round return an integer 2022-05-06 20:17:40 +02:00
Ayaz Hafiz
a0950e9321
impl ExactSizeIterator for VecMap 2022-05-06 14:10:16 -04:00
Ayaz Hafiz
abb9bb8169
Pretty print symbols 2022-05-06 13:37:22 -04:00
Ayaz Hafiz
2aeb06c9cb
Spellcheck 2022-05-06 12:21:42 -04:00
Richard Feldman
531d254bca
Fix parser tests
Regions changed in 15187024233795c059342adc3c23b8a148a7f26e
2022-05-06 12:10:08 -04:00
Richard Feldman
2c3731f7de
Drop an unnecessary lifetime annotation 2022-05-06 12:06:28 -04:00
Richard Feldman
dcea38dcf6
Add parse test for tui-platform/Package-Config.roc 2022-05-06 12:06:28 -04:00
Richard Feldman
8273775540
Improve test_parse error message 2022-05-06 12:06:28 -04:00
ayazhafiz
ef77ff35cf
Improve expectation for platform requires mismatch
```
── TYPE MISMATCH ───── examples/hello-world/rust-platform/./Package-Config.roc ─

Something is off with the type annotation of the main required symbol:

2│      requires {} { main : a -> a }
                             ^^^^^^

This #UserApp.main value is a:

    Str

But the type annotation on main says it should be:

    a -> a

────────────────────────────────────────────────────────────────────────────────
```
2022-05-06 12:06:27 -04:00
ayazhafiz
514af619f5
Store region of type annotation correctly 2022-05-06 12:06:27 -04:00
Richard Feldman
388f402a26
remove unnecessary clone (thanks, clippy!) 2022-05-06 12:06:27 -04:00
Ayaz Hafiz
77a1f644a4
Thread error message information for requires 2022-05-06 12:06:27 -04:00
Ayaz Hafiz
c7142da116
Correctly generate type constraints for required symbols in platform 2022-05-06 12:06:27 -04:00
Ayaz Hafiz
e8fbda44fc
Revert "Revert "Thread through symbols_from_requires""
This reverts commit 8ac1dfac1a.
2022-05-06 12:06:27 -04:00
Ayaz Hafiz
9e35cf9060
Unable function marks for symbol specializations 2022-05-06 12:03:35 -04:00
Ayaz Hafiz
e0bfe6c762
Make specialization symbols a two-layered VecMap 2022-05-06 11:58:02 -04:00
Richard Feldman
eb4fd05274
Use Threading::Single in wasm test helpers 2022-05-06 11:38:17 -04:00
Richard Feldman
a5ffb216c8
Merge pull request #3006 from rtfeldman/nunocf/migrating-docs
Migrating docs
2022-05-06 11:35:05 -04:00