Commit graph

25228 commits

Author SHA1 Message Date
Folkert
02a5c53aed
format 2023-06-19 22:09:35 +02:00
Folkert
f66a20ecff
make examples/glue work 2023-06-19 20:54:06 +02:00
Richard Feldman
24e9209e81
Merge pull request #5572 from Hasnep/rename-str-trim-functions
Rename `trimLeft` to `trimStart` and `trimRight` to `trimEnd`
2023-06-19 07:51:43 -04:00
Hannes
97fa6758d0 Rename trimLeft to trimStart and trimRight to trimEnd 2023-06-19 13:17:59 +08:00
Anton-4
d10d71cdec
Merge pull request #5549 from HajagosNorbert/builtin-docs
Add examples to the docs of builtin List functions
2023-06-18 11:28:19 +02:00
Folkert de Vries
020eb0c7dd
Merge pull request #5564 from roc-lang/tutorial-small-fixes
tutorial small fixes
2023-06-18 11:15:56 +02:00
Ayaz
f3be9c456c
Merge pull request #5560 from roc-lang/interner-avoid-mut
Avoiding passing target_info and mutable layout interner redundantly
2023-06-18 04:14:57 -05:00
Anton-4
b51689525d
Merge branch 'main' of github.com:roc-lang/roc into tutorial-small-fixes 2023-06-18 10:20:44 +02:00
Ayaz Hafiz
f07cf97128
Use arch-specific interner in glue 2023-06-17 18:13:03 -05:00
Ayaz Hafiz
d10893947f
Use rust 2018 macros 2023-06-17 18:13:03 -05:00
Ayaz Hafiz
41597cbab7
Do not make LayoutInterner mutable 2023-06-17 18:13:03 -05:00
Ayaz Hafiz
c81a652aaa
Dont insert into interner at all 2023-06-17 18:13:03 -05:00
Ayaz Hafiz
8aef12bd36
call_roc_function takes repr 2023-06-17 18:13:02 -05:00
Ayaz Hafiz
46e0ce32f4
no insert direct in expect 2023-06-17 18:13:02 -05:00
Ayaz Hafiz
61e28bc1d8
No need to insert into interner 2023-06-17 18:13:02 -05:00
Ayaz Hafiz
6139918e3b
Remove insert_direct_no_semantic in compare eq 2023-06-17 18:13:02 -05:00
Ayaz Hafiz
7ab044d79f
argument_type_from_layout takes layoutrepr 2023-06-17 18:13:02 -05:00
Ayaz Hafiz
ee25735731
LayoutIds use LayoutRepr 2023-06-17 18:13:02 -05:00
Ayaz Hafiz
94e97df54a
Remove mut layout interner from alias analysis 2023-06-17 18:13:02 -05:00
Ayaz Hafiz
390e9f8648
load_roc_value by layoutrepr 2023-06-17 18:13:01 -05:00
Ayaz Hafiz
07f40baf62
use_roc_value by layoutrepr 2023-06-17 18:13:01 -05:00
Ayaz Hafiz
5979405b79
Store value by layoutrepr 2023-06-17 18:13:01 -05:00
Ayaz Hafiz
bc41db2a34
Get rid of passing target_info a bunch 2023-06-17 18:13:00 -05:00
Ayaz Hafiz
8495f3b085
Have basic_type_from_layout take LayoutRepr 2023-06-17 18:12:17 -05:00
Brendan Hansknecht
555cbcc87b
Merge pull request #5567 from KilianVounckx/num-bitwise-not
Add bitwiseNot to Num module
2023-06-17 21:29:19 +00:00
Kilian Vounckx
10c34ef326
Fix bitwise operations documentation 2023-06-17 21:33:06 +02:00
HajagosNorbert
4e06c09e37
ran roc format on changed List.roc file 2023-06-17 21:28:20 +02:00
HajagosNorbert
892d5e2c78
Merge branch 'main' into builtin-docs 2023-06-17 21:25:25 +02:00
Ayaz
ab5adaf8ef
Merge pull request #5566 from roc-lang/nix-install-mac-ci-fix
Update nix_macos_x86_64.yml
2023-06-17 13:44:02 -05:00
Kilian Vounckx
5512dd9675
Add documentation for bitwise functions 2023-06-17 20:25:36 +02:00
Kilian Vounckx
402a89237d
Add Num.bitwiseNot function 2023-06-17 20:08:33 +02:00
Anton-4
e3bbda6fee
Update nix_macos_x86_64.yml
fixes: Could not set environment: 150: Operation not permitted while System Integrity Protection is engaged
see also: https://github.com/cachix/install-nix-action/issues/183

Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
2023-06-17 19:34:02 +02:00
Anton-4
de93c96125
fix desugaring table
Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
2023-06-17 17:10:29 +02:00
Anton-4
48ba897590
tutorial small fixes
Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
2023-06-17 16:55:35 +02:00
Anton-4
bb6f95de84
Merge pull request #5555 from KilianVounckx/num-constants
Add number constants
2023-06-17 16:42:28 +02:00
Anton-4
199a85a7dd
remove pending-snap file 2023-06-17 15:46:28 +02:00
Kilian Vounckx
c6d90e5c1d
Update typo error test 2023-06-17 15:40:42 +02:00
KilianVounckx
0dd8bb9841
Merge branch 'roc-lang:main' into num-constants 2023-06-17 15:09:30 +02:00
Anton-4
1c77ddf10b
Merge pull request #5563 from roc-lang/operator-tutorial-fix
add missing example
2023-06-17 15:04:57 +02:00
Folkert de Vries
f9ce63b529
Merge pull request #5558 from roc-lang/llvm-pass-large-values-by-reference-followup
Fast-follow on LLVM pass-by-reference
2023-06-17 14:52:36 +02:00
Anton-4
31d41dbccb
add missing example
fixes #5556 

Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
2023-06-17 14:09:53 +02:00
Ayaz Hafiz
6c4f76c5c9
Pass tag target ptr rather than alloca 2023-06-16 21:06:49 -05:00
Ayaz Hafiz
a7978abdc9
Fix nullable unwrapped code generation 2023-06-16 18:11:51 -05:00
Ayaz Hafiz
465cee053e
Have RocUnion::as_struct_value return an alloca instead
Saves a useless store/load.
2023-06-16 17:54:17 -05:00
Ayaz Hafiz
0403509f64
Get rid of unnecessary comment 2023-06-16 17:51:47 -05:00
Ayaz Hafiz
9ecb1bbd73
Add rationale for passing values by reference 2023-06-16 17:51:13 -05:00
Ayaz
0f327d9f38
Merge pull request #5544 from roc-lang/llvm-pass-large-values-by-reference
Llvm pass large structs by reference
2023-06-16 16:39:11 -05:00
Ayaz Hafiz
942fb37155
Revert unconditional branch taken 2023-06-16 15:27:56 -05:00
Ayaz Hafiz
f7b5400c6e
Revert "Bump max by-value size"
This reverts commit e53937bba6.
2023-06-16 15:26:09 -05:00
Ayaz Hafiz
314cc7855a
Revert "Check if benchmarks are weird"
This reverts commit 24e7a56f4b.
2023-06-16 15:26:02 -05:00