🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.linux.misc
Article #2604

Re: what's a mainframe, NYT and Stratus (Re: [OT] Dead DEC Punch card times)

#2604
From: Alexander Schreiber
Date: Sun, 15 Nov 2026 12:15
122 lines
7464 bytes
Lawrence D’Oliveiro <ldo@nz.invalid> wrote:
> On Fri, 13 Nov 2026 15:05:00 +0100, Alexander Schreiber wrote:
>
>> Lawrence D’Oliveiro <ldo@nz.invalid> wrote:
>>>
>>> Perception doesn’t count. That’s reality. You can’t *pretend* to
>>> offer interactivity: you really have to have support for
>>> interactivity built into your architecture from the lowest levels
>>> up. You can’t build per-character response on top of block mode.
>>
>> You absolutely can and the interactive web proves it.
>
> The interactive web is not run on mainframe-style block-mode
> terminals.

I did not claim so. But the basic concepts of:
 - smart local terminal
 - data transfer between terminal and server not keystroke-by-keystroke
   but in functional blocks of data
underlies both, hence one could argue that they share underlying
functional ideas, however massively they differ in the user experience.

>>> WebSocket connections are asynchronous full-duplex connections --
>>> that’s not “RPC” by any stretch.
>>
>> Of course it is. RPCs come in various kinds, from the classic
>> one-shot (establish connection, send request, wait for and read
>> response, close connection) to streaming RPCs.
>
> “RPC” stands for “Remote Procedure Call”. It’s emulating a procedure
> call over a network connection. You know how a procedure call works,
> don’t you? The caller transfers control to the callee, waits for the
> callee to do its thing and return a result, whereupon the caller
> resumes execution again.

Thanks for the refresher, so local procedure calls still work the same
as back then when I wrote code that involved the occasional function
and/or procedure call (yes, there are languages where there is a
difference)? That's a relief.

But that's not how RPCs work. Most importantly, there is no transfer
of control, the local system can continue executing code while writing to
or reading from the remote system. In the most simple case:
 - local code connects to remote system
 - writes to it to invoke a defined endpoint there, optionally writing
   arguments to that endpoint
 - reads back the results
 - disconnects

One can do that as a full straight run of blocking network I/O. More
commonly, the network I/O is mixed with ongoing local execution and
calls to select(2) or epoll(7)/kqueue(2) to not block the caller waiting
for the callee or the network, plus one wants timeouts to avoid waiting
forever.

> And nobody ever described block-mode mainframe terminals as running
> any kind of “RPC” either. The “RPC” concept was only invented after
> mainframes had been around for a few decades.

Because the concept, as you pointed out, was not invented when block
mode terminals where the new hot stuff. In retrospect, there are
functional similarities between those block mode terminals and web
services, which might be more obvious if one uses a terminal browser
like links for the web (which of course limits one to sites that don't
rely on JavaScript and lots of graphics for their function).

> Before getting even deeper into your love for RPCs and seeing every
> kind of network protocol as RPCs, maybe you should read this

Professional bias. I work in an environment where every in-house binary
is always both an RPC server and an RPC client - RPC traffic is everywhere.
So one tends to recognize the pattern. Yes, proper designed-as-such RPC
systems have defined endpoint naming structure (e.g. Service.Method), well
defined serialization (such as XDR or protobufs) and proper builtin error
handling and signaling mechanisms. That never stopped anyone from not doing
things that way and e.g. just pushing raw bytes with no metadata (type, size,
etc) over the ether (or worse, Python pickles) ... 

><https://www.cs.vu.nl/~ast/Publications/Papers/euteco-1988.pdf>.

Interesting read, but it is painfully obvious from the text (even without
peeking at the date) that this was written in the very early days of
networked services (and the dig at the ISO model is also a nice tell).
A lot has happened in computer science in the last almost 40y. In modern
networked service infrastructure, the pain points the paper raises have
pretty much all been dealt with in various ways. It does neatly demonstrate
how painful and primitive (from todays perspective) networked service
were at times back then, though.

>> Even HTTP, which is not exactly the most efficient RPC method, came
>> up with streaming RPCs: HTTP 1.1 pipelining, where multiple requests
>> are handled within the same TCP connection.
>
> Those don’t work for RPCs, though.

Running multiple RPC requests over HTTP 1.1 pipelining is going to be
problematic at best and for obvious reasons, sure. But it does work when
you consider it a primitive (half-duplex) streaming RPC with multiple
sub-requests. 

Again: I see HTTP functionally as _a_ RPC system, which works reasonably
well in the constrained functional space HTTP was designed for and has
evolved in. Should you use it as a generic RPC system? Of course not, that
would be silly (and I write that as someone who used ssh as primitive RPC
system before).

>> And "asynchronous" just means you don't do blocking reads and
>> instead use the framework equivalent of select(2) for a more fluid
>> interaction.
>
> Well, maybe not select(2), maybe something more modern?

Sure, hence "functional equivalent", e.g. epoll or kqueue - or whatever
higher level abstraction (such as Promises/Futures in Java) is offered
by whatever language or framework one uses.

Kind regards,
           Alex.

-- 
"Opportunity is missed by most people because it is dressed in overalls and
 looks like work."                                      -- Thomas A. Edison
Technical Details
Message-ID: <slrn11fj8i6.1q1o8.als@mordor.angband.thangorodrim.de>
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!news.tcpreset.net!newsfeed.bofh.team!weretis.net!feeder8.news.weretis.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
References: <18dee4b6cab427fa$865$2574533$802601b3@news.usenetexpress.com> <11cr1ub$q796$1@dont-email.me> <11creup$trgi$1@dont-email.me> <mdednVFy4dK82Gz3nZ2dnZfqnPidnZ2d@giganews.com> <11ctde2$2ibp$1@gal.iecc.com> <5O-dnQvUAMIEF2_3nZ2dnZfqn_SdnZ2d@giganews.com> <slrn11f5pfd.2l8ql.als@mordor.angband.thangorodrim.de> <11d06np$2iil7$1@dont-email.me> <slrn11f8ji8.2e7kp.als@frodo.angband.thangorodrim.de> <11d3mig$3mitg$5@dont-email.me> <slrn11fb2te.3eniu.als@mordor.angband.thangorodrim.de> <11d5r9e$fd1d$3@dont-email.me> <slrn11fe68c.1fbi.als@mordor.angband.thangorodrim.de> <11dbhjg$2ha20$1@dont-email.me>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!news.tcpreset.net!newsfeed.bofh.team!weretis.net!feeder8.news.weretis.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: Alexander Schreiber <als@usenet.thangorodrim.de>
Newsgroups: comp.os.linux.misc,alt.folklore.computers
Subject: Re: what's a mainframe, NYT and Stratus (Re: [OT] Dead DEC Punch
 card times)
Date: Sun, 15 Nov 2026 13:15:02 +0100
Organization: Not much.
Lines: 122
Message-ID: <slrn11fj8i6.1q1o8.als@mordor.angband.thangorodrim.de>
References: <18dee4b6cab427fa$865$2574533$802601b3@news.usenetexpress.com>
 <11cr1ub$q796$1@dont-email.me> <11creup$trgi$1@dont-email.me>
 <mdednVFy4dK82Gz3nZ2dnZfqnPidnZ2d@giganews.com>
 <11ctde2$2ibp$1@gal.iecc.com>
 <5O-dnQvUAMIEF2_3nZ2dnZfqn_SdnZ2d@giganews.com>
 <slrn11f5pfd.2l8ql.als@mordor.angband.thangorodrim.de>
 <11d06np$2iil7$1@dont-email.me>
 <slrn11f8ji8.2e7kp.als@frodo.angband.thangorodrim.de>
 <11d3mig$3mitg$5@dont-email.me>
 <slrn11fb2te.3eniu.als@mordor.angband.thangorodrim.de>
 <11d5r9e$fd1d$3@dont-email.me>
 <slrn11fe68c.1fbi.als@mordor.angband.thangorodrim.de>
 <11dbhjg$2ha20$1@dont-email.me>
Reply-To: als@usenet.thangorodrim.de
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Trace: individual.net WdL54FDxxonwH0c9q12qTASru+3crX1fo17wguTA4axvgyqM5X
X-Orig-Path: frodo.angband.thangorodrim.de!not-for-mail
Cancel-Lock: sha1:tA8RFHyvbMwAIMt1Czc6+jd7byQ= sha256:iGTTT2kBYE1xywNTrxtvNDUB6us02RYI7eJTlhFP1H8=
User-Agent: slrn/1.0.3 (Linux)