Article View: comp.lang.c
Article #2190Re: Iterators over slices and views and ranges analogs in C
From: Ross Finlayson
Date: Fri, 04 Dec 2026 15:34
Date: Fri, 04 Dec 2026 15:34
34 lines
3366 bytes
3366 bytes
On 12/04/2026 07:10 AM, Bonita Montero wrote: > Am 04.12.2026 um 16:06 schrieb Ross Finlayson: > >> Agreebly, the language doesn't have expressitivity to capture the >> idiom, yet then, when that's emitted, like from a template-like >> mechanism, it compiles faster forever. > But it takes many times longer to complete the same task. Agreeably, most don't necessarily care to repeat themselves, which is a polite way of saying that do care and resent it, and it's so that templates is fantastic and for type-safety. Here it's sort of an account of writing modular libraries with all the context of C and C++ (and Java, Python, ...) yet only the language and semantics of C, mostly about libraries and modules and systems-programming, then to result being later then compatible with C++: about what gets surfaced vis-a-vis the :: C name-space symbols, for example having to write a bunch of template specializations that resolve to the C symbols. Agreeably, it makes a combinatorial explosion, then for containing that with pretty much only dealing with the built-in types then a few fixed-length-array types, not necessarily looking to implement these kinds of things in C except moving the data in memory and resulting something the compiler can compile (and optimize). Writing a library then is for re-usable code and, if you've heard this one, "the mathematician's waste-backet fire", re-using the results of a previously solved problem.
Technical Details
Message-ID:
<796cndOUh5IAQI_2nZ2dnZfqnPidnZ2d@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-3.nntp.ord.giganews.com!Xl.tags.giganews.com!local-2.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> <11euj05$1l7ka$1@raubtier-asyl.eternal-september.org> <a8adndrZlvRxS4_2nZ2dnZfqn_WdnZ2d@giganews.com> <11eul5p$1mi18$1@raubtier-asyl.eternal-september.org>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-3.nntp.ord.giganews.com!Xl.tags.giganews.com!local-2.nntp.ord.giganews.com!news.giganews.com.POSTED!not-for-mail NNTP-Posting-Date: Fri, 04 Dec 2026 15:34:53 +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> <11euj05$1l7ka$1@raubtier-asyl.eternal-september.org> <a8adndrZlvRxS4_2nZ2dnZfqn_WdnZ2d@giganews.com> <11eul5p$1mi18$1@raubtier-asyl.eternal-september.org> From: Ross Finlayson <ross.a.finlayson@gmail.com> Date: Fri, 4 Dec 2026 07:34:49 -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: <11eul5p$1mi18$1@raubtier-asyl.eternal-september.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Message-ID: <796cndOUh5IAQI_2nZ2dnZfqnPidnZ2d@giganews.com> Lines: 34 X-Usenet-Provider: http://www.giganews.com X-Trace: sv3-mC70kVJlGcHFLPTNEZJPE63/loRHKw64YpbYa2SRooV/bPDuhUfbl7jAW5Iv/fJFjkEon6ySafswT1j!A9dIYhSvMA65bvKzz45T/+UU8PpJDyaTTdSZmVU6JKIJ/Ar/BDX8pF3zc7+IzGl0vab9wd93n+E= 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