Commit graph

1139 commits

Author SHA1 Message Date
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
Kevin Gillette
1c3700e22e
Minor typo/formatting fixes 2022-04-11 19:11:37 -06:00
Richard Feldman
d81228df80
cargo fmt 2022-04-11 13:17:46 -04:00
Nikita Mounier
8206f345c7 Merge remote-tracking branch 'origin/trunk' into div-no-result 2022-04-11 11:45:06 +00:00
Nikita Mounier
4ecf2a8c24 Modify division behaviour to panic when dividing by 0, and add divChecked, divFloorChecked and divCeilingChecked` for safe alternatives which return a Result, mimicking the previous behaviour. 2022-04-11 11:23:33 +00:00
Folkert
fe77cb3b16
write functions, that can be written in roc, in roc 2022-04-09 11:34:24 +02:00
Folkert
e9f7427c67
fix some things in Num 2022-04-08 20:24:17 +02:00
Folkert
b7eacbf120
some tweaks to the builtin roc code 2022-04-08 19:35:26 +02:00
Folkert
0ccc5f8105
fix module names in builtin roc code 2022-04-08 18:55:41 +02:00
Folkert
1d81dd6c8b
add import to Str.roc 2022-04-08 16:49:38 +02:00
Folkert
d6632981c8
update Num.roc 2022-04-08 16:47:17 +02:00
Folkert
1d0f9e9192
Merge remote-tracking branch 'origin/trunk' into builtins-in-roc 2022-04-08 15:47:11 +02:00
Richard Feldman
6adaf0905e
Fix missing * in type annotation 2022-04-07 16:29:17 -04:00
Richard Feldman
cd00a98636
Add toF32/64 and checked versions 2022-04-07 16:13:57 -04:00
Richard Feldman
bd623d65bc
Formatting whitespace 2022-04-07 16:13:57 -04:00
Folkert
68536e4026
Merge remote-tracking branch 'origin/trunk' into list-str-capacity 2022-04-04 19:55:04 +02:00
Folkert
1e397e950d
changes after review 2022-04-04 19:53:33 +02:00
Brendan Hansknecht
3ef40e2e82 use exhaustive refcount pattern match 2022-04-03 13:29:16 -07:00
Brendan Hansknecht
a1c469232f simplify allocate_with_refcount to be closer to the old llvm version 2022-04-01 16:27:42 -07:00
Brendan Hansknecht
a4f0ed1990 flip max for min 2022-04-01 15:07:00 -07:00
Brendan Hansknecht
3606543ac0 keep normal as the default refcounting 2022-04-01 15:03:16 -07:00
Brendan Hansknecht
2093405ffc make sure the rodata refcounts aren't incremented 2022-04-01 15:02:01 -07:00
Brendan Hansknecht
cf238862f4 fix formatting 2022-04-01 14:12:31 -07:00
Brendan Hansknecht
577282ced3 have zig allocate all refcounts 2022-04-01 14:06:28 -07:00
Brendan Hansknecht
805e4ef5d3 change refcount type to enum so none can be select 2022-04-01 13:48:14 -07:00