Commit Graph

14083 Commits

Author SHA1 Message Date
Ayaz Hafiz
15a040ec87
Basic type inference and solving for abilities
Note that is still pretty limited. We only permit opaque types to
implement abilities, abilities cannot have type arguments, and also no
other functions may depend on abilities
2022-04-12 16:18:07 -04:00
Ayaz Hafiz
913d97cab1
Add needed imports 2022-04-12 16:18:07 -04:00
Ayaz Hafiz
7536d48a22
Remove unused function 2022-04-12 16:18:06 -04:00
Richard Feldman
f39f7eda03
Merge pull request #2832 from rtfeldman/div-no-result
`div`, `divCeil`, `divFloor` panic + add checked versions returning `Result`
2022-04-12 15:10:06 -04:00
Nikita Mounier
c035900d64
Update test_mono test. 2022-04-12 18:15:19 +00:00
Nikita Mounier
dfba77bd04
Explicit i128 in test. 2022-04-12 16:41:29 +00:00
Nikita Mounier
0f0e9bdf14
Fix test in solve_expr.rs 2022-04-12 12:12:29 +00:00
Ayaz
a7c37a4b7a
Merge pull request #2835 from rtfeldman/typos-formatting-2022-04-11 2022-04-11 21:42:26 -04:00
Nikita Mounier
2a56463b74
Fix typo in test_load. 2022-04-12 01:23:49 +00:00
Nikita Mounier
895ba92239
Change expected types in test_load. 2022-04-12 01:21:24 +00:00
Kevin Gillette
1c3700e22e
Minor typo/formatting fixes 2022-04-11 19:11:37 -06:00
Nikita Mounier
2ba9566c03
Remove parenthesis from Pair 2022-04-12 00:41:14 +00:00
Nikita Mounier
d32e77819b
Update benchmark. 2022-04-12 00:19:09 +00:00
Nikita Mounier
bb8b8fd0c0
Update examples / benchmarks. 2022-04-12 00:07:53 +00:00
Nikita Mounier
6b2d1a7af6
Remove outdated comments. 2022-04-11 23:36:30 +00:00
Nikita Mounier
e2cccbc7b5
Format previous change. 2022-04-11 23:32:34 +00:00
Nikita Mounier
82a01c876e
Update REPL tests 2022-04-11 23:28:50 +00:00
Nikita Mounier
dbb91639e9
Revert weird changes in tests. 2022-04-11 21:33:22 +00:00
Nikita Mounier
20b9f6377c
Fix f64 ambiguity in test. 2022-04-11 19:43:21 +00:00
Nikita Mounier
799c05f183
Fix test. 2022-04-11 17:56:43 +00:00
Nikita Mounier
1d5ab1d79c
Merge remote-tracking branch 'origin/trunk' into div-no-result 2022-04-11 17:51:38 +00:00
Richard Feldman
d81228df80
cargo fmt 2022-04-11 13:17:46 -04:00
Nikita Mounier
1df1b4bc84
Fix typo. 2022-04-11 12:34:23 +00:00
Nikita Mounier
8206f345c7 Merge remote-tracking branch 'origin/trunk' into div-no-result 2022-04-11 11:45:06 +00:00
Nikita Mounier
9182bb5773 Add toF32/64 checked versions in symbol.rs to avoid conflict. 2022-04-11 11:35:56 +00:00
Nikita Mounier
4ecf2a8c24 Modify division behaviour to panic when dividing by 0, and add divChecked, divFloorChecked and divCeilingChecked` for safe alternatives which return a Result, mimicking the previous behaviour. 2022-04-11 11:23:33 +00:00
Richard Feldman
e477813be4
Add Cai Bingjun to AUTHORS 2022-04-10 09:36:23 -04:00
Richard Feldman
6c937ed1e6
Merge pull request #2829 from rtfeldman/C-BJ-patch-2
Migrate all wiki FAQ to the project file
2022-04-10 09:35:27 -04:00
Richard Feldman
7cea9fa352
Merge pull request #2828 from rtfeldman/C-BJ-patch-1
Rename CodeOfConduct.md to CODE_OF_CONDUCT.md
2022-04-10 09:34:48 -04:00
Folkert de Vries
7675e0232b
Merge pull request #2819 from rtfeldman/zero-arg-tag
Drop unused `arguments` field from `ZeroArgumentTag`
2022-04-10 15:18:03 +02:00
Folkert de Vries
11bba5eab7
Merge pull request #2824 from rtfeldman/box-unbox-structs
Support box/unbox for types that are typically only on the stack
2022-04-10 15:17:26 +02:00
C-BJ
e0c1d5bcd0
Update FAQ.md 2022-04-10 19:36:41 +08:00
C-BJ
d267bc47f9
Rename CodeOfConduct.md to CODE_OF_CONDUCT.md 2022-04-10 19:06:05 +08:00
Ayaz Hafiz
a102a7497e
Support box/unbox for types that are typically only on the stack
Closes #2786
2022-04-09 16:22:01 -04:00
Richard Feldman
ebb03f60dd
Add Nikita Mounier to AUTHORS 2022-04-09 13:23:15 -04:00
Richard Feldman
86ce8c439f
Merge pull request #2822 from rtfeldman/nix-path-error
Give guidance about nix-shell's PATH inside BUILDING_FROM_SOURCE.md
2022-04-09 10:20:07 -04:00
Richard Feldman
e9acbe983f
Use array over vec for exists_many 2022-04-09 10:09:03 -04:00
Nikita Mounier
94df530a8d
Change wording using @rtfeldman suggestion.
Co-authored-by: Richard Feldman <oss@rtfeldman.com>
2022-04-09 11:07:00 +00:00
Richard Feldman
eb99c2c4ec
Grammar edit
Apparently although both "a homage" and "an homage" are considered grammatically acceptable, the latter is more commonly used.
2022-04-08 23:54:11 -04:00
Richard Feldman
babe281b5d
Merge pull request #2780 from rtfeldman/no-link
Add --no-link flag for more complex linking cases
2022-04-08 23:49:48 -04:00
Richard Feldman
dd56fdb61c
Fix regression with ZeroArgumentTag constraint gen
Turns out it can't share quite that much code with Tag,
because doing so skips the important function-based
constraints.
2022-04-08 21:31:19 -04:00
Richard Feldman
b2ff785a5e
Another clip bites the clip 2022-04-08 19:56:43 -04:00
Nikita Mounier
fa527b1888
Specify that in nix-shell's PATH, usr/bin needs to come after nix-related components
This was the source of quite a head-scratching error when building the compiler, only solved thanks to @ayazhafiz 's insight. Indeed, compilation of `roc_cli` was failing with an obscure error about linking with `cc` and not being able to find `-ltinfo`. Turns out the fix is as trivial as rearranging nix-shell's `PATH` a little.
I feel like nix-shell will become the default for many users who prefer delegating the necessary setup to the repo's script, and I definitely wish I had known about this when I was starting out.

Is this the right place to mention this or should it be somewhere else in the document?
2022-04-08 20:43:58 +00:00
Folkert de Vries
5dc8c852e9
Merge pull request #2815 from rtfeldman/i/2811
Specialize polymorphic values before binding to pattern
2022-04-08 21:44:11 +02:00
Ayaz
69ed0b755a
Merge pull request #2804 from rtfeldman/abilities-canonicalization
Basic canonicalization, error checking for abilities
2022-04-08 12:00:23 -04:00
Richard Feldman
b777b88e1c
Drop unused arguments field from ZeroArgumentTag 2022-04-08 11:53:16 -04:00
Richard Feldman
45b5df3a23
Extract constrain_tag helper function 2022-04-08 11:52:57 -04:00
Ayaz Hafiz
b3aee4ba7c
Fix typecheck error 2022-04-08 08:54:31 -04:00
Ayaz
33a5fc65ce
Update comment 2022-04-08 08:50:31 -04:00
Richard Feldman
8322ed95ed
Merge pull request #2806 from rtfeldman/toF32
Num.toF32/toF64 for LLVM backend
2022-04-08 08:28:07 -04:00