Luke Boswell
915097d792
Merge remote-tracking branch 'remote/main' into upgrade-llvm-zig
2024-10-08 18:21:24 +11:00
Omar Jatoi
3f318e2235
update existing calls to roc_cache_dir()
...
using `roc_cache_packages_dir()` instead, which will return "~/.cache/roc/packages", which was the existing functionality, but `roc_cache_dir()` will now return "~/.cache/roc"
2024-10-03 12:52:52 -04:00
Brendan Hansknecht
a7eae239f0
Avoid explicit tag padding
...
Explicit padding changes the c-abi when passed to/returned from functions.
This is leading to incorrect loading of types like `Task U64 {}`.
2024-09-16 16:47:20 -07:00
Luke Boswell
99e2bc2038
Merge remote-tracking branch 'remote/main' into upgrade-llvm-zig
2024-09-05 12:11:51 +10:00
Anton-4
69bbcfeeca
add nullable_unwrapped to exceptions
...
Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
2024-09-04 12:01:23 +02:00
Anton-4
5b202d3e8f
skip nonnullable_unwrapped
...
See https://github.com/roc-lang/roc/issues/5924 for context
Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
2024-09-04 11:43:30 +02:00
Luke Boswell
012a2fc63f
Merge remote-tracking branch 'remote/main' into rebuild-platform
2024-09-03 20:35:39 +10:00
Sam Mohr
12df3a04de
Merge attempt
2024-08-19 23:34:05 -07:00
Luke Boswell
861222078e
fix plumbing for roc_glue
2024-08-18 15:05:57 +10:00
Luke Boswell
ac78d393f9
Merge remote-tracking branch 'remote/main' into rebuild-platform
2024-08-17 17:43:35 +10:00
Sam Mohr
7edb5a8e3b
Remove unused backtrace
dependency
2024-08-16 10:31:56 -07:00
Luke Boswell
767ec7af84
cli run tests passing on macos
2024-08-16 17:59:53 +10:00
Luke Boswell
9ecb209f73
add suppress warning flag, remove test test_roc_app_slim
2024-08-16 11:29:39 +10:00
Sam Mohr
550baded7f
Merge branch 'main' into rebuild-platform
2024-08-14 19:39:30 -07:00
Sam Mohr
4ec213a114
Get tests working
2024-08-14 19:31:45 -07:00
Luke Boswell
57b277da5c
Merge remote-tracking branch 'remote/main' into upgrade-llvm-zig
2024-08-15 07:11:29 +10:00
Sam Mohr
db0c49b38f
Fix merge issue
2024-08-13 00:30:26 -07:00
Anton-4
12f9bacf6e
fix errors
2024-08-10 12:39:02 +02:00
Anton-4
635e6058cc
allow glue check toggle
2024-08-10 12:28:37 +02:00
Sam Mohr
77e1fe3f6e
Add Task.Task glue gen support
2024-08-03 04:08:17 -07:00
Luke Boswell
4f10552dd1
fix roc_glue test hosts
2024-07-31 13:54:58 +10:00
Brendan Hansknecht
9110457480
cleanup refcount generation for record fields
2024-07-13 10:39:59 -07:00
Brendan Hansknecht
3198ed5c8e
minimal generation to get glue tests passing
2024-07-13 10:39:58 -07:00
Brendan Hansknecht
2cd0d51409
add RocRefcounted to RocBox
2024-07-13 10:39:58 -07:00
Brendan Hansknecht
386f7a6729
update glue fixtures to new syntax
2024-07-13 10:39:58 -07:00
Brendan Hansknecht
6da61d0d16
re-enable glue tests and add unimplemented RocRefcounted impl
2024-07-13 10:39:58 -07:00
Brendan Hansknecht
9a020100a9
skip broken glue tests for now
2024-07-13 10:39:56 -07:00
Brendan Hansknecht
c79febb52d
Change RocRefcounted to have argumentless inc function
...
Just inc by 1. No need for inc by n.
2024-07-13 10:39:52 -07:00
Brendan Hansknecht
442ba0b49a
Manually implement RocRefcounted in Glue
...
I needed to update RustGlue.roc to generate this.
That said, I want to see and measure results.
As such, I am just manually implementing this for now!
2024-07-13 10:39:52 -07:00
Brendan Hansknecht
93fab26c01
Add a RocRefcounted trait in roc_std
...
This is required to properly handle refcounting of RocList.
Without it, we can't tell if we need to get the length from the heap.
That said, it isn't a pretty solution.
I think dealing with generating bespoke type in glue would feel nicer than this but be much more work.
It also would deal with the issue of implementations in the bitcode not matching external libraries.
That said, it would require exposing way more symbols from roc for each monomophorphized list variant.
2024-07-13 10:39:51 -07:00
Luke Boswell
dc0902bc92
WIP
...
WIP
WIP
WIP
ignore some cli tests that are going to move
try fix for linux valgrind tests
try a legacy host for valgrind
fix roc_glue tests
2024-07-09 13:48:09 +10:00
Brendan Hansknecht
69d670d27e
Merge pull request #6878 from roc-lang/glue-borrow
...
Update rust glue to allow for borrowing payloads from tags
2024-07-07 15:23:14 -07:00
Ayaz Hafiz
0e52a7e069
Make sure FunctionKind is determined in all entry points
...
There are a lot of entry points for a Roc program. They should probably
be all consolidated into one, but for now, when FunctionKind is needed,
determine it from the environment. This fixes EXPERIMENTAL_ROC_ERASE for
`roc test` etc.
Also print the location of a failure when `internal_error!` is called. I
think this should panic instead, and I thought it used to - does anyone
know if that changed?
2024-07-07 16:01:14 -05:00
Folkert
d5394345de
format RustGlue.roc
2024-07-06 16:14:33 +02:00
Folkert
047779d981
WIP infer join points too
2024-07-06 16:14:29 +02:00
Folkert
92100d710d
better panic message when glue command fails
2024-07-06 16:08:59 +02:00
Brendan Hansknecht
20a1f3c359
Update rust glue to allow for borrowing payloads from tags
2024-07-05 23:30:05 -07:00
Anton-4
c54c0e9741
skip advanced_recursive_union
...
see #5924
2024-06-19 15:37:14 +02:00
Agus Zubiaga
2da7ea394b
Add --main flag to specify app/package to resolve deps from
2024-06-07 17:09:44 -03:00
Luke Boswell
ddccf8ff59
update glue platform files to new syntax
2024-05-05 16:46:34 +02:00
Anton-4
c303be7553
Merge branch 'main' into rust-1-76-0-upgrade
2024-04-30 19:36:01 +02:00
Luke Boswell
87feeb5135
add abilities for glue types
2024-04-24 08:45:29 +10:00
Anton-4
e4b814ce1c
clippy
2024-04-15 16:50:44 +02:00
Anton-4
e26ef8abf9
clippy
2024-04-12 17:40:34 +02:00
Anton-4
62d39e8c25
clippy fixes
2024-04-06 18:11:54 +02:00
Oskar Hahn
aec618d5fc
Remove the .1 version libapp.so and the fileextension .1.0
2024-04-01 12:41:09 +02:00
Brendan Hansknecht
6dc5bfb1b7
Use roc_target over target_lexicon
...
Tailors a target class for our needs.
Replaces tons of uses across the entire compiler.
This is a base for later adding new targets like thumb.
2024-03-31 10:50:26 -07:00
Anton-4
f620508a37
misc improvements
2024-03-04 17:10:59 +01:00
Richard Feldman
24a38c4a26
Merge remote-tracking branch 'origin/main' into remove-nat
2024-02-11 12:26:36 -05:00
Anton-4
3c7a834da1
update to new interpolation syntax
2024-02-02 13:39:10 +01:00