|
|
|
|
|
by AnkhMorporkian
3848 days ago
|
|
You know what I've always wanted to see (and it's quite possible one exists; I have never actively searched for one)? A completely asynchronous programming language. Every single operation is carried out asynchronously; everything from addition to while loops. Synchronization would be a nightmare, but I think it would be a fun exercise to see what you could do in that framework. |
|
The nice thing about this approach is that you can emulate blocking or non-blocking I/O within the same function or even against the same file descriptor. And processes are so cheap that if your callees do block in unexpected ways you can just move that one call into its own process that just sends you a message when it's done.