I wrote a small MPMC channel implementation and it turned out pretty well

hi, I have an extensive rust background and was exploring zig, noticed it didn’t have an channel implementation for inter thread communication so I built it.

the core is relatively lean (< 200 LOC) and the performance is comparable to the golden standard (crossbeam) for the most part

r/Zig - I wrote a small MPMC channel implementation and it turned out pretty well|750xauto

it uses the LMAX Disruptor pattern (sequence based)

code: https://github.com/nubskr/ziggy

6 Likes

Might make sense to choose another name, there already is another project called ziggy:

5 Likes