Commit graph

1050 commits

Author SHA1 Message Date
Richard Feldman
e1cc3edb48
Update docs for Dict 2022-03-12 21:59:37 -05:00
Brendan Hansknecht
d681062c63 add Num.toNat 2022-03-11 11:17:42 -08:00
Tom Dohrmann
17398e4f45 fix listSublist bitcode 2022-03-11 11:32:20 +01:00
Folkert
3510bad1d5
add scaffolding 2022-03-07 20:55:40 +01:00
Derek Gustafson
b6ad04b0f1
Fix zig fmt error. 2022-03-03 11:14:58 -05:00
Derek Gustafson
6feac21b9b
Remove using a string as an intermediate form in Dec.fromF64. 2022-03-03 11:05:41 -05:00
Richard Feldman
d91df42147
Merge pull request #2610 from rtfeldman/windows_fixes
`cargo build` on windows
2022-03-02 18:20:06 -05:00
Brendan Hansknecht
0ae0e689fc
Merge pull request #2602 from rtfeldman/list-replace
List replace
2022-03-01 23:29:32 +00:00
Anton-4
5ec2125ac6
Merge branch 'trunk' into windows_fixes 2022-02-28 19:12:18 +01:00
Anton-4
6acd2f338b successful cargo build on windows 2022-02-28 18:11:14 +01:00
Anton-4
784894bb8f
fixing windows cargo build errors 2022-02-28 13:48:11 +01:00
Brendan Hansknecht
2ca1ebdd2d appease the paperclip 2022-02-27 15:50:19 -08:00
Brendan Hansknecht
2e70bb8458 remove list set low level 2022-02-27 15:07:09 -08:00
Folkert
78fe734113
change the return type of List.replace 2022-02-27 22:47:08 +01:00
Richard Feldman
84ada96b63
Revise Str parsing primitives 2022-02-27 15:30:27 -05:00
Brian Carroll
07748b2b86 builtins: change mv to cp to prevent wasm build from crashing 2022-02-27 12:40:04 +00:00
Brendan Hansknecht
aff962809b call ListReplace and generate struct afterwards 2022-02-24 22:33:36 -08:00
Brendan Hansknecht
dc59ba97c2 change listReplace zig builtin to use RocList 2022-02-24 22:02:23 -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
27b47713aa Add some comments and TODOs 2022-02-24 20:40:45 -08:00
Brendan Hansknecht
ba2e8cd32b Add base piping for list.Replace 2022-02-24 17:58:56 -08:00
Anton-4
8fee48c3fa
windows zig path validation workaround
std::fs::canonicalize adds a special windows prefix ?, zig erroneously (ziglang/zig#1509) does not allow ? in windows paths, dunce correctly removes this ? prefix
2022-02-22 16:17:21 +01:00
ayazhafiz
e22c9d8168 Fix a typo 2022-02-21 10:29:24 -05:00
ayazhafiz
aa8b6e3393 Clippy 2022-02-19 16:28:36 -05:00
ayazhafiz
13067f2908 Implement Num.toNNNChecked
Closes #2411
2022-02-19 16:20:21 -05:00
Jan Van Bruggen
e12d98af98 WIP: Start adding new Int.toInt builtins 2022-02-19 11:28:12 -05:00
Jan Van Bruggen
1760db2a0c Add docs for new Int.toInt builtins 2022-02-19 11:28:12 -05:00
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