Commit graph

724 commits

Author SHA1 Message Date
Anton-4
c4b0a2ec29
Merge pull request #5620 from roc-lang/dict-set
Add some missing Dict and Set functions
2023-06-29 12:06:49 +02:00
Richard Feldman
0ade2a85d2
Merge pull request #5622 from roc-lang/reset-reuse-free
free or reuse unconditionally when value is unique
2023-06-28 09:58:10 -04:00
Folkert
f04295863d
reuse free'ing logic 2023-06-27 19:37:22 +02:00
Richard Feldman
ed9d9b12f5
Add some missing Dict and Set functions
Also remove some unnecessary Hash and Eq restrictions
2023-06-27 11:50:58 -04:00
Folkert
fc3004da58
free or reuse unconditionally when value is unique 2023-06-27 17:37:45 +02:00
Brendan Hansknecht
4f97ab2965
remove old compiler-rt workarounds for macos 2023-06-24 17:27:11 -07:00
ibalbaert
6851741c8a
Update Result.roc
Changed deprecated Num.negate in Result.map docs to Num.neg

Signed-off-by: ibalbaert <ivo.balbaert@telenet.be>
2023-06-22 11:05:48 +02: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
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
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
Kilian Vounckx
ab0969f7bb
Add fractional constants 2023-06-15 20:31:17 +02:00
Anton-4
c8ebe9071c
Box.roc documentation
Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
2023-06-14 11:09:37 +02:00
HajagosNorbert
fe2e175d0f
add examples to builtin List 2023-06-13 20:12:32 +02:00
HajagosNorbert
232e9030ae
Add docs to List.get with example 2023-06-13 20:12:29 +02:00
Fábio Beirão
d7f03a680e
Run roc format on builtins
Contributes to #5533
2023-06-09 16:07:14 +02:00
Fábio Beirão
ec94fc87a5
Add Num.min and Num.max
Implements #5533
2023-06-09 14:17:54 +02:00
Luke Boswell
092676c4b7
Merge remote-tracking branch 'remote/main' into remove-json 2023-06-07 15:38:01 +10:00
Luke Boswell
d9a5fe9034
roc format 2023-06-04 18:24:14 +10:00
Luke Boswell
c1ff49be6c
change just Json module name 2023-06-04 17:37:01 +10:00
Brendan Hansknecht
829b71aa1f
fully take ownership of memcpy in the builtins 2023-06-03 19:05:19 -07:00
Brendan Hansknecht
a745b57fb2
move cpuid functions into separate assembly file 2023-06-02 16:16:40 -07:00
Brendan Hansknecht
b899b54354
change assembly comment style to hopefully fix windows 2023-06-02 15:54:08 -07:00
Brendan Hansknecht
341ef9bb7b
prefix assembly functions with _ on macos 2023-06-02 15:26:39 -07:00
Brendan Hansknecht
60babcc56e
fix typo 2023-06-02 15:23:07 -07:00
Brendan Hansknecht
7b8bd988d4
change to more specific .balign assembly attribute 2023-06-02 15:23:06 -07:00
Brendan Hansknecht
60e70c6b1b
add workaround for wasm tests 2023-06-02 15:23:06 -07:00
Brendan Hansknecht
8eed06c3e1
avoid repeated calls to cpuid, it is slow 2023-06-02 15:23:06 -07:00
Brendan Hansknecht
718b7f0ce2
setup memcpy dispatch on every call for now 2023-06-02 15:23:06 -07:00
Brendan Hansknecht
75a035e12d
remove all definitions of roc_memcpy 2023-06-02 15:23:05 -07:00
Brendan Hansknecht
ebc6bd3f45
add more impls and memcpy 2023-06-02 15:23:05 -07:00
Brendan Hansknecht
0e2c3e4723
add actual folly implementation of memcpy 2023-06-02 15:23:05 -07:00
Brendan Hansknecht
77624f627b
better extract musl lib 2023-06-02 15:23:05 -07:00
Brendan Hansknecht
159f95aad1
add musl memcpy and avx2 dispatching 2023-06-02 15:23:04 -07:00
Brendan Hansknecht
ca9938bf7c
add memcpy impl to builtins 2023-06-02 15:23:04 -07:00
Brendan Hansknecht
58067f936a
Merge pull request #5466 from KilianVounckx/list-update
Add List update function
2023-06-02 09:03:22 +00:00
Folkert de Vries
e59404b6fa
Merge pull request #5495 from roc-lang/dev-backend-nullable-wrapped
Dev backend nullable wrapped
2023-06-01 17:11:14 +02:00
KilianVounckx
8b85f966fd
Merge branch 'roc-lang:main' into list-update 2023-06-01 11:16:33 +02:00
Brendan Hansknecht
7683c5ae53
Stop using llvm instrinsics that just call libc
In a future PR. I will change zig to insure that all of these instrinsics
use musl directly and do not call out to the linked libc.
2023-05-31 20:00:04 -07:00
Folkert
f6fafdb019
nullable unwrapped for the dev backend 2023-06-01 00:02:38 +02:00
Anton-4
f6b76f2df5
Num.exp is Num.pow now
Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
2023-05-31 15:28:31 +02:00
Brendan Hansknecht
e7906b30a9
add other compiler-rt functions in builtins.o 2023-05-30 14:38:10 -07:00
Brendan Hansknecht
fe4577ce4c
fix typo 2023-05-30 09:38:30 -07:00
Brendan Hansknecht
81e8812f38
Add all fns in compiler-rt that builtins are known to depend on
Also removes the workaround in the surigical linker.
This should mean we should get clear errors if we missed a function instead of crashes/segfaults.
2023-05-30 09:21:59 -07:00
KilianVounckx
c22a9ef8b5
Merge branch 'roc-lang:main' into list-update 2023-05-30 08:54:26 +02:00
Brendan Hansknecht
fa57788c09
Merge pull request #5460 from roc-lang/dict-tuple
switch Dict to real tuples
2023-05-29 15:00:38 +00:00
Kilian Vounckx
8371c060a0
Expose update function 2023-05-29 10:14:01 +02:00