Commit Graph

14346 Commits

Author SHA1 Message Date
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
Folkert
e281ca7152
remove dependency 2022-04-10 21:42:39 +02:00
Folkert
2cb175df10
use cached subs, run solve tests single-threaded 2022-04-10 21:22:15 +02:00
Folkert
78735b6159
remove unused code 2022-04-10 21:15:29 +02:00
Folkert
823d4678a8
import Box in box tests 2022-04-10 20:12:59 +02:00
Folkert
6ef443d1b0
Merge remote-tracking branch 'origin/trunk' into builtins-in-roc 2022-04-10 19:14:00 +02:00
Folkert
be1f06f872
fix name suggestions in reporting tests 2022-04-10 17:17:00 +02:00
Folkert
0551b564bd
fix num import issues in reporting tests 2022-04-10 17:09:50 +02:00
Folkert
52b58ecdf3
don't write to (temp) file in solve tests 2022-04-10 16:22:35 +02: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
Folkert
a4c8ebd55e
fix can tests; qualify imports from num 2022-04-09 14:41:45 +02:00
Folkert
f7ee7c5552
ignore box tests in repl (can't import Box) 2022-04-09 14:12:21 +02:00
Folkert
3b29568221
clippy 2022-04-09 14:12:03 +02:00
Folkert
a15ff20eec
give back the subs of the root module (for the repl) 2022-04-09 14:11:50 +02: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
Folkert
9d966d439f
fix solve tests 2022-04-09 12:29:49 +02:00
Folkert
166c949c3b
clippy 2022-04-09 12:24:12 +02:00
Folkert
bdfed2e699
disable usage of cached modules, but do the caching 2022-04-09 12:23:47 +02:00
Folkert
691e8ee068
remove unused alias code 2022-04-09 12:23:30 +02:00
Folkert
c9b29c773f
simplify GeneratedInfo 2022-04-09 12:23:18 +02:00
Folkert
c93805ea87
restore effects.roc example 2022-04-09 12:23:01 +02:00
Folkert
37bb19b032
for now always generate constraints 2022-04-09 12:13:20 +02:00
Folkert
76037de335
ignore test for now 2022-04-09 12:11:11 +02:00
Folkert
4d780ec090
disable use of cached subs temporarily 2022-04-09 12:05:35 +02:00
Folkert
d2756919fd
treat Box.Box as a builtin opaque type 2022-04-09 12:04:12 +02:00
Folkert
a7c87af065
typo 2022-04-09 11:39:57 +02:00
Folkert
c32f851394
explicitly import Box 2022-04-09 11:35:06 +02:00
Folkert
fe77cb3b16
write functions, that can be written in roc, in roc 2022-04-09 11:34:24 +02: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
Folkert
e9f7427c67
fix some things in Num 2022-04-08 20:24:17 +02:00
Folkert
4dafe08544
better debug messages 2022-04-08 19:51:20 +02:00
Folkert
ffd4566c29
remove code that saves Subs to a .dat file (it's located elsewhere now) 2022-04-08 19:51:05 +02:00
Folkert
795e24245c
generate all modules on this branch 2022-04-08 19:50:25 +02:00
Folkert
b7eacbf120
some tweaks to the builtin roc code 2022-04-08 19:35:26 +02:00