Ayaz Hafiz
|
2f1306afd1
|
Redundant and exhaustive marks in mono
|
2022-04-28 20:33:48 -04:00 |
|
Ayaz Hafiz
|
98869b557d
|
Exhaustive and redundant marks
|
2022-04-28 20:33:48 -04:00 |
|
Richard Feldman
|
6da39aa296
|
Merge pull request #2917 from rtfeldman/move-exhaustiveness-checking
Moves exhaustiveness checking to type solving phase
|
2022-04-25 20:55:05 -04:00 |
|
Ayaz Hafiz
|
85e3373d8b
|
Move exhaustiveness checking to type checking
|
2022-04-25 19:04:09 -04:00 |
|
Richard Feldman
|
85e7969c2d
|
Replace references to "global tag" with "tag"
|
2022-04-25 17:04:34 -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 |
|
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 |
|
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
|
a7c87af065
|
typo
|
2022-04-09 11:39:57 +02:00 |
|
Folkert
|
1d0f9e9192
|
Merge remote-tracking branch 'origin/trunk' into builtins-in-roc
|
2022-04-08 15:47:11 +02:00 |
|
Richard Feldman
|
a4233ad661
|
Add LLVM implementation for toF32/64
|
2022-04-07 16:13:58 -04:00 |
|
Richard Feldman
|
cd00a98636
|
Add toF32/64 and checked versions
|
2022-04-07 16:13:57 -04:00 |
|
Folkert
|
615aaa9a77
|
remove unused number min/max functions
|
2022-03-22 23:12:50 +01:00 |
|
Folkert
|
4e1197165b
|
Merge remote-tracking branch 'origin/trunk' into builtins-in-roc-delayed-alias
|
2022-03-18 21:25:52 +01:00 |
|
Brendan Hansknecht
|
d681062c63
|
add Num.toNat
|
2022-03-11 11:17:42 -08:00 |
|
Folkert
|
3510bad1d5
|
add scaffolding
|
2022-03-07 20:55:40 +01:00 |
|
Folkert
|
de498a37ce
|
manually define min/max integer functions
|
2022-03-05 21:02:35 +01:00 |
|
Folkert
|
adf4ad22a5
|
Merge remote-tracking branch 'origin/trunk' into builtins-in-roc
|
2022-03-05 20:55:15 +01:00 |
|
Folkert
|
ba70909519
|
fix more tests
|
2022-02-28 22:23:11 +01:00 |
|
Folkert
|
81e45b1e2f
|
make List.set use List.replace under the hood
|
2022-02-27 22:47:26 +01:00 |
|
Folkert
|
78fe734113
|
change the return type of List.replace
|
2022-02-27 22:47:08 +01:00 |
|
Brendan Hansknecht
|
4d42d81c63
|
add broken attempt to get list.set to use list.replace under the hood
|
2022-02-27 01:21:02 -08:00 |
|
Brendan Hansknecht
|
d9e9c28889
|
add error test case
|
2022-02-27 00:45:51 -08:00 |
|
Folkert
|
65b1b3fcce
|
just before Num
|
2022-02-26 23:11:40 +01:00 |
|
Brendan Hansknecht
|
edfbd6242f
|
fix ListReplace generate if types
|
2022-02-24 22:38:32 -08:00 |
|
Brendan Hansknecht
|
dddf8ff785
|
switch from pair to record and change name to ListReplaceUnsafe
|
2022-02-24 20:41:26 -08:00 |
|
Brendan Hansknecht
|
ba2e8cd32b
|
Add base piping for list.Replace
|
2022-02-24 17:58:56 -08:00 |
|
ayazhafiz
|
13067f2908
|
Implement Num.toNNNChecked
Closes #2411
|
2022-02-19 16:20:21 -05:00 |
|
ayazhafiz
|
d90915a8cd
|
Implement Num.to* builtins
Just wrap over Num.intCast
|
2022-02-19 11:28:41 -05:00 |
|
Jan Van Bruggen
|
e12d98af98
|
WIP: Start adding new Int.toInt builtins
|
2022-02-19 11:28:12 -05:00 |
|
Jan Van Bruggen
|
f47dbb5171
|
Swap List.mapWithIndex arg1 args order to put the element first
|
2022-02-11 16:10:29 -07:00 |
|
ayazhafiz
|
5e0d90ac53
|
First pass
|
2022-02-06 15:04:12 -05:00 |
|
ayazhafiz
|
097c5afc73
|
Check lower bounds for numeric literals, and permit 128-bit literals
|
2022-02-02 23:35:57 -05:00 |
|
ayazhafiz
|
e7dcc2daa5
|
Move NumWidth to roc_can
|
2022-02-02 00:23:43 -05:00 |
|
ayazhafiz
|
a6f7579c07
|
Parse and expand numeric bounds in canonicalization pass
|
2022-02-01 22:50:46 -05:00 |
|
ayazhafiz
|
e03592930f
|
Typecheck numeric literals with suffixes in expressions
Part of #2350
|
2022-02-01 22:49:50 -05:00 |
|
ayazhafiz
|
320827167f
|
Parse number literal width suffixes
Supports [u,i][8,16,32,64,128] and [nat,dec]
Part of #2350
|
2022-02-01 22:48:48 -05:00 |
|
Jan Van Bruggen
|
9a8a4c6ed7
|
Add Num.(min/max)(I/U)(8/16) builtins
|
2022-01-22 00:19:17 -07:00 |
|
Jan Van Bruggen
|
38f0a3717f
|
Extract repeated min/max logic
|
2022-01-22 00:00:29 -07:00 |
|
Folkert
|
2c139100ca
|
fix big error
|
2022-01-21 23:30:04 +01:00 |
|
Eric Newbury
|
a96d5e6abf
|
Merge branch 'trunk' into enewbury/list-sort-desc
|
2022-01-21 17:06:52 -05:00 |
|
Eric Newbury
|
7e7104d9ba
|
WIP
|
2022-01-21 16:46:47 -05:00 |
|