Luke Boswell
760af4a04e
Merge remote-tracking branch 'remote/main' into str-dropping
2024-09-29 14:31:04 +10:00
Aurélien Geron
033d87034c
Add a test case for List.dropAt at an index located in the middle of the list
2024-09-19 10:05:48 +12:00
Sam Mohr
12df3a04de
Merge attempt
2024-08-19 23:34:05 -07:00
Luke Boswell
4be6c5d4ce
implement Str.dropPrefix and Str.dropSuffix
2024-08-17 17:21:37 +10:00
Sam Mohr
b1a972ab21
Implement &foo
record updater syntax sugar
2024-08-16 01:41:59 -07:00
Luke Boswell
6bae15c467
resolve review comments
2024-08-14 17:24:12 +10:00
Luke Boswell
7aebee8c94
implement Result.mapBoth and Result.map2 builtins
2024-08-14 13:16:24 +10:00
Luke Boswell
eca453d07f
Merge remote-tracking branch 'remote/main' into builtin-task
2024-07-29 16:05:51 +10:00
Joshua Warner
4f32f43048
Implement block / indent based parsing
...
... and enforce that defs can only occur in blocks (or, inside parenthesized expressions)
2024-07-27 13:34:16 -07:00
Brendan Hansknecht
a81d4b8b16
add extra test case from issue
2024-07-20 20:31:29 -07:00
Brendan Hansknecht
c5a74bdc12
for referenced values, use allocas instead of phi nodes
2024-07-20 19:52:11 -07:00
Luke Boswell
b489c44b19
Merge remote-tracking branch 'remote/main' into builtin-task
2024-07-19 19:51:50 +10:00
Brendan Hansknecht
f6c231e259
disable some previous and still failing tests
2024-07-15 19:01:40 -07:00
Brendan Hansknecht
1f5f0956b7
add basic_cli parsing based refcount test
2024-07-15 09:12:23 -07:00
Brendan Hansknecht
507d339691
fix infinite recursion in dev rc generation
2024-07-15 09:04:50 -07:00
Brendan Hansknecht
0533578562
add missed RocRefcounted
2024-07-13 10:39:58 -07:00
Brendan Hansknecht
9052fbd09c
fix List.sublist and add some more refcounting tests
2024-07-13 10:39:58 -07:00
Brendan Hansknecht
0d083bc192
fix dev-wasm ListGetUnsafe refcounting
2024-07-13 10:39:57 -07:00
Brendan Hansknecht
5d613cd5f5
add more refcounting test cases
2024-07-13 10:39:57 -07:00
Brendan Hansknecht
f4117c99d5
add more refcounting test cases
2024-07-13 10:39:57 -07:00
Brendan Hansknecht
8137e8aa84
add test case for List.map refcounting
2024-07-13 10:39:56 -07:00
Brendan Hansknecht
6712824891
correct arg mapping for inline refcounting calls
2024-07-13 10:39:56 -07:00
Brendan Hansknecht
b28e6b343a
cleanup gen_refcount and add new test based on map2
2024-07-13 10:39:56 -07:00
Brendan Hansknecht
a8bef30392
fix gen_refcount tests
2024-07-13 10:39:55 -07:00
Brendan Hansknecht
ad76fa2a4e
use calloc to make wasm tests consistent
2024-07-13 10:39:55 -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
Sam Mohr
f61b303a59
Merge branch 'main' into builtin-task
2024-07-03 00:42:48 -07:00
shua
0faa1d5f20
test_gen: replace stdlib Json with inline implementation
...
Towards the goal of removing Json from stdlib, this change replaces
usage of TotallyNotJson in test_gen/gen_abilities with a simple usable
inline implementation of Encoder/DecoderFormatting.
Similarly, the use of TotallyNotJson in test_reporting is not necessary
at all and is replaced with a Decoder that wouldn't actually work, but
which does compile.
2024-07-01 20:30:05 +02:00
Sam Mohr
700c7ae9aa
Add Task as a built-in module/type
2024-06-25 00:03:56 -07:00
shua
e2eb9c9aaa
rm dead FIXME comment
...
this comment was added originally in 24e6cd80e7
, but was a comment on a `if cfg(..) {...}` block. Later that `if` was removed but the comment was not, and eventually got copied to another location making it even harder to figure out why it's there.
2024-06-22 19:07:26 +02:00
Anton-4
da95b6d28b
Merge pull request #6791 from shua/concatutf8
...
builtin: List.concatUtf8 : List U8, Str -> Str
2024-06-11 16:21:30 +02:00
Agus Zubiaga
ec23c9a41b
Add missing argument in test_gen helpers/wasm
2024-06-10 10:18:51 -03:00
Agus Zubiaga
a1b84f01f5
Add missing argument in test_gen helpers/dev
2024-06-09 15:25:01 -03:00
Agus Zubiaga
4e5fdfbf52
Handle root type when loading from str
2024-06-08 19:46:41 -03:00
shua
f7bec802c0
PR: rename to List.concatUtf8
2024-06-08 13:36:20 +02:00
shua
33e8a7a439
implement Str.concatUtf8
2024-06-07 19:05:52 +02:00
Andy Ferris
e636853bc8
Run cargo fmt
2024-05-04 12:39:34 +10:00
Andy Ferris
c74cc19220
Fix unit test with lambda
2024-05-04 11:42:04 +10:00
Andy Ferris
03e9344a83
Add new constants to symbol table, attempt to add tests
2024-05-03 19:50:12 +10:00
Anton-4
f7011c8e33
Merge pull request #6644 from roc-lang/rust-1-76-0-upgrade
...
Rust 1.76.0 upgrade
2024-05-03 07:25:19 +02:00
Anton-4
ec874655dd
apply Ayaz review suggestions
2024-04-30 19:34:21 +02:00
Agus Zubiaga
7ebfc6d06d
Support both inline and header imports
...
Load will now convert header imports to inline import defs, so that
we can support both temporarily.
2024-04-20 19:04:09 -03:00
Anton-4
c1d0c24194
fix expected type
...
Rust's u128 and Roc's U128 have different alignment. They can not be used interchangebly, that leads to segmentation faults. See also 434410692
2024-04-20 19:57:47 +02:00
Anton-4
99ca3f545f
clippy
2024-04-16 20:02:08 +02:00
Fabian Schmalzried
6786fd45c0
add tests
2024-04-01 21:08:12 +02:00
Fabian Schmalzried
f145f73aa0
add tests for decimal point
2024-04-01 21:08:11 +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
Richard Feldman
37b154df4f
Remove Str.fromUtf8Range
...
Seamless slices make this obsolete!
2024-02-17 13:20:33 -05:00
Richard Feldman
30712d352a
Silence some unused test macro warnings
2024-02-14 20:16:39 -05:00
Richard Feldman
3aec2a9182
Address some unused warnings
2024-02-14 13:47:26 -05:00