judofyr/spice
View on GitHub ↗ ★ 974 Zig
Fine-grained parallelism with sub-nanosecond overhead in Zig
10 mentions on Hacker News by 8 people: 1 story, 9 comments · first 2024-08-12 · latest 2025-10-22
20082026
-
What about using something like https://github.com/judofyr/spice ?
comment by zipy124 · 2025-10-22 · in The death of thread per core -
Any comparison with heartbeat scheduling i.e., https://github.com/judofyr/spice or the rust port https://github.com/dragostis/chili ?
comment by quackzar · 2025-09-28 · in Beyond OpenMP in C++ and Rust: Taskflow, Rayon, Fork Union -
…Iiuc openmp uses work stealing and the spice readme talks about the inefficiency of that: https://github.com/judofyr/spice?tab=readme-ov-file#work-ste... so I’d be interested in seeing a benchmark.
comment by marmaduke · 2024-09-19 · in Show HN: Chili. Rust port of Spice, a low-overhead parallelization library -
The README of Spice has detailed explanation of the approach: https://github.com/judofyr/spice
comment by judofyr · 2024-09-19 · in Show HN: Chili. Rust port of Spice, a low-overhead parallelization library -
…accessed by each worker thread, which is used for pushing work on heartbeat and for dequeuing work. https://github.com/judofyr/spice/blob/167deba6e4d319f96d9d67... "Adding more threads to the system will not make your program any slower"…
comment by chc4 · 2024-08-13 · in Spice: Fine-grained parallelism with sub-nanosecond overhead in Zig -
…how and when you should use Spice and Rayon. I would recommend reading the benchmark document: https://github.com/judofyr/spice/blob/main/bench/README.md . What people typically do when comparing parallel code is to only compare the…
comment by judofyr · 2024-08-13 · in Spice: Fine-grained parallelism with sub-nanosecond overhead in Zig -
…only if (1-thread Spice - non-parallelized baseline) > 1ns, which their tests back up their claims. https://github.com/judofyr/spice/tree/main/bench
comment by x-complexity · 2024-08-13 · in Spice: Fine-grained parallelism with sub-nanosecond overhead in Zig -
List of limitations of the project: https://github.com/judofyr/spice?tab=readme-ov-file#limitati...
comment by shoggouth · 2024-08-13 · in Spice: Fine-grained parallelism with sub-nanosecond overhead in Zig -
see also readme under bench https://github.com/judofyr/spice/blob/main/bench/README.md
comment by dsp_person · 2024-08-12 · in Spice: Fine-grained parallelism with sub-nanosecond overhead in Zig