🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: sci.electronics.design
Article #997

Re: Arms race

#997
From: Johann 'Myrkraverk' Oskarsson
Date: Tue, 10 Nov 2026 10:20
155 lines
7976 bytes
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.
-- 
Johann | email: invalid -> com | http://www.myrkraverk.com/blog/
I'm not from the Internet, I just work there. | via Easynews.com
https://bsky.app/profile/myrkraverk.bsky.social | for ( ;; ) _:;
Federated at https://fed.brid.gy/bsky/myrkraverk.bsky.social
Technical Details
Message-ID: <geCIS.170$H03.32@fx17.ams4>
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!news.tcpreset.net!newsfeed.bofh.team!weretis.net!feeder8.news.weretis.net!news.neodome.net!tr1.eu1.usenetexpress.com!feeder.usenetexpress.com!tr3.iad1.usenetexpress.com!news-out.netnews.com!s1-2.netnews.com!peer04.iad!feed-me.highwinds-media.com!peer05.ams4!peer.am4.highwinds-media.com!news.highwinds-media.com!fx17.ams4.POSTED!not-for-mail
References: <a8n6elh26hc5cg98pn84idqp7rrel2l47o@4ax.com> <11bvnp8$3ehgg$1@dont-email.me> <11c0065$3hr4g$1@dont-email.me> <39e9elp8cqum5iatg21ltbf06hc4p4dgec@4ax.com> <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>

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!news.neodome.net!tr1.eu1.usenetexpress.com!feeder.usenetexpress.com!tr3.iad1.usenetexpress.com!news-out.netnews.com!s1-2.netnews.com!peer04.iad!feed-me.highwinds-media.com!peer05.ams4!peer.am4.highwinds-media.com!news.highwinds-media.com!fx17.ams4.POSTED!not-for-mail
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Subject: Re: Arms race
Newsgroups: sci.electronics.design
References: <a8n6elh26hc5cg98pn84idqp7rrel2l47o@4ax.com> <11bvnp8$3ehgg$1@dont-email.me> <11c0065$3hr4g$1@dont-email.me> <39e9elp8cqum5iatg21ltbf06hc4p4dgec@4ax.com> <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>
Content-Language: en-US
From: Johann 'Myrkraverk' Oskarsson <johann@myrkraverk.invalid>
Organization: Watcom Pro Ltd.
In-Reply-To: <11cuba6$1se8q$4@dont-email.me>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Lines: 155
Message-ID: <geCIS.170$H03.32@fx17.ams4>
X-Complaints-To: abuse@easynews.com
X-Complaints-Info: Please be sure to forward a copy of ALL headers otherwise we will be unable to process your complaint properly.
Date: Tue, 10 Nov 2026 18:20:58 +0800
X-Received-Bytes: 7661