Commit graph

1027 commits

Author SHA1 Message Date
John Murray
38207cff8a
fix typo 2023-11-24 10:07:27 -05:00
John Murray
abc92ded95
add test for divCeil by 0 2023-11-24 10:07:26 -05:00
John Murray
863ecd8da5
be excited to panic... 2023-11-24 10:07:26 -05:00
John Murray
23e22693d4
switch @panic to roc_panic to really throw panics for bad numeric ops 2023-11-24 10:07:26 -05:00
Brendan Hansknecht
26afbbe8f6
remove redunant list.sublist check 2023-11-20 21:09:11 -08:00
Richard Feldman
9a12175a96
Drop redundant exposed Set 2023-11-18 21:02:33 -05:00
Anton-4
6212820249
use List * in len, withCapacity, isEmpty...
for consistency with Dict and Set

Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
2023-11-08 19:50:21 +01:00
Richard Feldman
9bd10704a3
Update some Num docs 2023-11-06 21:50:20 -05:00
Richard Feldman
e59d4e57c5
Add List.appendIfOk and List.prependIfOk 2023-11-06 18:13:15 +01:00
Isaac Van Doren
139d3c6f89
make dropFirst and dropLast drop n elements 2023-10-29 13:23:33 -05:00
Brendan Hansknecht
ca283197b9
fix LIST_RELEASE_EXCESS_CAPACITY arg count 2023-10-23 13:50:34 -07:00
Brendan Hansknecht
c18345d5ce
fix always_inline from rebase 2023-10-23 13:50:34 -07:00
Folkert
ec0eddb8b2
fix bug in use of alignment in free for tag unions 2023-10-23 13:50:34 -07:00
Luke Boswell
a77ac8244e
switch memcpy to fallback on windows 2023-10-23 13:50:34 -07:00
Brendan Hansknecht
f1126aae75
correct type of bytes_or_null to allow it to be aligned to 1 instead of 8 2023-10-23 13:50:34 -07:00
Anton-4
0abed89cf2
zig fmt fix 2023-10-23 13:50:33 -07:00
Luke Boswell
908c999138
fix zig host obj on windows 2023-10-23 13:50:32 -07:00
Brendan Hansknecht
398bf2f96c
update rust code to llvm-16 and fix build
also update:
 - llvm frame address
 - erased function type
 - dec passing to zig
 - gen dev storage size
2023-10-23 13:50:31 -07:00
Brendan Hansknecht
2e2e609547
update zig to 0.11 and update build script
Also update memcpy to avoid recursive memcpy due to optimizations.
2023-10-23 13:50:30 -07:00
Isaac Van Doren
886b855594
add Str.contains to builtins 2023-10-14 14:56:51 -05:00
Richard Feldman
6c10a6a8aa
Merge pull request #5893 from mulias/em/list-chunks-of
builtin(list): add List.chunksOf
2023-10-10 09:25:10 -04:00
Folkert
c0d67edfd3
cleanup 2023-10-09 15:40:28 +02:00
Folkert
7c67f8aafb
some debugging logs 2023-10-09 15:24:45 +02:00
Folkert
be2c31fe91
more detail 2023-10-09 15:24:44 +02:00
Folkert
ef64e37b9b
use stdlib functions instead of intrinsics 2023-10-09 15:24:44 +02:00
Folkert
c749efb64c
properly return a value
on aarch64, returning a big value does not happen with a pointer passed as the first argument (x0). The pointer is passed in the return register (x8) instead. Just use a zig return to generate the right code in both cases
2023-10-09 15:24:39 +02:00
Elias Mulhall
b7923ac542 builtin(list): add List.chunksOf 2023-10-07 11:54:34 -04:00
Brendan Hansknecht
e30eabd5bf
Merge branch 'main' into add-dec-abss 2023-09-26 15:33:24 +00:00
Brendan Hansknecht
c3c5c97e16
remove unused hash.zig file 2023-09-25 10:56:44 -07:00
Sekerez
9307bdbed0 use const 2023-09-24 23:15:36 -04:00
Sekerez
fa65d89a3c Add support for Num.abs to Dec type 2023-09-24 23:10:25 -04:00
Brendan Hansknecht
5cfab36f75
update perf numbers 2023-09-19 10:50:52 +02:00
Brendan Hansknecht
9edd3eaca0
more benchmark cleanup and warmup phase 2023-09-19 10:50:52 +02:00
Brendan Hansknecht
aee54a44dc
fix asin and acos benchmark 2023-09-19 10:50:51 +02:00
Brendan Hansknecht
a3ee58155c
add other trig functions to dec benchmark 2023-09-19 10:50:51 +02:00
Brendan Hansknecht
c98d136ca2
ensure correct assembly generation without extra data movement 2023-09-19 10:50:51 +02:00
Brendan Hansknecht
aec135a269
Merge pull request #5820 from roc-lang/update-dec-docs
Update Dec docs some more
2023-09-18 02:56:39 +00:00
Richard Feldman
cd70fdc36b
Merge pull request #5800 from roc-lang/drop-is-null-term
Drop unused str.zig function
2023-09-17 20:09:48 -04:00
Richard Feldman
83587eca22
Don't say floats have less precision than Dec
It's more accurate to say they have issues with base-10.
In fact, very small floats can have *more* digits of precision
than Dec can!
2023-09-17 20:09:30 -04:00
Brendan Hansknecht
bde293db1b
remove duplicate export 2023-09-16 23:46:29 -07:00
Brendan Hansknecht
346eb80bd1
add dec trig functions 2023-09-16 22:55:23 -07:00
Richard Feldman
cbbf04cb85
Update Dec docs 2023-09-17 01:22:40 -04:00
Brendan Hansknecht
108d9a54e3
Switch Num.tan to a zig builtin
It should be able to share some work between sine and cosine to run faster.
2023-09-16 21:27:51 -07:00
Brendan Hansknecht
7986d6cdba
add benchmark for sin and asin 2023-09-16 21:27:21 -07:00
Brendan Hansknecht
67494e00fd
add trig functions to dec in zig 2023-09-16 11:05:44 -07:00
Brendan Hansknecht
562c6b4a8c
Clarify Dec range and decimal places in docs
Also remove extra numbers from float result for 0.1 + 0.2.
Floats only have 16 decimal places of precision and the rest generally is not printed.
2023-09-15 18:37:51 -07:00
Brendan Hansknecht
070e556c71
make dec bench functional again and much more robust 2023-09-15 12:54:45 -07:00
Folkert
b92d8d55a1
align u128 to 16 again 2023-09-14 14:53:18 +02:00
Folkert
5ebd18cee0
trim some debug messages 2023-09-14 14:43:29 +02:00
Folkert
fdacfce108
all gen-dev tests work again 2023-09-14 14:43:28 +02:00