Article View: comp.lang.c
Article #1871Re: C and its pesent 'ancestos'
From: Bonita Montero
Date: Thu, 26 Nov 2026 16:09
Date: Thu, 26 Nov 2026 16:09
103 lines
6378 bytes
6378 bytes
Am 26.11.2026 um 16:02 schrieb Ross Finlayson: You’re jumping from one topic to another—going off on tangents. I’m pretty sure I can’t follow you. I mean, I can follow what you’re saying, but I’m wondering how it fits into the context you’re responding to. > One challenge I'm trying to figure out is basically > about strings and that strings are variable-length. > > So, with basic operations on strings including things > like "concatenate" and "truncate", then how to deal with > the buffers is being a thing, where for example languages > like C++ their standard implementations of basic_string > for std::string might stuff a "small" string into the object's > own representation on the stack, otherwise on the heap, > or for example the data-segment for "constant" strings, > and including ideas like "string atoms" a.k.a. "string internment". > > So, there's the stack and the heap, with regards to things > like "variable-length-arrays", basically for the strings and > mostly the algorithms on them like substitution/interpolation, > and formatting among all the various types, for basically an > "output" case and an "input" case to algorithms, then to > result that to all the standard routines it's a "char *", > so usually. > > > You might think of that as a natural algebraization about > the usual formal language's account since concatenation > and the empty string, what operator-overloading "+" makes > for string vis-a-vis whatever types and formatting them > to string, and what operator-overloading "-" makes for > truncation and whatever type is to indicate what/how/where > is to be truncated, about truncation & concatenation, > formatters & converters, and operations on strings (or > for example any other account of growing | shrinking "arrays"). > > > Of course C doesn't have "operator-overloading" in the language, > yet so that concatenate() and truncate() can be given > function-overloading via _Generic in C, then that it's sort of > "reverse-reverse > Polish notation" like as for a usual stack-notation > operand-operand-operator that it's function-operand-operand of the > operator, pair-wise. > > > Then, there's * and /, the arithmetic operators, and an idea about > whether that's to align quite directly with the notion of > pointer-indirection quite like "+" aligns with concatenation, here though > basically to make for assignment-targets and the scope & state, > that what enters-scope and embodies-state in block-scope then > function-scope then globals by being reference-able, about what > "*" and "/" can mean, or for example "*=" and "/=", about basically > what makes for in-parameters and out-parameters, these kinds of > things, and not exactly like move semantics, instead basically > into-the-stack or offto-the-heap, as it were. > > > About then "natural" "algebraizations" about the syntax of the > language and its cousin(s), here is about concepts like "seating" > the references vis-a-vis "homing" the references, in a language > like C where there are only _pointers_, that it results for > type-safety that pointers are furthermore _typed_ as to result > then for either behaving like "seating" the references in C++, > or not, when for example the growing | shrinking of the textual > data, or other accounts of tuples or lists or otherwise "arrays", > has an entirely different approach that's yet on its own account, > "natural". > > > The concatenation and truncation, for example, one might aver > looks like > > s += 1 > > intuitively formats the integer, according to formatters & converters, > then for example where > > s -= 1 > // or > s -= -1 > > truncates from the right or left, intuitively then toward the > "natural" that's what intuitive about the scope & state and > left/right branching in the procedural language, is "natural" > in the up/down jumping on the program counter, scope & state > on the core/CPU, and giant uniform global memory, scope & state > the RAM, that "scope" and "state" make a stack in the procedural > definition, and two different things, yet an array and constant block as > "CPU" or "RAM", the contents, and one thing. > > > So, one may aver that accounts of "typing the pointers" can make > for example pretty much exactly like C++, or quite entirely different, > then to result a model of "natural operator overloading" that results > "plain syntax in what happens to be the arithmetic operators instead > of the reference operators", arithmetic on scope & state. > > >
Technical Details
Message-ID:
<11e9lje$qt1s$1@raubtier-asyl.eternal-september.org>Path:
mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!raubtier-asyl.eternal-september.org!.POSTED!not-for-mailReferences:
<11dup6q$v4j9$1@dont-email.me> <11e0kde$1jpvu$1@dont-email.me> <11e0r13$1lqm6$1@dont-email.me> <11e0uc0$1mtpv$1@raubtier-asyl.eternal-september.org> <11e7fj4$37l9$1@dont-email.me> <11e8oro$ft4l$1@raubtier-asyl.eternal-september.org> <11e8stp$hajr$1@dont-email.me> <11e8ti0$hhqa$1@dont-email.me> <11e8v24$i2mc$2@raubtier-asyl.eternal-september.org> <11e9045$ihk3$1@dont-email.me> <11e90j7$io87$1@raubtier-asyl.eternal-september.org> <0oSdnUooBKya15X2nZ2dnZfqn_udnZ2d@giganews.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!raubtier-asyl.eternal-september.org!.POSTED!not-for-mail From: Bonita Montero <Bonita.Montero@gmail.com> Newsgroups: comp.lang.c Subject: Re: C and its pesent 'ancestos' Date: Thu, 26 Nov 2026 17:09:19 +0100 Organization: A noiseless patient Spider Lines: 103 Message-ID: <11e9lje$qt1s$1@raubtier-asyl.eternal-september.org> References: <11dup6q$v4j9$1@dont-email.me> <11e0kde$1jpvu$1@dont-email.me> <11e0r13$1lqm6$1@dont-email.me> <11e0uc0$1mtpv$1@raubtier-asyl.eternal-september.org> <11e7fj4$37l9$1@dont-email.me> <11e8oro$ft4l$1@raubtier-asyl.eternal-september.org> <11e8stp$hajr$1@dont-email.me> <11e8ti0$hhqa$1@dont-email.me> <11e8v24$i2mc$2@raubtier-asyl.eternal-september.org> <11e9045$ihk3$1@dont-email.me> <11e90j7$io87$1@raubtier-asyl.eternal-september.org> <0oSdnUooBKya15X2nZ2dnZfqn_udnZ2d@giganews.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Thu, 26 Nov 2026 16:09:18 +0000 (UTC) Injection-Info: raubtier-asyl.eternal-september.org; logging-data="881724"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+aYEjWQENmPlJ+or59WuS1O8TPM+sB/bU="; posting-host="b5d0c6a64d4561e46edbb7a5c64af4ef" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:jD7NCOc65FibWgviWdEPUifMVps= sha256:iYI7J0h3l3UB6HSglBZU5YmFg6Y/xyDO03pMGO1Votw= sha1:1kqqncc5vtR9tXWS/a+eFzORTso= sha256:vtjjIY4/Nu1Ms3E4OfpEt5glLKfWByvapitjsKX4Yg4= Content-Language: de-DE In-Reply-To: <0oSdnUooBKya15X2nZ2dnZfqn_udnZ2d@giganews.com>