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
Brendan Hansknecht
56dc503d11
fix formatting
2022-03-31 22:26:18 -07:00
Brendan Hansknecht
a75ecb2883
add variable to enable atomic refcounts for testing
2022-03-31 22:18:25 -07:00
Folkert
e94bdb0ed8
use a nullable pointer to store the output of strSplitInPlace
2022-03-30 19:18:29 +02:00
Folkert
85bf881b3b
make Dict.keys and Dict.values use list helpers for returning
2022-03-30 19:14:52 +02:00
Folkert
1716879f82
add headers to stdlib roc files
2022-03-23 21:19:37 +01:00
Folkert
0a6335e772
start on roc_load build.rs script for building the builtins
2022-03-23 21:19:34 +01:00
Folkert
d607d6db05
rename standard_library -> roc
2022-03-23 21:19:15 +01:00
Folkert
ca16099e83
add standard library .roc files
2022-03-23 17:13:16 +01:00
Folkert
4ef6cba23a
Merge branch 'split-types-values' into type-checking-storage-subs
2022-03-13 17:43:24 +01:00
Richard Feldman
e1cc3edb48
Update docs for Dict
2022-03-12 21:59:37 -05:00
Folkert
e3e9215578
Merge remote-tracking branch 'origin/trunk' into type-checking-storage-subs
2022-03-12 14:10:43 +01:00
Folkert
28ce49c273
use lazy_static
2022-03-12 00:18:06 +01:00
Folkert
5006b2afa3
playing with atomics to get the global stdlib to work
2022-03-11 23:39:55 +01:00
Folkert
11da96b286
make borrow_stdlib threadsafe
2022-03-11 22:49:29 +01: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