4 ms·
Programming against system calls doesn't suffer from this problem. In fact, if you use synchronous system calls, the OS does exactly what you're asking for: swi
by pwpwp 14y ago
Programming against system calls doesn't suffer from this problem. In fact, if you use synchronous system calls, the OS does exactly what you're asking for: switching contexts when appropriate.
- ef4 14y agoThat's true. I was referring to the non-ability to throw meaningful exceptions, which is a side-effect of Node's inversion of control. Basically it means you can't rely on exceptions at all, so you're back in a "always check for the error code" world.