Commit graph

724 commits

Author SHA1 Message Date
J.Teeuwissen
74f2b0afda
Updated refcount logic 2023-04-26 18:14:16 +02:00
J.Teeuwissen
ed46a1f2cb
lowlevel isUnique 2023-04-26 17:23:10 +02:00
Folkert de Vries
6d7e3ddc0c
Merge pull request #5326 from roc-lang/dev-backend-list-map
Dev backend list map
2023-04-26 14:06:23 +02:00
Folkert
312fb23567
add zig builtins for wrapped mul and shift right (for 128-bit ints) 2023-04-26 14:03:50 +02:00
Brendan Hansknecht
0e24403664
enable using other zig libaries in host instead of just str.zig 2023-04-25 14:14:35 -07:00
Folkert
2e41ef68b0
cleanup 2023-04-23 20:23:35 +02:00
Folkert
dd3d0a188e
string is empty for dev backend 2023-04-23 18:16:08 +02:00
Folkert
b59ada4bc8
implement List.map in the dev backend 2023-04-23 17:35:17 +02:00
Luke Boswell
2ff55b9704
optimise encodeString for when no escapes, add more tests various 2023-04-23 13:24:41 +10:00
Luke Boswell
eef3adcbbb
improve decodeString 2023-04-23 09:44:57 +10:00
Luke Boswell
ad9aadeb64
add more List.withCapacity optimisation 2023-04-21 14:28:09 +10:00
Luke Boswell
2b95731a5c
support null decoding, add optmisation for strig encoding 2023-04-21 14:24:32 +10:00
Luke Boswell
70de4b90dc
clean up complex example test, remove duplication 2023-04-21 14:05:41 +10:00
Luke Boswell
b71126b2ef
add encoding for field names, add encoding for string escapes 2023-04-21 14:00:21 +10:00
Luke Boswell
da5484941c
update record Encoding to use field map config 2023-04-21 13:28:25 +10:00
Luke Boswell
4f22b0747f
mono and update Json.fromUtf8 and Json.toUtf8 to Json.json 2023-04-21 10:57:48 +10:00
Luke Boswell
d8545d7556
add support for decoding various stragies, add complex test 2023-04-21 10:51:37 +10:00
Luke Boswell
bf815d5ad2
WIP update to use config in Json 2023-04-21 08:56:35 +10:00
Folkert de Vries
8c32900e19
Merge pull request #5275 from wontem/abs_diff
Implement Num.absDiff
2023-04-20 14:02:02 +02:00
Kiryl Dziamura
f1564458a3
Format roc 2023-04-20 11:55:40 +02:00
Luke Boswell
ab4ac1c494
merge remote/main and update mono 2023-04-20 07:55:18 +10:00
Richard Feldman
412e199939
Merge pull request #5266 from lukewilliamboswell/docs
Add documentation for `Decode` builtin
2023-04-14 16:46:35 -04:00
Luke Boswell
c153580ebc
fix two bugs 2023-04-12 17:38:30 +10:00
Kiryl Dziamura
fb0a64dc22
Implement Num.absDiff 2023-04-11 12:16:54 +02:00
Luke Boswell
0f68f77deb
Merge remote-tracking branch 'remote/main' into builtin-json 2023-04-11 20:11:40 +10:00
Luke Boswell
9fbd7bad41
enable tests for json records 2023-04-11 20:11:37 +10:00
Kevin Gillette
0321f91c70
Kevin Gillette: markdown typo fixes
Luke Boswell: move Str.md as it looks more like a design doc than rust crate

Co-authored-by: Luke Boswell <lukewilliamboswell@gmail.com>
2023-04-10 14:07:03 -06:00
Jonas Schell
399543a730 use qualified imports for json example 2023-04-09 17:38:21 +02:00
Luke Boswell
3e562eb359
roc format 2023-04-09 18:34:56 +10:00
Luke Boswell
ed618fbbf4
add docs for Decode 2023-04-09 18:27:11 +10:00
Luke Boswell
a47e876d70
update json, blocked on #5252 2023-04-09 17:44:43 +10:00
Luke Boswell
105c0e7581
Merge branch 'main' into builtin-json 2023-04-09 17:40:56 +10:00
Yuki Omoto
7ef166a11f
remove wrong subtraction in dec div 2023-04-09 11:34:24 +09:00
Yuki Omoto
f57085da05
refactor dec div 2023-04-09 03:52:17 +09:00
Yuki Omoto
219e72ff20
Fix dec division problem
Fixed dec division that envolves a number that has a hi word greater than
0 when converted into `U256` like `341dec / 341`.

This commit resolves #5259
2023-04-09 00:00:06 +09:00
Luke Boswell
dc43290647
Merge branch 'main' into builtin-json 2023-04-04 17:21:08 +10:00
Richard Feldman
396c9ee8d8
Revert "Reproduce a Bumpalo failure"
This reverts commit 27eac403a5.
2023-04-02 08:28:18 -04:00
Richard Feldman
27eac403a5
Reproduce a Bumpalo failure 2023-04-02 08:28:16 -04:00
Richard Feldman
61d6aab977
fix test 2023-04-02 08:26:09 -04:00
Richard Feldman
7da6ba1082
Add some explanation for graphemes focus 2023-04-02 08:16:04 -04:00
Richard Feldman
dca2d2afd8
Fix Str examples that were using small strings 2023-03-29 21:23:14 -04:00
Richard Feldman
40375a7256
Add some Str.fromUtf8 tests 2023-03-29 21:23:14 -04:00
Richard Feldman
c3c1b8d083
Add Str.walkUtf8 2023-03-29 21:23:13 -04:00
Richard Feldman
f7e96ecf82
Expand some Str docs 2023-03-29 21:23:13 -04:00
Brendan Hansknecht
457725e87f
fix end offset of fromUtf8Range 2023-03-28 18:53:47 -07:00
Luke Boswell
addc4debef
merge main, update fail test descriptions 2023-03-29 10:01:38 +11:00
Luke Boswell
e5dd4295c9
Merge remote-tracking branch 'remote/main' into builtin-json 2023-03-29 09:49:26 +11:00
Ayaz Hafiz
f458da0cbc
Implement Hash for Bool 2023-03-28 15:04:45 -05:00
Luke Boswell
d5df5fc58d
WIP updating record decoding 2023-03-27 21:52:18 +11:00
Luke Boswell
6b8f82ab39
update naming to match Json types 2023-03-27 18:18:15 +11:00