Folkert
9528f63d87
make Dict.keys and Dict.values use list helpers for returning
2022-03-26 12:36:14 +01:00
Folkert
74f9443a3e
Revert "some zig functions need to accept arguments by-pointer now"
...
This reverts commit fcb34272da
.
2022-03-25 10:45:45 +01:00
Folkert
4e3644a4c6
Revert "fix zig tests"
...
This reverts commit 89223c4032
.
2022-03-25 10:45:31 +01:00
Brian Carroll
22ccadccc9
Merge pull request #2699 from rtfeldman/wasm-zig-tests
...
Run Zig builtin tests on Wasm too
2022-03-19 20:36:54 +00:00
Folkert
6134e57921
Merge remote-tracking branch 'origin/trunk' into list-str-capacity
2022-03-18 18:13:55 +01:00
Folkert
89223c4032
fix zig tests
2022-03-13 20:03:06 +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
fcb34272da
some zig functions need to accept arguments by-pointer now
...
because otherwise stores to alloca's disappear. Very odd
2022-03-13 00:07:32 +01:00
Folkert
e3e9215578
Merge remote-tracking branch 'origin/trunk' into type-checking-storage-subs
2022-03-12 14:10:43 +01:00
Brian Carroll
b57c0ee6bf
CI: Run Zig builtin tests on wasm as well as host
2022-03-12 08:09:23 +00: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
Brian Carroll
456d8ff9cb
Merge branch 'trunk' of github.com:rtfeldman/roc into list-str-capacity
2022-03-11 19:28:13 +00: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
Brian Carroll
4878c701ae
Fix Zig builtins for 32-bit targets
2022-03-10 23:26:58 +00:00
Folkert
19c46916d9
fix zig string tests
...
mostly, strings that were small before are now not, so I had to increase the string lengths
2022-03-09 19:25:51 +01:00
Folkert
82dddf4c3a
add capacity field to make tests compile
2022-03-09 19:21:11 +01:00
Folkert
07063a8e18
Merge remote-tracking branch 'origin/trunk' into list-str-capacity
2022-03-09 14:36:34 +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
Folkert
177529bfb6
all string tests passing
2022-02-20 13:04:12 +01:00
Folkert
1c0d092c48
fix str_to_utf8
2022-02-20 01:10:09 +01:00
Folkert
2c4d0e71a6
fix string repeat tests
2022-02-20 00:47:07 +01:00
Folkert
dea6cfbc8f
various fixes
2022-02-20 00:20:50 +01: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
Folkert
3d7254726d
WIP
2022-02-18 23:33:24 +01:00