c3lang / c3-web

The website for C3 made with Astro!
https://c3-lang.org/
MIT License
48 stars 23 forks source link

General docs update -- braindump to be written up #73

Open joshring opened 1 month ago

joshring commented 1 month ago

Async Design Problems

Coroutines

The General Solution Proposal

TODO:

lerno commented 1 month ago

I would say that there is no general solution, and trying to find general solutions are doomed to failure.

What we should / can do is to provide different library features, with varying degrees of control and behaviour. For example, we might provide different kinds of thread pools, event handlers/listeners etc. These should come from proven solutions.

EVERYONE wants to solve concurrency, but what people tend to forget is that there will be no on-size-fits-all solution.

Let's instead focus on providing good niche solutions and good libraries to support those solutions and others that people might want to create.

joshring commented 1 month ago

flexible syntax to allow you to make the trade-offs appropriate to your use-case. Customise your own scheduler, with options suitable to your use-case.

I think we agree, let's find some suitable schedulers we can borrow from