[Info-vax] Simple Pascal question
Lawrence D'Oliveiro
ldo at nz.invalid
Thu Sep 5 13:30:48 EDT 2024
On Wed, 7 Aug 2024 20:38:02 -0400, Arne Vajhøj wrote:
> On 8/7/2024 5:35 PM, Lawrence D'Oliveiro wrote:
>
>> Trying to do select/poll? There’s something like 4 different classes
>> and I don’t know how many methods involved.
>
> There are several ways to do that in Java:
> * java.nio
> * Netty
> * RxJava
> * ...
>
> All of them require a bit of documentation reading.
>
> But so does the same problem in languages like C# and C.
The POSIX calls are quite straightforward
<https://manpages.debian.org/2/poll.2.en.html>.
> And the typical Java application works at a higher level - it asks some
> framework to listen at a given port and call some code to process
> requests.
So does Python. Yet it can do it much more simply
<https://docs.python.org/3/library/select.html> -- even the asyncio
framework makes it easy to watch a file descriptor
<https://docs.python.org/3/library/asyncio-eventloop.html#watching-file-descriptors>
More information about the Info-vax
mailing list