🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.comp.lang.rust
Article #456

Re: “The end of software secrecy is almost upon us”

#456
From: Charlie Gibbs
Date: Sat, 31 Oct 2026 04:14
20 lines
2284 bytes
On 2026-10-30, Lawrence D’Oliveiro <ldo@nz.invalid> wrote:

> Threading is still definitely useful, mainly for performance, where
> the bottleneck is in CPU usage. But if a program is spending most of
> its time waiting for I/O over the network, or for a user to initiate a
> GUI action, or something external and relatively slow like that, then
> coroutines keep things simpler.

I've always tried to avoid the complexities of threading; in most cases
I can get away with round-robin scheduling.  But I found that some servers
are very slow to respond, and even when trying to do a non-blocking setup
of a TCP/IP connection, the connect() API would unavoidably block.  I had
to spin that part off into its own thread to keep the rest of the program
(including other connections) from hanging.

-- 
/~\  Charlie Gibbs                  |  In this world there are
\ /  <cgibbs@kltpzyxm.invalid>      |  two kinds of people:
 X   I'm really at ac.dekanfrus     |  1. Those who can extrapolate
/ \  if you read it the right way.  |  from incomplete data.
Technical Details
Message-ID: <hWdFS.111353$cLL5.22363@fx42.iad>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx42.iad.POSTED!not-for-mail
References: <11amvre$15far$1@dont-email.me> <20261030005434.00005458@yahoo.com> <11c0v1j$her$1@reader2.panix.com> <20261030105900.000020ce@yahoo.com> <11c1uqd$keq$1@reader2.panix.com> <11c2fcl$19bk2$1@dont-email.me> <11c2rla$hko3$2@dont-email.me> <11c362o$lfc1$1@dont-email.me>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx42.iad.POSTED!not-for-mail
Newsgroups: comp.lang.fortran,comp.lang.c++,alt.comp.lang.rust,alt.folklore.computers
From: Charlie Gibbs <cgibbs@kltpzyxm.invalid>
Subject: Re: “The end of software secrecy is almost upon
 us”
References: <11amvre$15far$1@dont-email.me>
 <20261030005434.00005458@yahoo.com> <11c0v1j$her$1@reader2.panix.com>
 <20261030105900.000020ce@yahoo.com> <11c1uqd$keq$1@reader2.panix.com>
 <11c2fcl$19bk2$1@dont-email.me> <11c2rla$hko3$2@dont-email.me>
 <11c362o$lfc1$1@dont-email.me>
User-Agent: slrn/1.0.3 (Linux)
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Lines: 20
Message-ID: <hWdFS.111353$cLL5.22363@fx42.iad>
X-Complaints-To: https://www.astraweb.com/aup
NNTP-Posting-Date: Sat, 31 Oct 2026 04:14:05 UTC
Date: Sat, 31 Oct 2026 04:14:05 GMT
X-Received-Bytes: 1970