Article View: comp.lang.c
Article #2216Re: Iterators over slices and views and ranges analogs in C
From: Ross Finlayson
Date: Fri, 04 Dec 2026 22:40
Date: Fri, 04 Dec 2026 22:40
125 lines
6508 bytes
6508 bytes
On 12/04/2026 10:09 AM, bartc wrote:
> On 04/12/2026 18:02, Ross Finlayson wrote:
>
>> If you don't like what I say about logic and so on,
>> mostly I just make a paleo-classical post-modern
>> account of the usual sorts of classical expositions
>> of the super-classical, I have copies of Hegel and Aristotle
>> here for "Hegelian logic" and "Aristotlean logic".
>> (Not "merely-partial half-accounts of neo-Hegelians
>> and neo-Aristotleans.) So, I just point out where
>> they say so what I say so, about all what they say so.
>> (I've made a study of "Foundations" for a few decades.)
>
> WTF are you on about? [Rhetorical question]
>
> Perhaps it's time for your meds, or just get off-line for a while.
>
>>
>> About type-induction and type-inference and what makes
>> type-deduction and other accounts of type-inference,
>> that's simple and "in the language", including,
>> "in the theory", about mathematical induction and type-theory,
>> making simple proofs for type-inference via induction.
>
> Jesus, it goes on...
>
>
I spent some of the morning with a pickaxe and shovel and cross-ditches
or water-bars as they're sometimes called, and the neighbors and their
elk, black-powder season and a cow tag, working with my chainsaw
cleaning up the creek before the rains come again.
The rain: in Spain: falls mainly on the plane.
Twenty dwarves took turns doing handstands on the carpet, ....
I've never had one of those chronic prescriptions,
I never even took one of those miRNA shots, though
I'm up on all my usual vaccinations including tetanus.
On sci.math I say things like "line-drawing makes a continuous domain"
and on sci.logic things like "quasi-modal logic with material
implication is neither modal nor relevant", which since Aristotle
it's usual that Chrysippus says (thousands of years ago, and since
then, today) that logic is a modal, temporal, relevance logic. Most
usual people with reasonable reasoning given the false-antecedent
or false-consequent of "material implication" which some call
"classical logic" that's "quasi-modal logic" since Philo's
merely-partial half-account: would consider it wrong to exclude the
contrapositive, of _direct implication_ like De Morgan gives,
so, for reading some like Norvig and Russell's school-book on "A.I."
about the "wumpus" and its stench, the "wumpus" never moves,
since if it did, it would invalidate all the "inference",
of the quasi-modal account with material-implication,
which admits a quick read-out of unvarying conditions.
The quasi-modal semi-classical logic with material-implication
maintains neither monotonicity nor entailment without
presuming to know all the facts, which is un-scientific,
besides being entirely broken by any given change un-modeled
by the surrounds, requiring a brand-new thing, where modal
temporal relevant truth tables never change, and
with neither false-antecedent nor false-consequent.
Aristotle said "there is no un-moved mover", yet also he
said "circular movement is eternal" and "the movement of
the stars is random". People usually pick one of those
accounts, a merely-partial half-account, then tend to
all lean in the same direction, yet Aristotle himself
gives both prior and posterior analytics.
I don't spout drivel: I have good style and fair form.
In C though now my current favorite idea is about this
"lodge" list, basically saying that it's a memory layout.
typedef struct {
size_t lodge_size;
size_t lodge_length;
void* lodge_prev;
void* lodge_next;
void* lodge_head;
void* lodge_tail;
size_t member_size;
off_t link_off;
size_t link_count;
off_t member_off;
size_t member_count;
} lodge_t;
Then, that's looking that ten or eleven items in this struct,
each 8-bytes so 88 bytes, for a node, then that the
node, can fill the rest of the page with either links
to items, _or_ items inline, calling items "members",
then figuring that it's members-first then links, then
that the functions to make iterators or access and maintenance
work over those, is a usual sort of idea.
Then the idea of this lodge-list is that a) it's like a linked-list,
b) it's like an array, c) it tends to localize data in memory,
d) it makes use of fixed-length resources each apiece for example
a memory page, that a cache-line-pair of 128-many bytes is already
mostly full by one of these, this kind of thing.
Warm regards
Technical Details
Message-ID:
<0sScna9N05H83I72nZ2dnZfqnPadnZ2d@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!local-2.nntp.ord.giganews.com!Xl.tags.giganews.com!local-1.nntp.ord.giganews.com!news.giganews.com.POSTED!not-for-mailReferences:
<-kGdnSzB4bWEM4z2nZ2dnZfqn_WdnZ2d@giganews.com> <11esd12$mfam$1@raubtier-asyl.eternal-september.org> <11et39b$rj55$1@news.xmission.com> <11ett3b$1a41p$1@dont-email.me> <11euadh$1gp4t$1@dont-email.me> <11euckd$1ht9i$1@raubtier-asyl.eternal-september.org> <11eugtg$erg$4@dont-email.me> <11euj8b$1lhf1$1@dont-email.me> <i5-dnSCmSLz7R4_2nZ2dnZfqnPqdnZ2d@giganews.com> <11eupvu$1p0q1$1@dont-email.me> <0HydndKd_6bFbY_2nZ2dnZfqn_GdnZ2d@giganews.com> <11euu5h$1ra9d$1@dont-email.me> <ZYKdnah1_NuwnY72nZ2dnZfqnPidnZ2d@giganews.com> <11euvk1$1s4ed$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!local-2.nntp.ord.giganews.com!Xl.tags.giganews.com!local-1.nntp.ord.giganews.com!news.giganews.com.POSTED!not-for-mail NNTP-Posting-Date: Fri, 04 Dec 2026 22:40:32 +0000 Subject: Re: Iterators over slices and views and ranges analogs in C Newsgroups: comp.lang.c References: <-kGdnSzB4bWEM4z2nZ2dnZfqn_WdnZ2d@giganews.com> <11esd12$mfam$1@raubtier-asyl.eternal-september.org> <11et39b$rj55$1@news.xmission.com> <11ett3b$1a41p$1@dont-email.me> <11euadh$1gp4t$1@dont-email.me> <11euckd$1ht9i$1@raubtier-asyl.eternal-september.org> <11eugtg$erg$4@dont-email.me> <11euj8b$1lhf1$1@dont-email.me> <i5-dnSCmSLz7R4_2nZ2dnZfqnPqdnZ2d@giganews.com> <11eupvu$1p0q1$1@dont-email.me> <0HydndKd_6bFbY_2nZ2dnZfqn_GdnZ2d@giganews.com> <11euu5h$1ra9d$1@dont-email.me> <ZYKdnah1_NuwnY72nZ2dnZfqnPidnZ2d@giganews.com> <11euvk1$1s4ed$1@dont-email.me> From: Ross Finlayson <ross.a.finlayson@gmail.com> Date: Fri, 4 Dec 2026 14:40:19 -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: <11euvk1$1s4ed$1@dont-email.me> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Message-ID: <0sScna9N05H83I72nZ2dnZfqnPadnZ2d@giganews.com> Lines: 125 X-Usenet-Provider: http://www.giganews.com X-Trace: sv3-2NEcWLi5P4jKD6o2aKP+kEocooWR/JMMIo9s1hoBLSFMZ7akybJK1NQwMm5FGiKRGz/a20GiUjY62q9!bRo+/PkJqdadjEGSIRqdyprp0edqKryndi3WksKq9kXLzRRp4eWwT/wt1lwphDQ/+ErwtBYmLGGq!1g== 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