Article View: sci.electronics.design
Article #1063Re: Arms race
From: john larkin
Date: Thu, 12 Nov 2026 00:53
Date: Thu, 12 Nov 2026 00:53
193 lines
10020 bytes
10020 bytes
On Wed, 11 Nov 2026 15:26:44 +1100, Bill Sloman <bill.sloman@ieee.org> wrote: >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. I think they also pushed the 1.2v core voltage to 5.
Technical Details
Message-ID:
<md3aflpb99h9herndr50dohdf9sh86acet@4ax.com>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-mailReferences:
<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> <11d0qqa$2n6ut$7@dont-email.me>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: john larkin <jl@htigct.com> Newsgroups: sci.electronics.design Subject: Re: Arms race Date: Wed, 11 Nov 2026 16:53:22 -0800 Organization: A noiseless patient Spider Lines: 193 Message-ID: <md3aflpb99h9herndr50dohdf9sh86acet@4ax.com> References: <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> <11d0qqa$2n6ut$7@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Injection-Date: Thu, 12 Nov 2026 00:53:23 +0000 (UTC) Injection-Info: dont-email.me; logging-data="3719690"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX187+ZKPjb085Kp/w2w1UTqp"; posting-host="6df2ead81be7500ffdf1343f693726f6" User-Agent: ForteAgent/8.00.32.1272 Cancel-Lock: sha1:2FvlXqx0Zsk5gXwU0gGTz6GeJvo= sha256:Oe1WobfZoTCwWjTrm7SaFWQmdNSqzFdr0kcYM76jsKs= sha1:a2cIHFoWL/RPyJb/gm6wZVRWtvI= sha256:Gzr4teVVa4DgKLqcyaTAv2LhOoG8PYI351LMb/nmET0=