Commit Graph

27302 Commits

Author SHA1 Message Date
Brendan Hansknecht
be06599bb6
bundle compiler-rt through zig 2023-12-09 18:11:22 -08:00
Brendan Hansknecht
f738d5a2bf
remove unnecessary call to math.floor in bitcode 2023-12-09 18:11:22 -08:00
Brendan Hansknecht
d202b77ae1
update uitest and mono_test 2023-12-09 18:11:22 -08:00
Brendan Hansknecht
4facfe1229
add license to legal details 2023-12-09 18:11:22 -08:00
Brendan Hansknecht
65c5a490b8
fix Dict.listGetUnsafe to map to low level without wrapping 2023-12-09 18:11:22 -08:00
Brendan Hansknecht
51ec4311b5
Swap Dict implementation to ankerl dense unordered
ankerl::dense_unordered is a very fast hash map that is built to be an index map.
This enables extra optimizations compared to just wrapping a regular hash map.
As such, I think this map is very well suited for our index map impl in Roc.
I also think this dictionary implementation is simpler overall.
On top of that, this removes the need for SIMD instructions for peak performance.

Benchmarks of the C++ version and other C++ hash maps are here: https://martin.ankerl.com/2022/08/27/hashmap-bench-01/
Though this has clear bias of being written by the author of ankerl::dense_unordered,
the results all look correct and the benchmarks thorough.
2023-12-09 18:11:22 -08:00
Brendan Hansknecht
eadd0e82ce
Merge pull request #6234 from rgripper/patch-1
Updated zig domain
2023-12-09 09:42:06 -08:00
Vladimir Zotov
d6532bea18
Updated zig domain
Signed-off-by: Vladimir Zotov <azuresplash@gmail.com>
2023-12-09 17:39:59 +01:00
Richard Feldman
59a29a4ee8
Merge pull request #6229 from eelcoh/add-tail-example
added [head, .. as tail] pattern matching example to tutorial
2023-12-09 10:26:20 -05:00
Folkert de Vries
8cdabfa993
Merge pull request #6215 from JRI98/improve-fmt
Fix format for the 'as' keyword
2023-12-09 16:25:56 +01:00
Eelco Hoekema
3e5f1e88f0 added [head, .. as tail] pattern matching example to tutorial 2023-12-09 09:56:16 +01:00
Luke Boswell
bccfdde63a
Merge pull request #6221 from kantuni/patch-2
Add Decem to the list of companies
2023-12-09 11:50:43 +11:00
Luke Boswell
c262eca6c1
Merge pull request #6222 from randomer/patch-4
Tutorial / table of contents: remove "Abilities" since it leads nowhere
2023-12-09 10:26:06 +11:00
Rod
4ff7614147
Remove "Abilities" from the table of contents since it leads nowhere
Signed-off-by: Rod <randomer@users.noreply.github.com>
2023-12-09 02:26:35 +04:00
Henrikh Kantuni
85c576bb3d
Add Decem to the list of companies
Signed-off-by: Henrikh Kantuni <henrikh.kantuni@gmail.com>
2023-12-08 15:36:22 -05:00
Richard Feldman
e8b4f122a6
Fix Decem logo URL
Signed-off-by: Richard Feldman <oss@rtfeldman.com>
2023-12-07 21:16:02 -05:00
Richard Feldman
544ad5de2e
Merge pull request #6217 from roc-lang/add-decem
Add Decem to sponsors
2023-12-07 21:04:44 -05:00
Richard Feldman
93b121f1f6
Add Decem to sponsors 2023-12-07 20:51:27 -05:00
JRI98
0599066865
Fix format for the 'as' keyword 2023-12-07 10:46:58 +00:00
Luke Boswell
5652d4ec18
Merge pull request #6211 from roc-lang/zig-glue
Initial template for Zig glue
2023-12-07 14:11:43 +11:00
Richard Feldman
497187ab6a
Merge pull request #6198 from stuarth/ignore-AUTHORS-changes-in-ci
Ignore change to AUTHORS in ci
2023-12-06 20:22:10 -05:00
Luke Boswell
61a55ad79d
make a start 2023-12-07 11:25:02 +11:00
Stuart Hinson
176f751318 remove testing data 2023-12-06 15:27:45 -05:00
Richard Feldman
84fe22d388
Merge pull request #6163 from CrepeGoat/fix-website-typos
fixed typos in website pages
2023-12-06 15:23:03 -05:00
Richard Feldman
62f3312b80
Merge pull request #6199 from stuarth/restore-simple-http-server
restore simple-http-server
2023-12-06 15:22:32 -05:00
Richard Feldman
942dbf0319
Merge pull request #6210 from roc-lang/plans
Add Nat changes to roc-lang.org `/plans` page
2023-12-06 15:21:40 -05:00
Anton-4
c4c1e66d1c
Merge pull request #6209 from roc-lang/remove-max-nat-mention
Num.maxNat does not exist
2023-12-06 20:44:49 +01:00
Richard Feldman
6f0857d7da
Merge pull request #6202 from roc-lang/substring-slices
Create seamless slices when getting a substring
2023-12-06 14:31:01 -05:00
Brendan Hansknecht
ca71409a76
add comment on slice construction 2023-12-06 11:26:52 -08:00
Luke Boswell
2d10e5f4b5
Add Nat changes to /plans 2023-12-07 06:21:46 +11:00
Anton-4
e16f2bbc01
Num.maxNat does not exist
Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
2023-12-06 18:19:27 +01:00
Richard Feldman
0179aa4e72
Merge pull request #6192 from roc-lang/exit-repl
Make it easier to exit `roc repl`
2023-12-06 09:20:48 -05:00
Brendan Hansknecht
81eff6a23f
Merge pull request #6176 from roc-lang/set-perf
Improve perf of Dict and Set
2023-12-06 02:02:01 -08:00
Brendan Hansknecht
087ca115c9
create seamless slices when getting a substring 2023-12-05 22:46:43 -08:00
Stuart Hinson
c60b2e1a0c restore simple-http-server 2023-12-05 21:11:23 -05:00
Stuart Hinson
6ce037aa54 ignore changes to AUTHORS file in ci_manager 2023-12-05 20:12:05 -05:00
Stuart Hinson
6008fc0fd6 dummy commit 2023-12-05 20:07:52 -05:00
Brendan Hansknecht
9889984dd4
Merge pull request #6193 from horriblename/Fix-typos
Fix typos
2023-12-05 15:31:11 -08:00
Brendan Hansknecht
86eae30247
Merge pull request #6182 from CrepeGoat/patch-1
Update Num.roc - fix docstring typos
2023-12-05 14:28:39 -08:00
Brendan Hansknecht
64df1c6921
update uitest and mono_test 2023-12-05 14:13:18 -08:00
Brendan Hansknecht
a2cc17e8e9
write keepShared in a way that doesn't break dev-wasm 2023-12-05 14:12:10 -08:00
Brendan Hansknecht
37656f4cc0
update uitest and mono_test 2023-12-05 12:45:31 -08:00
Brendan Hansknecht
87b31a581e
roc format 2023-12-05 12:37:12 -08:00
Brendan Hansknecht
3f50f78eba
update tests and Dict.keepShared semantics 2023-12-05 12:37:12 -08:00
Brendan Hansknecht
a0854a10e7
optimize set intersection and union 2023-12-05 12:37:12 -08:00
Brendan Hansknecht
35146d1a0b
remove redundant size attribute 2023-12-05 12:37:11 -08:00
Brendan Hansknecht
b9ef582c26
correct size to avoid rehash 2023-12-05 12:37:11 -08:00
Brendan Hansknecht
7e04c1f58c
use constants to avoid new allocations in Dict.empty 2023-12-05 12:37:11 -08:00
Brendan Hansknecht
f31a4070e4
implement Dict.withCapacity and improve Dict.fromList 2023-12-05 12:37:11 -08:00
Brendan Hansknecht
6692f5b15d
correct counting bits to return a u8
Also add an impl to the dev backend
2023-12-05 12:37:10 -08:00