Commit graph

9405 commits

Author SHA1 Message Date
Joshua Warner
0295bb58da
Merge pull request #7245 from joshuawarner32/dbg-expr-only
Make dbg always be parsed as an expression
2024-11-26 17:41:28 -08:00
Brendan Hansknecht
e40b3cd6a9
Merge pull request #7235 from shua/devneg
impl Num.neg for Dec,F32,F64 in repl
2024-11-26 13:29:19 -08:00
Joshua Warner
b4fdb0a4c2
Make dbg parse strictly as an Apply
This is important in order to fix some formatting bugs found in fuzzing
2024-11-24 14:15:29 -08:00
shua
a98acff0b9
gen-dev: impl Num.neg for Dec,F32,F64
Dec negation was implemented across gen-dev, gen-llvm, gen-wasm as a call
to the compiled zig function `bitcode::DEC_NEGATE`.

f32 and f64 negation were implemented already for gen-llvm, gen-wasm.

for gen-dev x86_64, float negation is implemented by flipping the sign
bit, which means `xorps` for f32, and `xorpd` for f64

for gen-dev aarch64, there is conveniently a `fneg` instruction
2024-11-23 19:17:55 +01:00
Sam Mohr
c5b2e160ca
Ignore switch stmt ret_layout 2024-11-21 09:52:38 -08:00
Sam Mohr
899a7d3308
Add reporting tests for annotated functions with early returns 2024-11-21 04:38:58 -08:00
Sam Mohr
f857872903
Properly type constrain all function types 2024-11-21 04:09:47 -08:00
Sam Mohr
20ba4a92de
Merge branch 'main' into constrain-early-return-functions 2024-11-21 02:45:14 -08:00
Luke Boswell
34f5b61c3b
restore --no-link build pipeline 2024-11-21 16:20:05 +11:00
Anton-4
d123d0f256
back to old architecture display
arm64 causes issues on raspberry pi

Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
2024-11-20 20:04:25 +01:00
Anton-4
28b3e9f221
Merge pull request #7220 from svcxc/multilingual-testing
Glue tests are no longer hard-coded to Rust
2024-11-19 13:41:39 +01:00
Anton-4
5ac7b193a9
Merge pull request #7229 from JRI98/remove_unused_ast_expr_expect
Remove unused ast::Expr::Expect
2024-11-19 13:32:45 +01:00
Anton-4
b849cdc7eb
Merge pull request #7230 from roc-lang/fix-nightly-many-os-tests
nightly tests fixes
2024-11-19 13:31:08 +01:00
Anton-4
8e23f96fbd
nightly tests fixes 2024-11-19 11:41:50 +01:00
svcxc
14ec7e4b0b
add doc comment 2024-11-19 11:28:33 +01:00
svcxc
c84e71602c
deleted erroneous host.c files 2024-11-19 11:28:32 +01:00
Sam Mohr
7ca305b5dc
Merge branch 'main' into constrain-early-return-functions 2024-11-18 15:04:34 -08:00
JRI98
addf876672
Remove unused dependency 2024-11-18 18:39:34 +00:00
Anton-4
9eb72959e5
update skip test names
Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
2024-11-18 17:51:21 +01:00
JRI98
de4179d5e1
Remove unused ast::Expr::Expect 2024-11-18 14:13:46 +00:00
JRI98
a18232bd8b
Cleanup after #7227 2024-11-18 11:04:07 +00:00
Joshua Warner
9ead801536
Remove expect-fx syntax and handling
This was never fully hooked up in platforms, and the plan is to replace the need for this with doing purity-inference on normal `expect` statements.

On the other hand, fuzzing is finding some bugs caused by having a hyphenated keyword, so this is a great time to go ahead and remove it!
2024-11-17 20:25:37 -08:00
Anton-4
7bf3701c9e
Merge pull request #7213 from roc-lang/list-splitting
Rename List.split to List.splitAt and add List.splitOn and List.splitOnList
2024-11-16 20:15:41 +01:00
Anton-4
19a716b8e9
Merge pull request #7225 from joshuawarner32/fuzzing-bugs
Fix some bugs found via fuzzing
2024-11-16 19:46:12 +01:00
Anton-4
47d810e059
fix example
Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
2024-11-16 19:30:47 +01:00
Joshua Warner
550113df67
Fix some bugs found via fuzzing
* Keywords need to still be recognized if they're followed by ',' as well as a bunch of other operator characters. Notably missing from this list is '-', since that would mess up expect-fx currently.
* Smattering of niche cases of formatting bugs (either non-idempotency, leading to different code, or leading to unparsable code)
* One missing indent call in fmt_collection leading to a panic
2024-11-15 21:33:44 -08:00
Isaac Van Doren
35f221d9de
Merge branch 'main' of https://github.com/roc-lang/roc into list-splitting 2024-11-15 21:12:51 -06:00
Isaac Van Doren
d99c347998
rename Str.split 2024-11-15 21:12:23 -06:00
Isaac Van Doren
d0735f2661
remove List.split 2024-11-15 20:31:37 -06:00
Luke Boswell
57b3a3c2f7
Merge pull request #7196 from jfkonecn/hotfix/search-nav
Fixed broken link for doc search on ios
2024-11-16 10:33:05 +11:00
Anton-4
3b2331299f
Merge branch 'main' into multilingual-testing 2024-11-15 14:32:47 +01:00
svcxc
abf685be11
type in code, forgot to commit 2024-11-15 10:27:30 +01:00
svcxc
f58b0f31e2
removed stray dbg! 2024-11-15 10:05:40 +01:00
svcxc
25f7be8d5a
updated ZigGlue.roc header 2024-11-15 09:59:32 +01:00
svcxc
5617d2d0ce
allow for missing fixture-templates subfolders, as git ignores them when they're empty 2024-11-15 09:54:53 +01:00
svcxc
99a5fa9d3c
formatting 2024-11-15 09:40:52 +01:00
svcxc
1ae9359060
tried removing and gitignoring build files 2024-11-15 09:33:44 +01:00
Luke Boswell
8dbc9094de
Merge pull request #7176 from JRI98/unused_malformed
Remove unused malformed related variants
2024-11-15 15:22:26 +11:00
Joshua Warner
8fd83a483b
Merge pull request #7218 from joshuawarner32/clean-shutdown
Prevent panics in worker threads from causing deadlocks
2024-11-14 17:19:49 -08:00
Luke Boswell
f5b4f8021e
Merge branch 'main' into hotfix/search-nav 2024-11-15 07:11:31 +11:00
Luke Boswell
0804758895
Merge pull request #6967 from jfkonecn/test-mulitple-files
Roc test can now support multiple files
2024-11-15 07:10:55 +11:00
svcxc
95b39ce7f2
glue tests are no longer hard-coded to Rust 2024-11-14 11:55:58 +01:00
JRI98
a332acd7bf
Remove unused malformed related variants 2024-11-14 10:23:06 +00:00
Joshua Warner
d6b7ee2039
Prevent panics in worker threads from causing deadlocks
Occasionally, we'll run into panics during compilation which prior to this diff
would cause the compiler to hang indefinitely after printing the initial panic message.

Note that this simplified/renamed worker 'wakeup' system seems to leave around a bit of a code smell -
that this perhaps indicates we should rework/refactor in order to avoid the necessity of having separate wakeup and message stealing systems...
but one problem at a time!
2024-11-13 20:30:56 -08:00
Isaac Van Doren
cf05fe03e9
refactor implementation to avoid bug 2024-11-13 20:21:42 -06:00
Anton-4
0ab04c0d7e
remove mentions of --prebuilt-platform 2024-11-13 18:52:01 +01:00
Isaac Van Doren
efae03240e
fix ordering again 2024-11-12 22:12:02 -06:00
Isaac Van Doren
9a14991c8f
update mono tests 2024-11-12 21:58:00 -06:00
Isaac Van Doren
ae4d682806
change symbol ordering 2024-11-12 21:28:10 -06:00
Isaac Van Doren
8f0ca0c91c
fix numbering 2024-11-12 21:24:24 -06:00