Article View: comp.arch
Article #372Re: Combining Practicality with Perfection
From: Waldek Hebisch
Date: Mon, 26 Oct 2026 22:51
Date: Mon, 26 Oct 2026 22:51
113 lines
6471 bytes
6471 bytes
John Savard <quadibloc@invalid.com> wrote:
> On Sun, 25 Oct 2026 06:00 +0000 (GMT Standard Time), jgd@cix.co.uk
> (John Dallman) wrote:
>>In article <6adbf8ee.10622140@news.eternal-september.org>,
>>quadibloc@invalid.com (John Savard) wrote:
>>
>>> if the world can have only one computer architecture, then, in
>>> order for the world not to be impoverished thereby, that one
>>> surviving computer architecture must be able to "do everything",
>>> where "everything" includes, say, being able to run PDP-10 code
>>> at nearly native speeds.
>>
>>However, an architecture of extreme complexity, burdened with lots of
>>rarely used features, is most unlikely to become the world's sole
>>architecture.
>
> True, but I haven't been able to figure out an alternative.
>
> Also, fortunately, my sole competition happens to be struggling under
> a burden of its own which seems to be just as great or greater. (That
> is, if you don't count ARM and RISC-V...)
>
>>Have you tried running PDP-10 code in an emulator on a modern 64-bit
>>machine? I'd bet that it significantly exceeds the speed of the native
>>hardware.
>
> But it doesn't exceed the speed of the modern 64-bit machine.
>
> And? Why does that matter?
>
> It's not enough for people to be able to emulate a PDP-10 for merely
> _sentimental_ reasons. I want to breathe life into those dusty decks!
>
> I want there to be other ways of computing!
Nobody sane will spend serious effort writing PDP-10 assembly.
Note that classic PDP-10 has address space slightly larger
than megabyte, that is seriously inadeqate now. Extended
addresing allows bigger address space, but why bother when
32 bit and 64 bit machines are widely available.
Look at sorry state of x86_64-32. This uses 32-bit pointers on
common 64 bit PC-s. In a sense it is widely available:
there is a lot of hardware, there is Linux kernel and C
compiler. And theoretically it gives significant advantages,
as long as program fits into 32 bit address space it uses less
storage for pointers and has less data to copy. IIUC realistic
claim is that programs run 10-20% faster than programs using
64 bit pointers. Yet a lot of software does not work.
10% faster is too weak motivation to make sure that
programs work.
In slightly different spirit, Python seem now to be most
popular programming language. Most web servers seem to
run PHP. Both are dynamically typed and typically use
bytecode interpreters. On low-level style code statically
typed language compiler to machine code can get 100 times
better speed. Yet bytecode-compiled dynamically typed
languages are quite popular.
How is this possible? One thing is that performance critical
code is a small part of all code. People can and are willing
to spend significant effort to improve speed of small
critical pieces of code. Say, application needs a lot of 37
bit integers and using more bits would waste space. One can
write packing and unpacking routines so that say unpacking
routine unpacks 37 words of 64 bits each into 64 word, puting
37 bit integer in each 64-bit word and similar for packing
routine. If used smartly, this can give computational speed
the same as using 37 bit integers, but memory use of 37
integers. For addition one can try to put three 37 bit integers
int 2 words and use add with carry. Not as bit efficient
as dedicated 37 bit adder, but uses 111 bit out of 128,
so is 86% efficient. And actually, modern machines are
generously equipped into execution units and are more data
bound, so even using full 64 bit arithemetic may be good
enough.
Note that performance of modern machines is statistical. For
important problems vendors add special instrutions. If
support for 37 bit integers or 41 bit floats was critical,
then vendors would add special handling. If for specific
application some nuber size is especially important, then
software can try to do something. For example, for computing
information about groups one can use coset enumeration.
This may use a lot of memory. Popular program for doing
this offers use of 40 bit integers. That is purely software
thing, but runs runs fast enough (probably faster than version
using 64 bit integers) and saves nontrival amount of memory.
Sure, having hardware 40 bit integers would make it faster
and some more saving would be possible if 37 bits are
enough on hardware that supports 37 bit integers. For
somewhat different mathematical calculation one need
computation in field having 2 to power 60 elements. So
60 bit integers and special computational instructions
(like carryless mutiplication) would be desirable. But
computation like this form rather small market and
hardware vendors will not complicate machines to improve
performance for small niche market.
Realistically, what one could hope for are general purpose
extentions which also help in niche cases. Say, ability to
relatively cheaply load any small size bit string at
arbitrary bit address. Note that on current machines this
may easily take 20 instructions including conditional jump.
With better instruction set this could be reduced to few
instructions or even one, for example instrucion having
two register arguments and destination, so that first
register is bit address, second is length which loads
bitstring to the destination.
--
Waldek Hebisch
Technical Details
Message-ID:
<11bolhk$2l49g$1@paganini.bofh.team>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!newsfeed.bofh.team!paganini.bofh.team!not-for-mailReferences:
<6adbf8ee.10622140@news.eternal-september.org> <memo.20261025060056.2644D@jgd.cix.co.uk> <6ade3c57.66203562@news.eternal-september.org>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!newsfeed.bofh.team!paganini.bofh.team!not-for-mail
From: antispam@fricas.org (Waldek Hebisch)
Newsgroups: comp.arch
Subject: Re: Combining Practicality with Perfection
Date: Mon, 26 Oct 2026 22:51:34 -0000 (UTC)
Organization: bofh.team Usenet service
Message-ID: <11bolhk$2l49g$1@paganini.bofh.team>
References: <6adbf8ee.10622140@news.eternal-september.org> <memo.20261025060056.2644D@jgd.cix.co.uk> <6ade3c57.66203562@news.eternal-september.org>
Injection-Date: Mon, 26 Oct 2026 22:51:34 -0000 (UTC)
Injection-Info: paganini.bofh.team; logging-data="2789680"; mail-complaints-to="usenet@bofh.team"; posting-host="d028f9ad2fa2c51f22dbfed0d81d7daf"; posting-account="69e66f1681224ab92235b464ce7a90b6"
User-Agent: tin/2.6.2-20221225 ("Pittyvaich") (Linux/6.1.0-9-amd64 (x86_64))
X-Postfilter: Postfilter-NG 2026.10.2