4 ms·
In unix world, everything is a file, so you can poll the file waiting for something to happen. And there’s the whole signal thing and dbus exists.
by skydhash 2y ago
In unix world, everything is a file, so you can poll the file waiting for something to happen. And there’s the whole signal thing and dbus exists.
- pavlov 2y agoYeah, these are the event paradigms that I meant by “nothing useful.” Files are not a good abstraction for events. Signals are broken in many ways. And DBus is both extremely clunky to use and non-portable. There isn’t a built-in event paradigm similar to how streams and pipes are an integral part of the Unix-style CLI.
- dandanua 2y ago> Files are not a good abstraction for events Why is that? On the low level everything is a state of electronic cells. Files address those cells in a suitable fashion. Modern programming abstractions such as async/await are very simple, but fail miserably if you need something really complex and efficient.