Commit graph

1164 commits

Author SHA1 Message Date
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
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
Folkert
e112f6ad2c
Merge remote-tracking branch 'origin/trunk' into builtins-in-roc 2022-04-16 21:01:51 +02:00
Richard Feldman
ae59eab55b
Merge pull request #2850 from rtfeldman/issue-2646/Num-toStr
Issue 2646 - Num.toStr crash
2022-04-15 10:54:20 -04:00
Richard Feldman
b796b2e92d
Merge pull request #2839 from rtfeldman/target-triple
changes to --target
2022-04-14 13:52:27 -04:00
Richard Feldman
629d17c3ae
Restore old IR name for wasm32 2022-04-14 13:21:24 -04:00
Richard Feldman
be725d6421 Revert changes to IR filenames 2022-04-14 10:55:25 -04:00
Jared Cone
cb3ea8641c
Fixed strFromIntHelp. std.math.minInt is 0 for unsigned types, so buffer size was being set to only 1. 2022-04-13 23:20:09 -07:00
Folkert
2b07b8c78d
Merge remote-tracking branch 'origin/trunk' into builtins-in-roc 2022-04-13 21:45:40 +02:00
Kevin Gillette
2c4a83788c
Rename internal NUM_DIV_INT references to NUM_DIV_FLOOR.
This balances with NUM_DIV_CEIL
(which is another form of integer division).
2022-04-13 02:48:57 -06:00
Richard Feldman
e9d4a4134a
Give more info when copying obj files fails 2022-04-13 01:26:10 -04:00
Richard Feldman
412eb763bb
Add support for x64 linux 2022-04-13 01:21:12 -04:00
Richard Feldman
c7f5beb0ad
Rename generated .bc files to have target triples 2022-04-13 01:21:12 -04:00
Richard Feldman
f39f7eda03
Merge pull request #2832 from rtfeldman/div-no-result
`div`, `divCeil`, `divFloor` panic + add checked versions returning `Result`
2022-04-12 15:10:06 -04:00