swim protocol in ocaml interoperable with membership lib and serf cli
OCaml
79.6%
Go
11.7%
Shell
6.6%
Dune
0.5%
Other
1.5%
code
Clone this repository
https://tangled.org/gdiazlo.tngl.sh/swim
git@tangled.org:gdiazlo.tngl.sh/swim
For self-hosted knots, clone URLs may differ based on your setup.
- Replaced Semaphore + Kcas queue with native Eio.Stream
- Removed unused try_acquire function
- Simplified implementation to ~20 lines
- Maintains thread safety and backpressure via Eio scheduler
- Add missing 'fmt' dependency
- Move test/benchmark dependencies (eio_main, qcheck, alcotest) to with-test
- Update version constraints to match environment (mirage-crypto >= 2.0, etc.)
- Remove unused eio_main from library link phase