Commit graph

1190 commits

Author SHA1 Message Date
Richard Feldman
df7df4ccf8
Merge branch 'trunk' into mfonism/rename-num-float-type-to-frac 2022-05-08 20:54:33 -04:00
Richard Feldman
c7037db6d5
Merge pull request #3013 from rtfeldman/hostgen
Introduce bindgen CLI
2022-05-08 17:51:20 -04:00
Mfon Eti-mfon
9068c2414e
Rename float functions and vars 2022-05-08 18:42:12 +01:00
Mfon Eti-mfon
de7fe31289
Update the Num builtin 2022-05-08 16:45:03 +01:00
Mfon Eti-mfon
85c622b169
Update symbols definition 2022-05-08 15:54:34 +01:00
Richard Feldman
36f64d8496
Merge remote-tracking branch 'origin/trunk' into hostgen 2022-05-07 18:49:25 -04:00
Folkert
81caa96af2
Merge remote-tracking branch 'origin/trunk' into update_zig_09 2022-05-07 19:38:04 +02:00
Richard Feldman
b9dbfa8c33
Always use 16B alignment for 128-bit ints 2022-05-07 10:52:31 -04:00
Richard Feldman
4763e828b7
Don't use mem::align_of in code generation!
See the comments added in this commit for the reason.
2022-05-07 10:28:19 -04:00
Folkert
07383e96f0
Merge remote-tracking branch 'origin/trunk' into i/2792 2022-05-06 20:17:53 +02:00
Folkert
64b633bea6
make round return an integer 2022-05-06 20:17:40 +02:00
Richard Feldman
a5ffb216c8
Merge pull request #3006 from rtfeldman/nunocf/migrating-docs
Migrating docs
2022-05-06 11:35:05 -04:00
Nuno Ferreira
2c29a46968 removed code example as it was breaking CI 2022-05-06 15:18:07 +02:00
Folkert
5755475b3a
add ListIsUnique lowlevel operation 2022-05-06 13:56:35 +02:00
Nuno Ferreira
a46555d14c Fixed mistake when porting over List docs 2022-05-06 12:02:57 +02:00
Nuno Ferreira
6e69349dc0 Migrated Dict 2022-05-06 11:26:24 +02:00
Nuno Ferreira
c0b04e2800 Migrated builtins/docs/Result.roc docs over to builtins/roc/Result.roc 2022-05-06 11:13:19 +02:00
Nuno Ferreira
a4b0664d16 Migrated List.roc docs over to builtins/roc/List.roc 2022-05-06 10:59:58 +02:00
Nuno Ferreira
92a691ad0f Migrated Str 2022-05-06 00:40:53 +02:00
Nuno Ferreira
53f9de3180 Revert "Moved over all Str functions that are still the same"
This reverts commit a0ec98f36a.
2022-05-06 00:29:59 +02:00
Nuno Ferreira
ea2a6bfb29 Migrated Set 2022-05-06 00:27:43 +02:00
Nuno Ferreira
a0ec98f36a Moved over all Str functions that are still the same
There's a few which seem to have been removed but some docs remained.

I read through them and thought they didn't make sense to migrate as the
types changed. Please let me know if this is correct.

Deleted old Str.roc file
2022-05-06 00:18:29 +02:00
Anton-4
f3493850bb
Merge pull request #2983 from rtfeldman/wasi-libc-sys
Build WASI libc using Zig, instead of using a checked-in binary
2022-05-05 09:40:46 +02:00
Brian Carroll
dd1d49db75 Build WASI libc using Zig, instead of using a checked-in binary 2022-05-03 08:00:58 +01:00
Richard Feldman
b05259d870
Don't try to autolink to Num from Bool
This doesn't work because it would be a cyclic import
2022-05-02 19:44:42 -04:00
Richard Feldman
85e5931ce3
s/bytes/bits where appropriate 2022-05-02 15:16:31 -04:00
Richard Feldman
ca965c8eac
Fix some autolinks in Num docs 2022-05-02 10:16:43 -04:00
Richard Feldman
f0d52ea70d
Incorporate docs/Bool.roc into roc/Bool.roc 2022-05-02 10:16:42 -04:00
Richard Feldman
4e220288a5
Delete builtin docs for Num 2022-05-01 20:58:01 -04:00
Richard Feldman
7fc0330a71
Move builtin docs from docs/ to roc/ 2022-05-01 20:55:33 -04:00
Folkert
84f0839de9
remove zig import we don't need in 0.9.1 2022-04-30 23:43:38 +02:00
Folkert
b7b86c0cde
Merge remote-tracking branch 'origin/trunk' into update_zig_09 2022-04-30 23:34:48 +02:00
Folkert
7361a8aed2
fix merge conflict 2022-04-30 23:34:42 +02:00
Ayaz Hafiz
0bc85ad32c
Only load setjmp/longjmp from Zig on aarch64 2022-04-28 09:13:29 -04:00
Ayaz Hafiz
fa8108e3a8 SJLJ roc_panic on AArch64
```
$ uname -m
arm64

$ cargo test -p test_gen gen_num::abs_min_int_overflow
    Finished test [unoptimized + debuginfo] target(s) in 0.09s
     Running src/tests.rs (target/debug/deps/test_gen-b2041868d2cf26f3)

running 1 test
test gen_num::abs_min_int_overflow - should panic ... ok

test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 933 filtered out; finished in 0.14s
```
2022-04-27 22:43:34 -04:00
Richard Feldman
85e7969c2d
Replace references to "global tag" with "tag" 2022-04-25 17:04:34 -04:00
Ayaz Hafiz
55706ae5c4
Remove other references to private tags in code 2022-04-25 11:50:00 -04:00
Ayaz Hafiz
b6383f81ee
Numbers are opaques 2022-04-25 10:59:42 -04:00
Ayaz Hafiz
1b83b2e9af
Remove private tags from Dict 2022-04-25 10:59:12 -04:00
Ayaz Hafiz
71a5471bec
Remove private tags from Set 2022-04-25 10:59:12 -04:00
Ayaz Hafiz
be56cdf782
Remove private tags from Str 2022-04-25 10:59:12 -04:00
Ayaz Hafiz
1856b32d7c
Remove private tags from List 2022-04-25 10:59:11 -04:00
Ayaz Hafiz
abd454276d
Remove private tags from Result
This matches the actual definition
2022-04-25 10:59:11 -04:00
Richard Feldman
95ca4d48e5
Re-remove divFloor 2022-04-23 16:12:11 -04:00
Richard Feldman
082fde976a
Merge branch 'trunk' into sqrt-unchecked 2022-04-20 08:19:34 -04:00
Richard Feldman
93677001ba
Merge pull request #2888 from rtfeldman/divTrunc
rename divFloor to divTrunc
2022-04-19 21:57:49 -04:00
Kevin Gillette
d236c28743
Merge branch 'trunk' into sqrt-unchecked 2022-04-18 19:12:22 -06:00
Kevin Gillette
9ed4ca9739
remove Num.mod and Num.modUnchecked 2022-04-18 13:54:40 -06:00
Kevin Gillette
6a3fd3a607
rename divFloor to divTrunc 2022-04-18 02:33:31 -06:00
Kevin Gillette
1908ff41c3
rem, sqrt, log are unchecked but have checked variants
mod exists but is not implemented due to lack of hardware support
(emulation, possibly in terms of rem, is needed).
2022-04-17 14:40:39 -06:00