Commit graph

607 commits

Author SHA1 Message Date
Folkert
85fcd71bdb
use bitcast instead of intcast 2023-05-03 14:28:22 +02:00
Folkert
05a9b4d601
fix that inc on list was no longer recursive 2023-05-03 01:03:09 +02:00
Folkert de Vries
a5a91d428f
Merge pull request #5336 from roc-lang/dev-backend-list-map
dev backend: many more builtins
2023-05-01 10:20:15 +02:00
J.Teeuwissen
b8a2ea1bf2
Merge branch 'main' into drop_specialization 2023-04-29 18:31:12 +02:00
Richard Feldman
27113b5ace
Merge pull request #5342 from agu-z/agu-z/fix-list-intersperse-docs
Fix `List.intersperse` docs example
2023-04-28 23:43:39 -04:00
Agustin Zubiaga
9b5cee7633 Fix List.intersperse docs example 2023-04-28 21:33:34 -03:00
Folkert
cf54304cf4
add lowlevel to inc/dec a data pointer 2023-04-28 15:30:23 +02:00
Folkert
0bf3eefbf2
dev backend: Num.isMultipleOf 2023-04-27 13:50:27 +02:00
Folkert
9357e1ce2b
export fn does not work for wasm/llvm 2023-04-27 10:44:54 +02:00
Folkert
c6c28e7c5d
implement Crash 2023-04-27 00:29:21 +02:00
J Teeuwissen
7439ee0c8c
Merge branch 'main' into drop_specialization
Signed-off-by: J Teeuwissen <jelleteeuwissen@hotmail.nl>
2023-04-26 20:26:37 +02:00
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
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
Richard Feldman
412e199939
Merge pull request #5266 from lukewilliamboswell/docs
Add documentation for `Decode` builtin
2023-04-14 16:46:35 -04:00
Kiryl Dziamura
fb0a64dc22
Implement Num.absDiff 2023-04-11 12:16:54 +02: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
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
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
Ayaz Hafiz
f458da0cbc
Implement Hash for Bool 2023-03-28 15:04:45 -05:00
Ayaz Hafiz
92aff265ae
Add doc comment to Decode.record 2023-03-22 12:19:20 -05:00
Ayaz Hafiz
0b3ee77232
Add in Decode.tuple ability member 2023-03-22 12:18:04 -05:00
Ayaz Hafiz
a361c4cfc1
Add the tuple ability member to EncoderFormatting 2023-03-22 11:14:46 -05:00
Seth Workman
deadd19de0
Merge branch 'roc-lang:main' into builtin-dict-docs 2023-03-17 11:02:57 -05:00
Seth Workman
dccb1be5b5
fix naming to be relevant to example 2023-03-17 08:36:50 -05:00
Seth Workman
fea1cfa57d
fix walkUntil test/example and formatting 2023-03-17 08:33:01 -05:00
Seth Workman
f912c39a04
add docs/tests to Dict builtin 2023-03-16 22:44:50 -05:00
Brendan Hansknecht
2a6c82c937
fix bug where we don't decrement elements if the list is non-unique 2023-03-16 12:12:28 -07:00
Brendan Hansknecht
a955a4937c
misc list refcounting updates 2023-03-16 12:12:28 -07:00
Brendan Hansknecht
ce29c7e92f
fix bugs from recent changes and additions 2023-03-16 12:12:27 -07:00
Brendan Hansknecht
48f17a8e2c
add Str.releaseExcessCapacity 2023-03-15 15:24:59 -07:00