Commit graph

511 commits

Author SHA1 Message Date
Brendan Hansknecht
121d15a2a6
Merge pull request #5423 from roc-lang/dev-backend-linked-list
Dev backend linked list
2023-06-01 13:59:28 +00:00
Brendan Hansknecht
ccb434bae1
Update cli_run cli_args test
Note: this answer is less correct,
but that is because zigs sub answers are more correct.

Zig specifically gives a more accurate answer for Num.log 3.
old answer:     1.0986122886681098
zig's answer:   1.0986122886681096
correct answer: 1.098612288668109691395

Both answers are technically correct when limited to doubles.
Zig's answer is closer to truly correct.
That said, the more correct answer leads to a slight rounding error in the final division.
So the new output is 4.000000000000001 instead of 4.0
2023-05-31 22:15:05 -07:00
Folkert
8833096a07
clippy 2023-05-31 23:57:37 +02:00
David Smith
b9981ece1e
Only suggest subcommands if not a .roc path 2023-05-27 11:25:55 -04:00
David Smith
3930d117f4
Switch comment style to docstring 2023-05-26 10:00:30 -04:00
David Smith
1abcfb1f94
Improve error message for subcommand typo to include command suggestion 2023-05-26 10:00:30 -04:00
David Smith
ed9953f564
Clippy 2023-05-26 10:00:30 -04:00
David Smith
7435a65d0f
Remove -- requirement for roc [FILE] to allow better messaging 2023-05-26 10:00:30 -04:00
David Smith
051fca2f68
Share stripping of ignorable strings in has_error helper 2023-05-17 10:08:16 -04:00
David Smith
58cb8352bb
Consistent handling of ld chained fixup warning in cli/glue tests 2023-05-16 17:12:13 -04:00
David Smith
e1e72a3713
Updates after rebase 2023-05-15 12:31:42 -04:00
David Smith
d06d0dbf9c
Convert --prebuilt-platform to bool flag
With this change, it's no longer possible to cross-compile to any target
other than wasm.
2023-05-15 10:40:37 -04:00
David Smith
54c130ca1a
Address review comments
- Remove `num_args` call that wasn't supposed to be there
- Factor out shared value parser with non-trivial init
2023-05-15 10:40:37 -04:00
David Smith
003aacbf28
Remove unnecessary num_args for an optional single arg 2023-05-15 10:40:37 -04:00
David Smith
0f943c3e64
Code changes for clap 4 upgrade 2023-05-15 10:40:37 -04:00
Maldus512
9e40c69d1c
From Cow to Display 2023-05-14 22:59:55 +02:00
Maldus512
0389a662e2
Fixes issue #5394 2023-05-14 17:42:18 +02:00
Richard Feldman
039599da6a
Fix test 2023-05-09 20:20:21 -04:00
Folkert
66be08d073
allow configure of whether roc_alloc is generated 2023-05-01 18:41:47 +02:00
Folkert
d13ca51095
add --dev flag to glue 2023-05-01 18:39:11 +02:00
Brendan Hansknecht
dd8914a75c
corret CodeGenBackend::Wasm to only be dev wasm backend 2023-04-26 07:29:32 -07:00
Brendan Hansknecht
031a16168a
fix matching for opt_level in build 2023-04-26 07:18:36 -07:00
Brendan Hansknecht
0e24403664
enable using other zig libaries in host instead of just str.zig 2023-04-25 14:14:35 -07:00
Folkert
394495d307 Revert "update size asserts"
This reverts commit 9973d4b8d2.
2023-04-21 13:22:23 +02:00
Folkert
4cd8f0a056 clippy --fix fixes 2023-04-21 12:05:51 +02:00
Anton-4
49b4d9318d
fixed serial deadlock
Some tests used to require multiple locks and one test acquired lock A but failed to acquire lock B, another test was holding lock B and required lock A. That way you get stuck! I've turned those multiple locks into a bigger shared one, deadlock proof.
2023-04-11 12:11:04 +02:00
Brendan Hansknecht
8ed134607b
use indoc for formatting 2023-04-09 21:20:38 -07:00
Brendan Hansknecht
9a87675368
fix typo 2023-04-09 21:13:21 -07:00
Brendan Hansknecht
df9f5a946e
add test case for ingesting as bytes with type hole 2023-04-09 14:03:34 -07:00
Brendan Hansknecht
fdf8bc6094
fix formatting 2023-04-09 14:03:34 -07:00
Brendan Hansknecht
030597c59a
add example use with cli_run test 2023-04-09 14:03:34 -07:00
Brendan Hansknecht
e5b88366fe
add proper error messages for ingested files 2023-04-09 14:03:33 -07:00
Brendan Hansknecht
8f4945f286
make file loading errors that happen late in compilation still fatal 2023-04-09 14:03:33 -07:00
Folkert
99a3c08911
bake roc_alloc and friends into the dynamic library for glue 2023-03-29 19:43:59 +02:00
Brendan Hansknecht
2f6f5c09a0
remove old windows specific symbols. Now added by glue 2023-03-28 14:40:50 -07:00
Richard Feldman
977b7394f5
Reorder roc glue arguments and add a default 2023-03-24 22:17:54 -04:00
Richard Feldman
194e74ec38
Fix typo 2023-03-24 20:53:22 -04:00
Brendan Hansknecht
8d5f443fcd
Merge remote-tracking branch 'origin/main' into pluggable-glue 2023-03-21 11:07:47 -07:00
Richard Feldman
2276c78d9f
Merge pull request #5093 from roc-lang/glue-getters-rtfeldman
Glue for functions and closures
2023-03-21 08:12:19 -04:00
Anton-4
6e0dc30797
fixes, build tar.br now 2023-03-20 16:32:54 +01:00
Anton-4
3eda00cb62
Merge pull request #5144 from lukewilliamboswell/static-site
Add code file import feature for `static-site-gen` platform
2023-03-20 11:16:57 +01:00
Folkert de Vries
bd3982241e
Merge pull request #5036 from roc-lang/tutorial_updates
tutorial: update to basic-cli 0.2.1, fix typos
2023-03-17 11:46:36 +01:00
Brendan Hansknecht
ba804cc382
clippy 2023-03-16 12:25:52 -07:00
Brendan Hansknecht
5cb41cb81d
switch false test case to one that will repro the bug and enable valgrind for it 2023-03-16 12:12:28 -07:00
Luke Boswell
bea3a4f2f7
add static code file import for site gen 2023-03-15 20:59:58 +11:00
Anton-4
1f92508c55
clippy 2023-03-14 19:17:36 +01:00
Anton-4
0605639fa8
fix editor test 2023-03-14 18:24:30 +01:00
Anton-4
16f32c9409
don't build editor for CLI by default 2023-03-14 16:36:03 +01:00
Brendan Hansknecht
e32c5f6514
standardize on decref instead of deinit for name 2023-03-13 14:08:23 -07:00
Anton-4
fe066e5567
Merge branch 'main' of github.com:roc-lang/roc into tutorial_updates 2023-03-13 19:46:05 +01:00