Hacker GitHub

← All repos

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

Mentions per year 10 mentions · busiest year 2024 (8)
20082026
  1. What about using something like https://github.com/judofyr/spice ?
    comment by zipy124 · 2025-10-22 · in The death of thread per core
  2. Any comparison with heartbeat scheduling i.e., https://github.com/judofyr/spice or the rust port https://github.com/dragostis/chili ?
  3. …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.
  4. The README of Spice has detailed explanation of the approach: https://github.com/judofyr/spice
  5. …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"…
  6. …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…
  7. …only if (1-thread Spice - non-parallelized baseline) > 1ns, which their tests back up their claims. https://github.com/judofyr/spice/tree/main/bench
  8. List of limitations of the project: https://github.com/judofyr/spice?tab=readme-ov-file#limitati...
  9. ▲ 394
    Spice: Fine-grained parallelism with sub-nanosecond overhead in Zig
    story by dsp_person · 2024-08-12 · 53 comments
  10. see also readme under bench https://github.com/judofyr/spice/blob/main/bench/README.md