I've been doing this with something very similar in GNOME for years now. It also does io_uring, threadpool schedulers, workstealing, "pollable semaphores" (like IRIX), profiler integration, and makes fibers implemented as futures themselves.<p><a href="https://github.com/GNOME/libdex/" rel="nofollow">https://github.com/GNOME/libdex/</a>
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.
The `Cilk` angle is interesting. There’s still room for small runtimes focused just on fork/join recursion.<p>I’ve been working on one for C: <a href="https://github.com/xtellect/cactus" rel="nofollow">https://github.com/xtellect/cactus</a><p>It’s narrower than Silk/SeaStar: continuation stealing for CPU-bound recursive code, not a general async I/O fiber runtime.
Is this comparable to Sea star [0]?<p>[0] <a href="https://github.com/scylladb/seastar" rel="nofollow">https://github.com/scylladb/seastar</a>
Looks like its using MinIO for the S3 benchmark, which is now archived. I wonder what they'll switch to (if anything)
Seems not exception safe when task switching during unwind.
those who don't learn Erlang/Elixir are bound to reinvent the Erlang VM and OTP model.
Honestly, erlang was designed for telephone use cases and for high concurrency, erlang as an idea is fundamentally really awesome.<p>And elixir on top of erlang really makes the syntax easier to use. Gleam is interesting too!<p>Depending upon the amount of concurrency needed, erlang can be absolutely good for the situation.<p>The only gripe that I might have seen online with Elixir might be that it is functional language (and I think has its own way of doing things) and a lot of the times people start with other languages which can scale to only a certain point.<p>Either way, Erlang VM/OTP model does feel really cool to me. Fun fact: but Erlang was a virtual machine before it was cool (Java)<p>I definitely wish to learn elixir someday (don't quote me on that though :-D), just because of how unique Erlang/Elixir are compared to many languages in such sense of scalability.<p>Although not a 1:1 Apples but I also wish to know more when golang is more fit as compared to elixir as currently, I usually prefer golang as a swiss knife with its decent stdlib,cross-compilation,portability features.
Play on Cilk?
[flagged]
[dead]
[flagged]
[dead]