3 ms·
It's basically how Java does it (circa 17) as well. It's something you really can't do without a pretty significant language runtime. You also really need peo
by cogman10 1y ago
It's basically how Java does it (circa 17) as well.
It's something you really can't do without a pretty significant language runtime. You also really need people working within your runtime to prefer being in your runtime. Environments that do a lot of FFI don't work well with a colorblind runtime. That's because if the little C library you call does IO then you've got an incongruous interaction that you need to worry about.
- gpderetta 1y agoNeither Java nor Go make all functions async. What they provide is stackful coroutines (or equivalently one shot continuations) that allow composing async and sync functions transparently.
- FlyingSnake 1y agoGolang functions are synchronous but all goroutine code is essentially async or “coloured”.