🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: sci.electronics.design
Article #1039

Re: Arms race

#1039
From: Bill Sloman
Date: Wed, 11 Nov 2026 04:26
191 lines
9974 bytes
On 11/11/2026 7:41 am, john larkin wrote:
> On Wed, 11 Nov 2026 02:21:09 +0800, Johann 'Myrkraverk' Oskarsson
> <johann@myrkraverk.invalid> wrote:
> 
>> On 11/10/2026 11:59 PM, john larkin wrote:
>>> On Tue, 10 Nov 2026 18:20:58 +0800, Johann 'Myrkraverk' Oskarsson
>>> <johann@myrkraverk.invalid> wrote:
>>>
>>>> On 11/10/2026 1:49 PM, Bill Sloman wrote:
>>>>> On 10/11/2026 2:12 am, john larkin wrote:
>>>>>> On Mon, 9 Nov 2026 16:42:08 +1100, Bill Sloman <bill.sloman@ieee.org>
>>>>>> wrote:
>>>>>>
>>>>>>> On 9/11/2026 6:27 am, Waldek Hebisch wrote:
>>>>>>>> Bill Sloman <bill.sloman@ieee.org> wrote:
>>>>>>>>> On 7/11/2026 3:57 pm, john larkin wrote:
>>>>>>>>>> On Sat, 7 Nov 2026 15:38:13 +1100, Bill Sloman <bill.sloman@ieee.org>
>>>>>>>>>> wrote:
>>>>>>>>>>
>>>>>>>>>>> On 7/11/2026 5:54 am, john larkin wrote:
>>>>>>>>>>>> On Fri, 6 Nov 2026 10:24:07 +0000, Martin Brown
>>>>>>>>>>>> <'''newspam'''@nonad.co.uk> wrote:
>>>>>>>>>>>>
>>>>>>>>>>>>> On 30/10/2026 16:15, john larkin wrote:
>>>>>>>>>>>>>> On Fri, 30 Oct 2026 15:36:05 +0000, JM
>>>>>>>>>>>>>> <sunaecoNoChoppedPork@gmail.com> wrote:
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> On Thu, 29 Oct 2026 17:36:05 +0000, Martin Brown
>>>>>>>>>>>>>>> <'''newspam'''@nonad.co.uk> wrote:
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> segmented memory and hard separation of program and data.
>>>>>>>>>>>>>>>> Signed drivers
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Not a Lisp fan then?
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> People love to invent weird computer languages. There are over
>>>>>>>>>>>>>> 3000
>>>>>>>>>>>>>> and they keep coming.
>>>>>>>>>>>>>
>>>>>>>>>>>>> Real men code in binary using the front panel switches.
>>>>>>>>>>>>>
>>>>>>>>>>>>> I actually used a PDP-7 where you really did have to bootstrap
>>>>>>>>>>>>> it that
>>>>>>>>>>>>> way to read in a paper tape. It was a fun machine as it had a
>>>>>>>>>>>>> vector
>>>>>>>>>>>>> graphics display so was very good for asteroids, but cheated at
>>>>>>>>>>>>> chess.
>>>>>>>>>>>>
>>>>>>>>>>>> I did a lot of stuff in PDP-11 and 68K assembly languages. With
>>>>>>>>>>>> a few
>>>>>>>>>>>> macros, they are almost higher-level languages.
>>>>>>>>>>>
>>>>>>>>>>> All high level languages get compiled into assembly language
>>>>>>>>>>> before they
>>>>>>>>>>> can be run on a computer.
>>>>>>>>>>
>>>>>>>>>> Well, no.
>>>>>>>>>
>>>>>>>>> Counter-example?
>>>>>>>>>
>>>>>>>>>>> Being a compiler is tedious.
>>>>>>>>>>>
>>>>>>>>>>>> Unlike some architectures that I might name.
>>>>>>>>>>>
>>>>>>>>>>> A language isn't an architecture. It has to be processed into
>>>>>>>>>>> something
>>>>>>>>>>> that can be run on hardware (which will have an architecture - it is
>>>>>>>>>>> constructed from components that have been connected by some kind of
>>>>>>>>>>> architect).
>>>>>>>>>>
>>>>>>>>>> If that post were compiled to assembly language, it would be a nop.
>>>>>>>>>
>>>>>>>>> As a compiler, you do seem to be sub-optimal, if not downright
>>>>>>>>> afunctional. Ignoring implications you don't like isn't an option
>>>>>>>>> for a
>>>>>>>>> compiler. There can be functions they can't parse - in your case don't
>>>>>>>>> want to parse - but that doesn't generate a nop.
>>>>>>>>
>>>>>>>> You clearly go into an area where you are not an expert.
>>>>>>>
>>>>>>> I'm not pretending to be an expert, just less of a clueless newbie in
>>>>>>> the area that John Larkin has shown himself to be.
>>>>>>
>>>>>> I've written several compilers and several RTOS's and a bunch of
>>>>>> system simulators and hundreds of application programs, a good chunk
>>>>>> of a million lines of code. From PDP8 to ARM and one CPU that I
>>>>>> designed myself.
>>>>>
>>>>> And I'm sure that you are perfectly happy with all of them. Egomaniacs
>>>>> do go around describing themself as "stable geniuses".
>>>>>> What's your definition of newbie?
>>>>>
>>>>> Somebody who doesn't know enough about what he his doing to be aware of
>>>>> the areas he doesn't know enough about. It's not so much about what you
>>>>> know, as what you know about the limits of your knowledge.
>>>>>
>>>>
>>>> And then we have the military term "unknown unknown."  For instance in
>>>> business, you cannot prevent someone from inventing something else, that
>>>> completely obsoletes your business.
>>>>
>>>> In /tech/, this is not an unknown unknown, because it's been done so
>>>> many times in living memory.  It can still happen in other fields, com-
>>>> pletely blind-sighting the billionaires in charge of it.
>>>>
>>>> Some people refer to this as a /black swan/ event, which I believe comes
>>> >from the field of economics.
>>>>
>>>> And, to combine this topic with another one, since we were talking about
>>>> compilers, in the 90s, prior to the publication of GCC 2.95 [1], it
>>>> would have been considered an /unknown unknown/ that compilers could be-
>>>> come malicious to security sensitive programming.  I bring you [2] as
>>>> exhibit A, and give the relevant quote.
>>>>
>>>>     The short and long is that, today, the only way to access a constant
>>>>     time implementation from Rust is to write said implementation in
>>>>     assembly.
>>>>
>>>> I'll add that this is about comparing security sensitive strings, us-
>>>> ually of fixed length [3], and /not/ an O( 1 ) algorithm.
>>>>
>>>> You can read this poster's point about why LLVM is not a polite com-
>>>> piler at [2].
>>>>
>>>> Now, if you want to argue this conclusion, you'll have to make an acc-
>>>> ount on Stack Overflow, and comment there.
>>>>
>>>> In other words, the only way to write constant time cryptography, is ba-
>>>> sically to do it in assembly, if any of GCC, LLVM, or MSVC are to com-
>>>> pile it.
>>>>
>>>> In that sense, the /social contract/ between security sensitive program-
>>>> ming, and compiler makers has been broken.
>>>>
>>>> And since we are in sci.electronics.design, we can also add that hard-
>>>> ware manufacturers typically do not assert in their manuals that a spe-
>>>> cific instruction is constant time, so now we get to wait and see if any
>>>> of the x86, or ARM, or maybe even RISC-V manufacturers bring back the
>>>> evil that was -- to my recollection -- the original 68000 shift instruc-
>>>> tion which spent more clock time for larger shift values.
>>>>
>>>> And to finish this off with a warning, I have read the above for adults,
>>>> so if you less-than-jr-high-school reading comprehension isn't up to the
>>>> task of figuring out what I'm saying, that's squarely on you.
>>>>
>>>>
>>>>
>>>> Best wishes, and happy constant time algorithms!
>>>>
>>>>
>>>> [1] Given Anton Ertl's research.
>>>>
>>>> [2]
>>>> https://stackoverflow.com/questions/44691363/how-to-compare-strings-in-constant-time
>>>>
>>>> [3] Hashed passwords are always the same length, but if the length
>>>> changes, comparing them in constant time doesn't work; this should be
>>>> obvious.
>>>
>>> I'm always impressed by how few programmers have even a rough idea of
>>> how much time it takes to execute their code. Guessing off by 10:1 is
>>> common.
>>>
>>> I get a scope and measure it.
>>>
>>> We have a 75-cent dual-core ARM making a 100 MHz square wave, lines of
>>> c setting a port bit up and down.
>>>
>> Now, please excuse my ignorance here [1], is that more or less expensive
>> than a Yamaha OPL chip?  I guess they aren't made anymore, since I can't
>> find anything on digikey quickly with the keywords "YMF262."  So I just
>> don't know how expensive they were.
>>
>> Of course, I'm sure your 75-cent dual-core ARM chips is doing something
>> else too, but I got curious, and couldn't find a price.
>>
> 
> It's an RP2040 Raspberry Pi chip. The Pi folks recently authorized
> clocking the CPUs at 200 MHz.
> 
> It's a wonderful part. They did everything right. We call the two CPUs
> Alice and Bob.
> 
> Some lunatic ran a RP2040 at 1 GHz in liquid nitrogen.

What's lunatic about that? Liquid nitrogen is cheap and freely 
available. 1GHz processors aren't.

-- 
Bill Sloman, Sydney
Technical Details
Message-ID: <11d0qqa$2n6ut$7@dont-email.me>
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.hispagatos.org!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
References: <eig9ellto4nl35n0cd8elct4boi2018mcp@4ax.com> <11ck9s9$2dmvp$1@dont-email.me> <fe8selhl8um5p168shk979cms2elurlhh1@4ax.com> <11cma06$34o3u$2@dont-email.me> <4rbtelp38pp2qnaqha6cq7csbfafpgk9i9@4ax.com> <11cmffm$36ee0$1@dont-email.me> <11cqieb$3h7vq$2@paganini.bofh.team> <11crmfg$virm$1@dont-email.me> <mfo3fl56g29f90cgrprrtnlf1balnocfj0@4ax.com> <11cuba6$1se8q$4@dont-email.me> <geCIS.170$H03.32@fx17.ams4> <sjf6flppdf6o2imr9cg0c1sihg965abnle@4ax.com> <rgJIS.321$293.316@fx07.ams4> <j107fllakdbsfehkd1j7dj04jv4kqlh1ih@4ax.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.hispagatos.org!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
From: Bill Sloman <bill.sloman@ieee.org>
Newsgroups: sci.electronics.design
Subject: Re: Arms race
Date: Wed, 11 Nov 2026 15:26:44 +1100
Organization: A noiseless patient Spider
Lines: 191
Message-ID: <11d0qqa$2n6ut$7@dont-email.me>
References: <eig9ellto4nl35n0cd8elct4boi2018mcp@4ax.com>
 <11ck9s9$2dmvp$1@dont-email.me> <fe8selhl8um5p168shk979cms2elurlhh1@4ax.com>
 <11cma06$34o3u$2@dont-email.me> <4rbtelp38pp2qnaqha6cq7csbfafpgk9i9@4ax.com>
 <11cmffm$36ee0$1@dont-email.me> <11cqieb$3h7vq$2@paganini.bofh.team>
 <11crmfg$virm$1@dont-email.me> <mfo3fl56g29f90cgrprrtnlf1balnocfj0@4ax.com>
 <11cuba6$1se8q$4@dont-email.me> <geCIS.170$H03.32@fx17.ams4>
 <sjf6flppdf6o2imr9cg0c1sihg965abnle@4ax.com> <rgJIS.321$293.316@fx07.ams4>
 <j107fllakdbsfehkd1j7dj04jv4kqlh1ih@4ax.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 11 Nov 2026 04:26:51 +0000 (UTC)
Injection-Info: dont-email.me;
	logging-data="2857949"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX19aknSj0HVCcw0C2mRKxwrS20OmOR0UHZM="; posting-host="560fb6bd43016553ef97b0a0aa86d874"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:UiQfRom5wTDDfJgYecjK1aOt/LQ= sha256:422DPemoGUnwIAUSoZlRgO0PtMv0YI50gD3pJn+a29Q=
	sha1:X6CnPGELbEVwkPpGkDRS4JAD23k= sha256:WchZS4GEaPUMQUa/4m1CweP7VsY+Xsilvj42Sh45rx0=
X-Antivirus-Status: Clean
In-Reply-To: <j107fllakdbsfehkd1j7dj04jv4kqlh1ih@4ax.com>
X-Antivirus: Norton (VPS 261110-12, 11/11/2026), Outbound message
Content-Language: en-US