Cosmo3 multi-os fat binaries with threads

2023-11-08 Thread Araq
Also, with ORC we don't do any stack marking anymore so coroutines should work much better than when coro.nim was written.

Cosmo3 multi-os fat binaries with threads

2023-11-08 Thread PMunch
Have you seen the coro module in the standard library? Sounds like it might be of interest to you:

Cosmo3 multi-os fat binaries with threads

2023-11-08 Thread mildred
If one wants to implement coroutines in pure C, setjmp and longjmp is probably not the thing to use as it does not allow to have a separate C stack for each coroutine. One should probably use makecontext and swapcontext on stacks allocated with mmap (with MAP_GROWSDOWN, lighter than malloc). [c

Cosmo3 multi-os fat binaries with threads

2023-11-08 Thread mildred
I found this article very insightful around the async problem: > What language isn’t colored? > > [...] Three more languages that don’t have this problem: Go, Lua, and Ruby. > > Any guess what they have in common? > >

Cosmo3 multi-os fat binaries with threads

2023-11-02 Thread elcritch
I know, but projects like `greenbean` just further encourage the mindshare that async doesn't have to be the only way to do hi perf networking. Especially if normal OS threads can be made just as cheap as a stack of Futures without a special runtime like Go requires. Also this setup might be ch

Cosmo3 multi-os fat binaries with threads

2023-11-02 Thread Araq
Already we have production ready servers who skip `async`... ;-)

Cosmo3 multi-os fat binaries with threads

2023-11-01 Thread elcritch
Wow, the Cosmopolitan folks have been busy: The interesting part to me is: