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
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
Brendan Hansknecht
b8e42b05a2
misc cleanup
2023-03-15 13:25:45 -07:00
Brendan Hansknecht
19039ea5bd
fix edge cases
2023-03-15 13:25:44 -07:00
Brendan Hansknecht
70eef9141f
port string functions to seamless slices
2023-03-15 13:25:40 -07:00
Brendan Hansknecht
3978059aa2
add seamless slices for str
2023-03-15 13:23:34 -07:00
Brendan Hansknecht
0f708d7577
fix accessing bug
2023-03-15 10:06:31 -07:00
Brendan Hansknecht
88a69a23a8
fix type to work on 32bit platforms
2023-03-15 10:06:31 -07:00
Brendan Hansknecht
7f3c67ade9
use isValidUnicode in fromUtf8 to make it faster. Also fix off by one bug.
2023-03-15 10:06:31 -07:00
Brendan Hansknecht
f6677f3c1f
Add a fast path for validating ASCII charcters
...
From my quick testing using the code for testing this function in zig standard lib:
small ascii: 2.2x
small unicode: 0.9x
medium ascii: 15x
medium unicode: 1.01x
medium mix: 3.25x
large ascii: 32.8x
large unicode: 1.03x
large mixed: 3.35x
small being less than 8 bytes.
large being roughly greater than 512 bytes.
2023-03-15 10:06:31 -07:00
Luke Boswell
dd0fdd5d74
roc format
2023-03-15 18:54:46 +11:00
Luke Boswell
2241b173bf
return markdown headings to preserve structure
2023-03-15 18:30:44 +11:00
Luke Boswell
90dd31aaca
update mono
2023-03-15 18:24:16 +11:00
Luke Boswell
91604f8be6
return structure using <h2> elements, fix css
2023-03-15 18:19:33 +11:00
Luke Boswell
ca2158edbb
simplify Set examples
2023-03-15 18:12:17 +11:00
Luke Boswell
5dde76c4ba
modify examples
2023-03-15 18:09:59 +11:00
Luke Boswell
ef0de4c72f
merge builtin-json
2023-03-15 18:07:01 +11:00
Luke Boswell
1fe56bcefb
adds docs for Json
2023-03-15 16:30:39 +11:00
Luke Boswell
d8d3d252f1
fix empty list test
2023-03-15 09:56:33 +11:00
Luke Boswell
28951a7a16
spellcheck
2023-03-14 19:39:53 +11:00
Luke Boswell
d2bb434092
roc format
2023-03-14 18:36:12 +11:00
Luke Boswell
213111ca55
minor doc fixes, add docs for Set
2023-03-14 18:33:59 +11:00
Brendan Hansknecht
1319ba4844
add List.releaseExcessCapacity builtin
2023-03-13 17:43:21 -07:00
Brendan Hansknecht
b94a046b0d
make sure to check raw capacity when decrementing refcounts
2023-03-13 14:08:24 -07:00
Brendan Hansknecht
5d87ba3441
remove outdated performance comments
2023-03-13 14:08:24 -07:00
Brendan Hansknecht
dfb748fb03
misc cleanup + change refcount pointer to avoid branching
2023-03-13 14:08:24 -07:00