Commit Graph

23606 Commits

Author SHA1 Message Date
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
Anton-4
2023770ce7
Merge pull request #5134 from lukewilliamboswell/docs
Add documentation for `Set` and minor fixes
2023-03-15 11:40:06 +01: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
ba1d8755e0
Merge remote-tracking branch 'remote/main' into docs 2023-03-15 18:20:52 +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
Brendan Hansknecht
ae42144c72
Merge pull request #5135 from roc-lang/no-editor-by-default
don't build editor for CLI by default
2023-03-15 05:16:51 +00:00
Luke Boswell
d8d3d252f1
fix empty list test 2023-03-15 09:56:33 +11:00
Anton-4
1f92508c55
clippy 2023-03-14 19:17:36 +01:00
Anton-4
0605639fa8
fix editor test 2023-03-14 18:24:30 +01:00
Anton-4
16f32c9409
don't build editor for CLI by default 2023-03-14 16:36:03 +01:00
Anton-4
44778c72fe
Merge pull request #5117 from human154/patch-3
Tutorial: add spaces before colons
2023-03-14 11:58:38 +01:00
Luke Boswell
28951a7a16
spellcheck 2023-03-14 19:39:53 +11:00
Folkert de Vries
fb5e7376eb
Merge pull request #5133 from roc-lang/release-excess-capacity
add List.releaseExcessCapacity builtin
2023-03-14 09:27:47 +01: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
9e2a36f1d4
update mono 2023-03-13 18:03:05 -07:00
Brendan Hansknecht
1319ba4844
add List.releaseExcessCapacity builtin 2023-03-13 17:43:21 -07:00
Richard Feldman
40b50b0091
Merge pull request #5122 from roc-lang/seamless-slices
Seamless slices for Lists
2023-03-13 19:45:37 -04:00
Brendan Hansknecht
dc1a7dcd12
try using roc_alloc and roc_dealloc (aka malloc and free) for buffers in false 2023-03-13 14:53:20 -07:00
Brendan Hansknecht
d88894c365
avoid zero sized allocation in false 2023-03-13 14:08:24 -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
Brendan Hansknecht
216fd3f9f6
Update typo in comment
Co-authored-by: Richard Feldman <oss@rtfeldman.com>
Signed-off-by: Brendan Hansknecht <Brendan.Hansknecht@gmail.com>
2023-03-13 14:08:24 -07:00
Brendan Hansknecht
5f6910f747
add todo about upgrading to bit manipulation 2023-03-13 14:08:24 -07:00
Brendan Hansknecht
26f5d558d8
update wasm to load capacity correctly 2023-03-13 14:08:24 -07:00
Brendan Hansknecht
f96a63c1d4
correct case for zig naming 2023-03-13 14:08:23 -07:00
Brendan Hansknecht
401f525846
update roc_std for seamless slices 2023-03-13 14:08:23 -07:00
Brendan Hansknecht
f9274e575b
update list decref to know about seamless slices 2023-03-13 14:08:23 -07:00
Brendan Hansknecht
146dff5446
add llvm refcounting and fix memory leak 2023-03-13 14:08:23 -07:00
Brendan Hansknecht
7a927b6192
Port fromUtf8 to fromUtf8Range
All roc file calls already use fromUtf8Range.
Removed the duplicate function for simplicity.
Inlining should lead to generating the same code.
2023-03-13 14:08:23 -07:00
Brendan Hansknecht
cda37a5d1b
use seamless slices for List.dropAt when possible 2023-03-13 14:08:23 -07:00
Brendan Hansknecht
4ced1bcfdd
add baseline of seamless slices 2023-03-13 14:08:23 -07:00
Brendan Hansknecht
e32c5f6514
standardize on decref instead of deinit for name 2023-03-13 14:08:23 -07:00
Brendan Hansknecht
440c0518f1
Change list.deinit to take alignment directly
In doing so remove the many class directly to utils.decref
2023-03-13 14:08:22 -07:00
Folkert de Vries
0a3b2e25a1
Merge pull request #5109 from thehabbos007/dev-x86-dbg
Add debug section to the `gen_dev` crate readme
2023-03-13 21:27:51 +01:00
Richard Feldman
cf67591d10
Merge pull request #5121 from itmuckel/tutorial-fix-unused-function
Fix unused function in tutorial
2023-03-13 06:42:48 -04:00
Anton-4
5acc2ea3a2
Merge pull request #5127 from roc-lang/editor-launch-fix
fix `Arg::allow_invalid_utf8` clap error
2023-03-13 11:42:34 +01:00
Anton-4
7c43f64166
Merge pull request #5128 from lukewilliamboswell/site-files
Add support for recursive folders in `examples/static-site-gen` platform
2023-03-13 11:37:29 +01:00
Ahmad Sattar
cda3073efe
Add debug section to the gen_dev crate readme 2023-03-13 11:00:58 +01:00
Luke Boswell
3ce20f74d9
support recursive folders 2023-03-13 19:18:39 +11:00