🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.c++
Article #1161

Re: “The end of software secrecy is almost upon

#1161
From: Ross Finlayson
Date: Sat, 05 Dec 2026 12:55
62 lines
4971 bytes
On 12/04/2026 03:46 PM, Lawrence D’Oliveiro wrote:
> On Fri, 4 Dec 2026 15:08:16 -0800, BCFD 36 wrote:
>
>> The RF guy (who was brilliant BTW) who wrote the original program
>> used a bubble sort for his sorting algorithm. ANY SE knows this is a
>> bad idea. They asked me to make some mods and Oh, BTW, it is really
>> slow. I made the mod, found said bubble sort, switched in a quick
>> sort (no libraries available at the time) and improved the run times
>> by 2 to 3 orders of magnitude depending on how many pulses were
>> collected. Then I found an algorithm that actually combined the
>> bubble sort with quick sort and got another 10% improvement.
>
> Shellsort would have been something else you could have switched in
> with very little code -- less than needed for quicksort. Think of it
> as “bubble sort done right” (yes, really).
>
>> Another example had to do with extracting tokens from a datastream.
>> A different guy, one of our PHDs, had written his own tokenizer and
>> it was horribly slow. I introduced him to "strtok" and its cousins.
>> He was quite happy with the speed increase.
>
> Everybody knows you hand-code a lexical analyzer as a finite-state
> machine for maximum speed.
> `
>


The accounts of DFA's and NFA's for, ..., Thompson's for DFA's,
deterministic finite automatons, and that fellow for NFA's, is
quite common and ubiquitous, and well-explored and considered
well-understood, while it involves lots of different states, and as
those grow, while memory-access is considered random-access and
uniform-cost, the processor-cache enjoys proximity & affinity and
smaller code & data for the cache-coherency, then, also there's an
account that the processors have vector units, that the usual
account of finite-state-machines is often one-byte-at-a-time,
about making the alias/stall/branch/call/fault-less code,
that whether that's "hand-coded", is as much about expectations
of the syntax, vis-a-vis, expecting constructs of productions &
terminals in grammars that feed via BNF/EBNF/ABNF into
parser-generators, as to why that like other algorithms & data-structures,
given a distribution of the data makes for writing code that's
tailored to the data-distribution, and close-to-the-hardware.


Here the approach considered is like on comp.theory where
for "Viswath & Charmaigne: vector-wide-scalar-word & the
character machine", using the vector-units then that as
they process findings/matchings over 16 or so bytes-at-a-time,
then the accounts of NFA's and then DFA's start looking a
bit different than the byte-at-a-time.


I studied radar & sonar a bit about "waves in layered media"
and the like, or medical imaging and so on, or, my library
has volumes about these and I've scanned them, not caring
so much about radar at work though sometimes a part on a list
of some millions of rows in the table was "a radar" or
along these lines.


Technical Details
Message-ID: <EhqdndCsJtVNlIn2nZ2dnZfqnPWdnZ2d@giganews.com>
Path: mbox-mo1.pugleaf.net!feed-us-txt.newsdeef.eu!feed-us-mo.newsdeef.eu!srv.newsdeef.eu!weretis.net!feeder9.news.weretis.net!border-4.nntp.ord.giganews.com!nntp.giganews.com!Xl.tags.giganews.com!local-2.nntp.ord.giganews.com!news.giganews.com.POSTED!not-for-mail
References: <11amvre$15far$1@dont-email.me> <11b884b$p2o9$1@dont-email.me> <11b8d6i$39gd9$1@dont-email.me> <11b9qna$pqb8$1@dont-email.me> <11bakdb$o7f$1@panix2.panix.com> <11bau11$29ugh$1@dont-email.me> <11bb9sf$ac9u$1@dont-email.me> <11bd7tj$rh4f$1@dont-email.me> <20261022224829.00003145@yahoo.com> <11bf4fp$2esrr$1@dont-email.me> <20261023114238.000042ff@yahoo.com> <11bf8og$2f10p$1@dont-email.me> <11bg3md$1vo80$1@dont-email.me> <11evh50$2568g$1@dont-email.me> <11evjco$267g8$1@dont-email.me>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!feed-us-txt.newsdeef.eu!feed-us-mo.newsdeef.eu!srv.newsdeef.eu!weretis.net!feeder9.news.weretis.net!border-4.nntp.ord.giganews.com!nntp.giganews.com!Xl.tags.giganews.com!local-2.nntp.ord.giganews.com!news.giganews.com.POSTED!not-for-mail
NNTP-Posting-Date: Sat, 05 Dec 2026 12:55:44 +0000
Subject: Re: “The end of software secrecy is almost upon
Newsgroups: comp.lang.fortran,comp.lang.c++,alt.comp.lang.rust,alt.folklore.computers
References: <11amvre$15far$1@dont-email.me> <11b884b$p2o9$1@dont-email.me>
 <11b8d6i$39gd9$1@dont-email.me> <11b9qna$pqb8$1@dont-email.me>
 <11bakdb$o7f$1@panix2.panix.com> <11bau11$29ugh$1@dont-email.me>
 <11bb9sf$ac9u$1@dont-email.me> <11bd7tj$rh4f$1@dont-email.me>
 <20261022224829.00003145@yahoo.com> <11bf4fp$2esrr$1@dont-email.me>
 <20261023114238.000042ff@yahoo.com> <11bf8og$2f10p$1@dont-email.me>
 <11bg3md$1vo80$1@dont-email.me> <11evh50$2568g$1@dont-email.me>
 <11evjco$267g8$1@dont-email.me>
From: Ross Finlayson <ross.a.finlayson@gmail.com>
Date: Sat, 5 Dec 2026 04:55:09 -0800
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101
 Thunderbird/38.6.0
MIME-Version: 1.0
In-Reply-To: <11evjco$267g8$1@dont-email.me>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Message-ID: <EhqdndCsJtVNlIn2nZ2dnZfqnPWdnZ2d@giganews.com>
Lines: 62
X-Usenet-Provider: http://www.giganews.com
X-Trace: sv3-QKcwOABri4xHM2a43F0hzKdDwQp5xphLvQ4Vjfgbq+0AbRO0sExU5+8FcwxXdrW96eQhFKGwnXw0iMu!0iotWJpa0lIJYRf+qS4Ns6EmSZAQKu/gcyOyd+06FKJQ6Z4HtqI55Tl88AxD7nrEI2TTz/LpPXOO!QQ==
X-Complaints-To: abuse@giganews.com
X-DMCA-Notifications: http://www.giganews.com/info/dmca.html
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40