Silk: Open-source cooperative fiber scheduler

(github.com)

43 points | by animetyan 3 days ago

7 comments

  • enduku 19 minutes ago
    The `Cilk` angle is interesting. There’s still room for small runtimes focused just on fork/join recursion.

    I’ve been working on one for C: https://github.com/xtellect/cactus

    It’s narrower than Silk/SeaStar: continuation stealing for CPU-bound recursive code, not a general async I/O fiber runtime.

  • nasretdinov 2 hours ago
    Looks really interesting. I assume this suggests that ClickHouse is going to gradually switch to using this library for network and I/O, thus addressing the main weakness (in my mind) of C++ thread-per-connection servers, which is, they (surprisingly!) create too many threads and can't really handle more than, say, a thousand active connections at the same time. It mostly matters for async INSERTs in this case of course, not for SELECTs, although generally it applies to both.
  • jeffreygoesto 2 hours ago
    Is this comparable to Sea star [0]?

    [0] https://github.com/scylladb/seastar

  • feverzsj 1 hour ago
    Seems not exception safe when task switching during unwind.
  • yvdriess 1 hour ago
    Play on Cilk?
  • idlepig 1 hour ago
    [flagged]
  • embirdating 1 hour ago
    [dead]