Commit Graph

23309 Commits

Author SHA1 Message Date
dankeyy
fed4298313
Merge branch 'roc-lang:main' into python-interop 2023-02-16 15:22:30 +02:00
dankeyy
fa59c5f19f
Update README.md
Signed-off-by: dankeyy <dankeyy@protonmail.com>
2023-02-16 15:21:17 +02:00
dankeyy
6bd23b4dbf
cleanup and clarify build 2023-02-16 15:16:13 +02:00
dankeyy
e76efb49a2
end by length, not null byte 2023-02-16 14:28:51 +02:00
dankeyy
54fc0f7fb1
added readme 2023-02-16 13:48:31 +02:00
dankeyy
34c0cf1ed6
another option for string creation 2023-02-16 13:14:54 +02:00
dankeyy
69ff8b93c2
added build script 2023-02-16 11:44:42 +02:00
dankeyy
ecb8cac774
change to setuptools, remove unneeded fields 2023-02-16 11:41:42 +02:00
dankeyy
b18ea846a3
add gitignore 2023-02-16 11:40:32 +02:00
dankeyy
a080fcae27
first demo working! 2023-02-16 10:19:11 +02:00
Ayaz
b5fe932c22
Merge pull request #5033 from roc-lang/c-return-empty-tag-union
fix for when C has to return an empty tag union
2023-02-15 11:26:03 -06:00
Anton-4
63d34f6fdb
Merge pull request #5034 from roc-lang/tutorial-typo
tutorial: Comma in record should be colon
2023-02-15 18:18:42 +01:00
Anton-4
25716eb7d1
Comma in record should be colon
Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
2023-02-15 15:49:08 +01:00
Folkert
178e80fa9a
fix for when C has to return an empty tag union 2023-02-15 15:30:26 +01:00
Folkert de Vries
d1a22316fc
Merge pull request #5012 from lucacervello/add-spaces-around-optional-record-field
Add spaces around ? in optional record field
2023-02-15 15:05:08 +01:00
Anton-4
b054977e00
Merge pull request #5008 from lukewilliamboswell/optional-records
Adding Optional records to Tutorial
2023-02-15 09:54:46 +01:00
Ayaz
b0d3d8fc7c
Merge pull request #5029 from roc-lang/lambda-set-cleanup 2023-02-14 08:51:35 -06:00
Folkert de Vries
c8d418218e
Merge pull request #5028 from roc-lang/i5026
Do not fixup recursion pointers in non-recursive lambda sets
2023-02-14 15:21:05 +01:00
Ayaz Hafiz
e53ee1475e
Revert example changes 2023-02-13 23:24:44 -06:00
Anton-4
436593c08c
Merge pull request #5002 from roc-lang/basic_cli_musl
basic-cli release with musl target + more testing
2023-02-14 04:49:52 +01:00
Ayaz Hafiz
b11cf19658
Remove unreachable lambda set layout branches
Lambda sets can only appear under function types, so we don't need to
handle them independently in layout gen.
2023-02-13 17:50:24 -06:00
Ayaz Hafiz
b406e384fc
Print recursion variables correctly in pretty printer 2023-02-13 17:42:21 -06:00
Ayaz Hafiz
4844c278a8
Be sure to correctly print multiple unrelated recursion structures as needed 2023-02-13 17:15:34 -06:00
Ayaz Hafiz
a3de22c88a
Do not fixup recursion pointers in non-recursive lambda sets
If a lambda set is non-recursive, but contains naked recursion pointers,
we should not fill those naked pointers in with the slot of the lambda
set during interning. Such naked pointers must belong to an encompassing
lambda set that is in fact recursive, and will be filled in later.

For example, `LambdaSet([Foo, LambdaSet(Bar, [<rec>])] as <rec>)` should
not have the inner lambda set's capture be filled in with itself.

Also, during reification of recursion pointers, we do not need to
traverse re-inserted lambda sets again, since they were just fixed-up.

Closes #5026
2023-02-13 17:14:04 -06:00
Anton-4
2321fa7504
Merge pull request #5025 from roc-lang/windows-flakes
ignore breakout test on windows
2023-02-13 17:43:33 +01:00
Anton-4
80c43b552c
Merge pull request #5021 from dankeyy/fix_nixos_static_pie
fix error trigger for static-pie platforms
2023-02-13 15:22:51 +01:00
Anton-4
51c28317e5
back to target-cpu=native
Without this a segmentation fault occurred in the gen tests `gen_tags` on linux.

Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
2023-02-13 15:03:33 +01:00
Anton-4
80885151b6
ignore breakout test on windows 2023-02-13 13:55:05 +01:00
Anton-4
fb94abad13
Merge pull request #5013 from roc-lang/remove-native
[Simple PR] Remove native from rust flags
2023-02-13 11:50:46 +01:00
dankeyy
d73b2737f4
fix error trigger for static-pie platforms 2023-02-12 10:52:28 +02:00
Anton-4
60f7cee077
cleanup 2023-02-11 20:01:26 +01:00
Anton-4
edfd8ff6f6
correct urls 2023-02-11 18:53:02 +01:00
Folkert de Vries
e3f11a73ce
Merge pull request #5019 from roc-lang/gen-dev-str-starts-with
dev backend: various string functions
2023-02-11 17:55:11 +01:00
Anton-4
c571de9d5b
path fix 2023-02-11 16:31:18 +01:00
Anton-4
259e1df1d8
fix paths 2023-02-11 16:18:08 +01:00
Anton-4
fbc680bd72
Merge pull request #4972 from kantuni/patch-1
Fix rwx logo
2023-02-11 16:15:22 +01:00
Anton-4
d8d2dca120
minor language changes
Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
2023-02-11 15:10:40 +01:00
Folkert
eb48f01f63
Str.startsWith, str.endsWith and friends 2023-02-11 00:51:04 +01:00
Folkert
8df8c19ae2
dev backend: Box.unbox and List.get str 2023-02-10 20:19:50 +01:00
Folkert
4d1a6b17a8
dev backend: box a str 2023-02-10 20:19:50 +01:00
Folkert
587c5c18d7
mono refcount: use box instaed of non-nullable unwrapped 2023-02-10 20:19:49 +01:00
Folkert
8421824e31
WIP 2023-02-10 20:19:49 +01:00
Folkert
f32d31341a
add basic functionality of Str.split 2023-02-10 20:19:49 +01:00
Luke Boswell
e3d9bb098c
refer to Result for data modelling 2023-02-10 10:41:52 +11:00
Luke Boswell
e02b61c330
add description in strings for optional records 2023-02-10 10:40:28 +11:00
Luke Boswell
f35f5b3b4a
Apply suggestions from code review
Co-authored-by: Ayaz <20735482+ayazhafiz@users.noreply.github.com>
Signed-off-by: Luke Boswell <lukewilliamboswell@gmail.com>
2023-02-10 10:24:42 +11:00
Folkert de Vries
301bf0f367
Merge pull request #5009 from roc-lang/dev-box-box
implement Box.box and Box.unbox in the dev backend
2023-02-09 18:04:53 +01:00
Folkert
625b9c161a
implement wasm traits for roc_std::RocBox 2023-02-09 14:55:08 +01:00
Brendan Hansknecht
81e134627a
remove native from rust flags
It isn't currently faster and it blocks user rustflags in their home/.cargo/config.toml
2023-02-08 14:32:13 -08:00
Brendan Hansknecht
e654b8655f
Merge pull request #5003 from roc-lang/dev-allocate-with-refcount
use `allocate_with_refcount` in the dev backend
2023-02-08 20:08:47 +00:00