ayazhafiz
886e4e07f6
Update alias analysis, implementation for List.mapWithIndex
2022-02-13 22:50:27 -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
Jan Van Bruggen
92e0f8714f
Swap List.repeat args order to put the list first
2022-02-11 16:10:29 -07:00
Richard Feldman
5d60677b5b
Fix defensive cloning
2022-02-02 23:08:12 -05:00
Richard Feldman
778d32f6b2
Acknowledge possibility of roc_alloc failing
2022-02-02 19:25:08 -05:00
Richard Feldman
9b05d8dd50
Move expect
zig code out of utils
2022-02-02 19:15:47 -05:00
Richard Feldman
06203163eb
Use mutex more in expect failures
2022-02-02 18:59:34 -05:00
Richard Feldman
cd7b219764
Merge remote-tracking branch 'origin/trunk' into expect-dont-panic
2022-02-01 21:43:55 -05:00
Richard Feldman
5b6d457aa3
Fix typo in Num.roc
2022-02-01 11:52:47 -05:00
Richard Feldman
c21741a7e0
zig fmt
2022-02-01 08:37:51 -05:00
Richard Feldman
a55ff62e6c
Merge remote-tracking branch 'origin/trunk' into expect-dont-panic
2022-01-30 20:22:26 -05:00
Chelsea Troy
4f8d0776b3
We got a test working for panicking with the appropriate number fo failures. Ultimatly we want:
...
+ An error maessage that says what the failures were
+ Not panicking (so these are effectively error productions)
2022-01-30 18:55:09 -06:00
Folkert
afd11e1cb1
move target -> roc_target
2022-01-26 23:33:29 +01:00
Folkert
7e38309364
make alignment target-specific
2022-01-26 17:24:52 +01:00
Folkert
fbd26c598e
provide target info to number alignment function
2022-01-26 17:19:53 +01:00
Folkert
7e90812332
ptr_bytes -> target info, step 1
2022-01-26 14:28:26 +01:00
Richard Feldman
53b1959d9d
Merge pull request #2395 from rtfeldman/JanCVanB-patch-2
...
Add some missing exposures to docs
2022-01-23 22:12:14 -05:00
Jan Van Bruggen
29303c4ba4
Add some missing exposures to docs
2022-01-23 12:38:39 -05:00
Jan Van Bruggen
7b22b42a8f
Fix args order in some docs
...
These changes reflect the builtins as they're currently implemented, but I wish that instead they worked as (previously) described. Should this PR be abandoned in favor of an actual argument swap?
2022-01-23 12:37:36 -05:00
Jan Van Bruggen
9a8a4c6ed7
Add Num.(min/max)(I/U)(8/16)
builtins
2022-01-22 00:19:17 -07: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
Eric Newbury
05c01a81f5
adding List.sortAsc builtin
2022-01-21 15:34:24 -05:00
Richard Feldman
6d8277ad8d
Merge pull request #2367 from rtfeldman/remove_Num.minmaxInt
...
Remove `Num.(min/max)Int`
2022-01-20 00:19:44 -05:00
Jan Van Bruggen
8e4b6f0cab
Remove Num.(min/max)Int
...
Replace all uses with `Num.(min/max)I64`,
since all uses expect an `I64`.
2022-01-19 09:55:06 -07:00
Jan Van Bruggen
1e9d2d1239
Remove accidental trailing spaces
2022-01-18 22:25:46 -07:00
Jan Van Bruggen
591477e77b
Add most remaining Num.min/max*
builtins
...
This skips `min/maxU128`, as they require a subtle change
to the `I128`-centric implementation of `Int`s.
2022-01-17 15:26:23 -07:00
Jan Van Bruggen
865dcd5507
Expose existing Num.min/max
builtin docs
2022-01-17 13:17:03 -07:00
Jan Van Bruggen
cdf705941e
Improve Num.min/max docstrings
2022-01-17 13:17:03 -07:00
Jan Van Bruggen
79241adf8e
Reorder Num.min/max docs
2022-01-17 13:17:03 -07:00
Chelsea Troy
085c02ffee
Infrastructure to test and implement the replacement of an 'expect' failure with an error production
...
Last command run was 'cargo test expect_fail'
2022-01-16 22:01:22 -06:00
Richard Feldman
2ade76b373
Merge pull request #2354 from rtfeldman/add_builtin_Num.minI128
...
Add `Num.minI128` builtin
2022-01-16 22:38:27 -05:00
Jan Van Bruggen
a61b8e402c
Fix directory name typo
2022-01-15 18:37:07 -07:00
Jan Van Bruggen
d7e2be306f
WIP: Add Num.minI128
builtin (TODOs remain)
2022-01-15 17:49:15 -07:00
Jan Van Bruggen
d2c2064782
Add missing Num.maxI128
docs
2022-01-15 17:49:02 -07:00
Richard Feldman
f83f50a9a7
Merge pull request #2337 from rtfeldman/i/2331
...
Use unsigned LLVM intrinsic arithmetic for unsigned integers
2022-01-12 08:29:30 -05:00
Jan Van Bruggen
6c4fcb6514
Maybe-fix some maybe-incorrect doc-comments
...
This might affect `roc docs ...` parsing, but probably not.
2022-01-11 20:00:15 -07:00
ayazhafiz
2c41c43aea
Implement saturated add/subtract
2022-01-10 22:37:08 -05:00
ayazhafiz
abe42781d5
Use unsigned LLVM intrinsic arithmetic for unsigned integers
...
Closes #2331
2022-01-10 19:20:51 -05:00
Richard Feldman
46d36ed942
Fix tutorial table formatting
2022-01-07 19:48:43 -05:00
Richard Feldman
9cd27b72d7
Fix some links in Num docs
2022-01-07 19:48:43 -05:00
Richard Feldman
74cca25aec
Use global mutex over threadlocal
2022-01-02 22:53:48 -05:00
Richard Feldman
ac67eaf837
Use deinitFailures in expectFailure test
2022-01-02 22:43:15 -05:00
Richard Feldman
bfdf0bf916
Use roc_realloc in expect failures
2022-01-02 22:43:15 -05:00
Richard Feldman
afca1b9ee5
Revert "Use std.testing.free over destroy"
...
This reverts commit 7ba074353028907450c0eaad0da5cc32c4f38df8.
2022-01-02 22:43:15 -05:00
Richard Feldman
8c267f937b
Use std.testing.free over destroy
2022-01-02 22:43:15 -05:00
Richard Feldman
e324366ecf
zig fmt
2022-01-02 22:43:15 -05:00
Chelsea Troy
bf582b8120
Add C implementations for testing functions in zig
2022-01-02 14:55:56 -06:00
Chelsea Troy
e95c5f9a9d
Include a public API for the failure collection
2022-01-02 14:08:25 -06:00
Chelsea Troy
39f6bde62c
Install a temporary memory allocation solution to make the test work
2022-01-02 14:03:10 -06:00