On Mon, 10 Aug 2026 17:41:30 -0300, Anton Antimo wrote:
For select (called unix-fast-select in SBCL), see sb-unix.
select(2) is considered an archaic way of doing things these days,
because of its ABI limitations. The modern way is poll() <https://manpages.debian.org/poll(2)> (POSIX) or even epoll() <https://manpages.debian.org/epoll(7)> (Linux-specific).
The online manual here (a GNU/Linux system) says:
"poll, ppoll - wait for some event on a file descriptor"
Perhaps that should be rewritten. Reading further, it's not singular,
but that description with "*A* file descriptor" does make it sound like
poll is not a suitable replacement for select.
(Given I'm commenting on the content of the online manual on a Linux
system, I'm adding and followingup-to comp.os.linux.misc.)
On 2026-08-11, Lawrence DrCOOliveiro wrote:
On Mon, 10 Aug 2026 17:41:30 -0300, Anton Antimo wrote:
For select (called unix-fast-select in SBCL), see sb-unix.
select(2) is considered an archaic way of doing things these days,
because of its ABI limitations. The modern way is poll()
<https://manpages.debian.org/poll(2)> (POSIX) or even epoll()
<https://manpages.debian.org/epoll(7)> (Linux-specific).
The online manual here (a GNU/Linux system) says:
"poll, ppoll - wait for some event on a file descriptor"
Perhaps that should be rewritten. Reading further, it's not singular,
Nuno Silva wrote:
The online manual here (a GNU/Linux system) says:
"poll, ppoll - wait for some event on a file descriptor"
Perhaps that should be rewritten. Reading further, it's not
singular, but that description with "*A* file descriptor" does make
it sound like poll is not a suitable replacement for select.
The POSIX/SUS poll() page has:
"poll, ppoll - input/output multiplexing"
https://pubs.opengroup.org/onlinepubs/9799919799/functions/poll.html
(Given I'm commenting on the content of the online manual on a Linux
system, I'm adding and followingup-to comp.os.linux.misc.)
On 2026-08-11, Lawrence DrCOOliveiro wrote:
On Mon, 10 Aug 2026 17:41:30 -0300, Anton Antimo wrote:
For select (called unix-fast-select in SBCL), see sb-unix.
select(2) is considered an archaic way of doing things these days,
because of its ABI limitations. The modern way is poll()
<https://manpages.debian.org/poll(2)> (POSIX) or even epoll()
<https://manpages.debian.org/epoll(7)> (Linux-specific).
The online manual here (a GNU/Linux system) says:
"poll, ppoll - wait for some event on a file descriptor"
Perhaps that should be rewritten. Reading further, it's not singular,
but that description with "*A* file descriptor" does make it sound like
poll is not a suitable replacement for select.
Polling, for this sort of thing, has to be
fast and constant - a big CPU drag. You are
basically WAITING for something to happen -
which MAY or may NOT happen at any moment.
On Fri, 14 Aug 2026 23:47:19 -0400, c186282 wrote:
Polling, for this sort of thing, has to be
fast and constant - a big CPU drag. You are
basically WAITING for something to happen -
which MAY or may NOT happen at any moment.
I used select() rather than poll() but I'm archaic. Typically the select
call was in the main loop. The timeout was often 1 second. If the call returned a ready fd you took care of business. If it timed out, then you
did whatever housekeeping was necessary, making sure it wasn't a long process.
Without the select the main loop would chew up 100% of the CPU. Interrupt have their place but often complex ISRs are used that aren't any faster
than polling.
On 8/14/26 07:26, Nuno Silva wrote:
(Given I'm commenting on the content of the online manual on a Linux
system, I'm adding and followingup-to comp.os.linux.misc.)
On 2026-08-11, Lawrence D???Oliveiro wrote:
On Mon, 10 Aug 2026 17:41:30 -0300, Anton Antimo wrote:
For select (called unix-fast-select in SBCL), see sb-unix.
select(2) is considered an archaic way of doing things these days,
because of its ABI limitations. The modern way is poll()
<https://manpages.debian.org/poll(2)> (POSIX) or even epoll()
<https://manpages.debian.org/epoll(7)> (Linux-specific).
The online manual here (a GNU/Linux system) says:
"poll, ppoll - wait for some event on a file descriptor"
Perhaps that should be rewritten. Reading further, it's not singular,
but that description with "*A* file descriptor" does make it sound like
poll is not a suitable replacement for select.
Polling, for this sort of thing, has to be
fast and constant - a big CPU drag. You are
basically WAITING for something to happen -
which MAY or may NOT happen at any moment.
On 2026-08-15, c186282 <c186282@nnada.net> wrote:
On 8/14/26 07:26, Nuno Silva wrote:
(Given I'm commenting on the content of the online manual on a Linux
system, I'm adding and followingup-to comp.os.linux.misc.)
On 2026-08-11, Lawrence D???Oliveiro wrote:
On Mon, 10 Aug 2026 17:41:30 -0300, Anton Antimo wrote:
For select (called unix-fast-select in SBCL), see sb-unix.
select(2) is considered an archaic way of doing things these days,
because of its ABI limitations. The modern way is poll()
<https://manpages.debian.org/poll(2)> (POSIX) or even epoll()
<https://manpages.debian.org/epoll(7)> (Linux-specific).
The online manual here (a GNU/Linux system) says:
"poll, ppoll - wait for some event on a file descriptor"
Perhaps that should be rewritten. Reading further, it's not singular,
but that description with "*A* file descriptor" does make it sound like
poll is not a suitable replacement for select.
Polling, for this sort of thing, has to be
fast and constant - a big CPU drag. You are
basically WAITING for something to happen -
which MAY or may NOT happen at any moment.
Despite the names, these functions WAIT for events.
Yes it could be sort of confusing.
On 8/14/26 07:26, Nuno Silva wrote:
The online manual here (a GNU/Linux system) says:
"poll, ppoll - wait for some event on a file descriptor"
Perhaps that should be rewritten. Reading further, it's not singular,
but that description with "*A* file descriptor" does make it sound
like poll is not a suitable replacement for select.
Polling, for this sort of thing, has to be
fast and constant - a big CPU drag.
You are basically WAITING for something to happen - which MAY or may
NOT happen at any moment.
The writers of various utils and basic system functions NEED to
include some kind of easy flag or interrupt routine that other utils
can monitor at VERY LOW CPU/Time investment.
On Fri, 14 Aug 2026 23:47:19 -0400, c186282 wrote:
Polling, for this sort of thing, has to be
fast and constant - a big CPU drag. You are
basically WAITING for something to happen -
which MAY or may NOT happen at any moment.
I used select() rather than poll() but I'm archaic. Typically the select
call was in the main loop. The timeout was often 1 second. If the call returned a ready fd you took care of business. If it timed out, then you
did whatever housekeeping was necessary, making sure it wasn't a long process.
Without the select the main loop would chew up 100% of the CPU. Interrupt have their place but often complex ISRs are used that aren't any faster
than polling.
c186282 <c186282@nnada.net> writes:
On 8/14/26 07:26, Nuno Silva wrote:
The online manual here (a GNU/Linux system) says:
"poll, ppoll - wait for some event on a file descriptor"
Perhaps that should be rewritten. Reading further, it's not singular,
but that description with "*A* file descriptor" does make it sound
like poll is not a suitable replacement for select.
https://git.kernel.org/pub/scm/docs/man-pages/man-pages.git/tree/CONTRIBUTING
Polling, for this sort of thing, has to be
fast and constant - a big CPU drag.
poll() doesnrCOt poll, despite the name.
You are basically WAITING for something to happen - which MAY or may
NOT happen at any moment.
The writers of various utils and basic system functions NEED to
include some kind of easy flag or interrupt routine that other utils
can monitor at VERY LOW CPU/Time investment.
Already done, several decades ago.
-a Tax calculations, almost any idiot can code an
-a app.
Richard Kettlewell wrote:
c186282 <c186282@nnada.net> writes:
On 8/14/26 07:26, Nuno Silva wrote:https://git.kernel.org/pub/scm/docs/man-pages/man-pages.git/tree/CONTRIBUTING
The online manual here (a GNU/Linux system) says:
"poll, ppoll - wait for some event on a file descriptor"
Perhaps that should be rewritten. Reading further, it's not singular,
but that description with "*A* file descriptor" does make it sound
like poll is not a suitable replacement for select.
Polling, for this sort of thing, has to bepoll() doesnrCOt poll, despite the name.
fast and constant - a big CPU drag.
Then it should be re-named.
c186282 <c186282@nnada.net> writes:poll() doesnrCOt poll, despite the name.
Then it should be re-named.
Obviously thatrCOs not happening. And what would be the point? Make life easier for people who react to single words without reading any documentation?
On 2026-08-16 04:41, c186282 wrote:
-a Tax calculations, almost any idiot can code an app.
I object to that. I do not want an idiot telling how much tax to pay.
You brought a
jacket so you could do shit in the CPU room.
On 16/08/2026 09:59, Richard Kettlewell wrote:
c186282 <c186282@nnada.net> writes:poll() doesnrCOt poll, despite the name.
Of course. Otherwise they might elect Trump as a president...
-a-a Then it should be re-named.
Obviously thatrCOs not happening. And what would be the point? Make life
easier for people who react to single words without reading any
documentation?
On Sun, 16 Aug 2026 02:09:57 -0400, c186282 wrote:
You brought a
jacket so you could do shit in the CPU room.
At RPI the shrine where the 360/30 lived was the only place on campus with A/C. Not a bad thing on those days when the humidity in the Hudson Valley hits 99.9%.
The last place I worked was a converted mill building. Rather nice architecturally but every HVAC company in town had taken a shot at it with limited success. Programming wore flannel shirts in August and it wasn't a style thing. Portable electric heaters appeared to the consternation of
the maintenance people.
Conversely, I leaned toward short sleeved shirts in December. The poor bastards on the 2nd floor were on the opposite schedule.
On 8/16/26 06:42, The Natural Philosopher wrote:
On 16/08/2026 09:59, Richard Kettlewell wrote:
c186282 <c186282@nnada.net> writes:poll() doesnrCOt poll, despite the name.
Of course. Otherwise they might elect Trump as a president...
-a-a Then it should be re-named.
Obviously thatrCOs not happening. And what would be the point? Make life >>> easier for people who react to single words without reading any
documentation?
Listen to the "socialists" - I'd elect Trump over and over until he's
125 years old rather than have THOSE shits in charge of anything.
| Sysop: | Amessyroom |
|---|---|
| Location: | Fayetteville, NC |
| Users: | 74 |
| Nodes: | 6 (0 / 6) |
| Uptime: | 50:07:57 |
| Calls: | 1,100 |
| Files: | 1,339 |
| Messages: | 275,859 |