Article View: comp.lang.c
Article #1341Re: p = {1,0,0}
From: fir
Date: Thu, 05 Nov 2026 18:38
Date: Thu, 05 Nov 2026 18:38
246 lines
7613 bytes
7613 bytes
fir pisze:
> fir pisze:
>> fir pisze:
>>> bartc pisze:
>>>> On 03/11/2026 16:06, fir wrote:
>>>>> fir pisze:
>>>>>> fir pisze:
>>>>>>> output one also can be defined like here
>>>>>>>
>>>>>>> rand (int d) [int x] { x = rand()%d}
>>>>>>>
>>>>>>> rand 10 x
>>>>>>
>>>>>> my hiper modular thinking i was doin back then suggest that
>>>>>> both forms i mean
>>>>>>
>>>>>> rand {int value = rand()}
>>>>>>
>>>>>> rand [int value] {value = rand()}
>>>>>>
>>>>>
>>>>>
>>>>> there is also option
>>>>>
>>>>> int rand { rand = rand()}
>>>>
>>>> Which means...?
>>>>
>>>>
>>>
>>> in the hipermodular approach (which is proper stright approach, not
>>> some fancy imo) functions have properties of structures and
>>> structures have properties of functions
>>>
>>> so if you have struct rand {int value} you may acces the rand.value
>>> but also instead of struct rand you could have just rand (int rand)
>>> so you may acces rand
>>>
>>> so here
>>>
>>> rand {int value = rand()}
>>>
>>> some may use int x = rand(); rand.value++; etc
>>>
>>> with this syntax
>>>
>>> int rand {rand = rand()}
>>>
>>> you may use int x = rand(); rand++;
>>>
>>>
>>> just ommiting this field named value but accesing this entity rand
>>> stright
>>>
>>>
>> overally i remember i was not quite sure how to define operators in c
>> but its probably like this:
>>
>> some(int a) //some module
>> {
>> x++, y +=a, z=a //some code
>> int x y z // fields
>> foo (int x) {} //function definition
>> !(int x) {printf("%d", x)} //operator definition
>> (int x) %% (int y) {} //operator definition
>>
>> }
>>
>> //usage
>>
>> some(4) //calls code
>> some //has value of x y z
>> foo(2) //calls foo
>> !23 //printfs 23
>> 6%%3 //calls operator code
>>
>>
>> so its ratcher clear, some may think if to not omit some ()
>> in this definition here but for clarity here its stays
>>
>>
>> in fact it dont seem tu be much doubtfull at least at some level
>> here and it showed most strightforward
>>
>> there is no differentiation on read only and readwrite or write only
>> arguments but in some way this is not needed as code
>> inside function or operator sjhows if it is read written or read and
>> written
>>
>> if someone would like to define basic operators liek + *
>> its maybe also possible but there would need to be added some
>> hook into assembly
>>
>
>
> it is open question how to "define" int in extended c (xc, maybe i
> should use abbreviations extended c is xc deep c is dc and so on)
>
>
> i could think about something like that at start but it needs
> more thinking and im weary today but it may be some start
>
>
> int {
> __asm_i32 value;
>
> (int a)=(int b)
> {
> _asm mov a b
> }
>
>
soory here should be
(int a)=(int b)
{
_asm mov register b
_asm mov a register
}
>
> (int a)+(int b)
> {
> int c;
> _asm mov register a
> _asm_add register b
> _asm mov c register
>
> }
>
> (int a)-(int b)
> {
> int c;
> _asm mov register a
> _asm_sub register b
> _asm mov c register
> }
>
> (int a)*(int b)
> {
> int c;
> _asm mov register a
> _asm_mul register b
> _asm mov c register
> }
>
> (int a)/(int b)
> {
> int c;
> _asm mov register a
> _asm_div register b
> _asm mov c register
> }
>
> }
>
>
> then
>
> int x = a*b+c/d-e
>
> would just yeild to sequential calls
>
> =(x,(-(/(+(*(a,b),c),d),e)))
>
> should it work?
>
> to weary to check
>
function calls do some 'aliasing' (name substitution so generated code
would be
*:
_asm mov register a
_asm_mul register b
_asm mov local register
+:
_asm mov register local
_asm_add register c
_asm mov local register
/:
_asm mov register local
_asm_div register d
_asm mov local register
-:
_asm mov register local
_asm_sub register e
_asm mov local register
=:
_asm mov register local
_asm mov x register
>
>>
>>
>>
>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>>
>>>>
>>>>>> whould be probably present as modules just have its options to be
>>>>>> written and those are two realisations of those options
>>>>>>
>>>>>> first has just ownning his ovn ram and second not (bein ram empty)
>>>>>>
>>>>>> now what has {} to do with it?
>>>>>>
>>>>>> hela know
>>>>>>
>>>>>> maybe it should work like a cast orr just be and option of marking
>>>>>> output values?
>>>>>>
>>>>>> {X} rand
>>>>>> rand {x}
>>>>>>
>>>>>> i dont know yet
>>>> You're trying to create a language syntax like monkeys typing at
>>>> random in the hope they'll produce some Shakespeare.
>>>>
>>>> What the hell are you doing spouting all this nonsense in such a
>>>> forum as this anyway?
>>>>
>>>> Work it out privately and when you have something worth discussing
>>>> then maybe post to a relevant group, if sticking with usenet.
>>>>
>>>> But I'd suggest not bothering with comp.lang.c unless your ideas are
>>>> anywhere in this ballpark. Currently your musings are a million
>>>> miles away.
>>>>
>>>
>>> it is very worth discussing its just above your level..so i csuggest
>>> get to work and learn up
>>>
>>
>
Technical Details
Message-ID:
<11ciifg$1siu4$1@dont-email.me>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mailReferences:
<11c7f1j$20b9h$1@dont-email.me> <11c7fj6$20gab$1@dont-email.me> <11cae5m$318tq$1@dont-email.me> <11calrt$34gq3$1@dont-email.me> <11carqs$36m0o$1@dont-email.me> <11cb4hs$3a13l$1@dont-email.me> <11ccnkq$3pjhd$1@dont-email.me> <11ccobd$3ps4l$1@dont-email.me> <11cctee$3rtjh$1@dont-email.me> <11ccu0t$3s54f$1@dont-email.me> <11ccv4n$3sjn5$1@dont-email.me> <11cd05l$3t1er$1@dont-email.me> <11cd0q3$3ta28$1@dont-email.me> <11cd1vs$3tpfp$1@dont-email.me> <11cd2dq$3ttmh$1@dont-email.me> <11cdigl$55s6$1@dont-email.me> <11cigrh$1rt97$1@dont-email.me>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
From: fir <profesor.fir@gmail.com>
Newsgroups: comp.lang.c
Subject: Re: p = {1,0,0}
Date: Thu, 5 Nov 2026 19:38:36 +0100
Organization: A noiseless patient Spider
Lines: 246
Message-ID: <11ciifg$1siu4$1@dont-email.me>
References: <11c7f1j$20b9h$1@dont-email.me> <11c7fj6$20gab$1@dont-email.me>
<11cae5m$318tq$1@dont-email.me> <11calrt$34gq3$1@dont-email.me>
<11carqs$36m0o$1@dont-email.me> <11cb4hs$3a13l$1@dont-email.me>
<11ccnkq$3pjhd$1@dont-email.me> <11ccobd$3ps4l$1@dont-email.me>
<11cctee$3rtjh$1@dont-email.me> <11ccu0t$3s54f$1@dont-email.me>
<11ccv4n$3sjn5$1@dont-email.me> <11cd05l$3t1er$1@dont-email.me>
<11cd0q3$3ta28$1@dont-email.me> <11cd1vs$3tpfp$1@dont-email.me>
<11cd2dq$3ttmh$1@dont-email.me> <11cdigl$55s6$1@dont-email.me>
<11cigrh$1rt97$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 05 Nov 2026 18:38:40 +0000 (UTC)
Injection-Info: dont-email.me;
logging-data="1985476"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+MroIwyoZaaYKgZJa5M45RlXUh8+NEOG8="; posting-host="5ef8622bda737f17f690dd5aebce4a80"
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:140.0) Gecko/20100101
Firefox/140.0 SeaMonkey/2.53.24
Cancel-Lock: sha1:Afrjll8RIZ3DLd8tPBFlo6NkG6U= sha256:ttQfl5d4QTfofj3cDDnpVrARs6kcjtMqahT61UiwsMA=
sha1:Ckf5H27gqc9p+1Cj5ET0HeEEVjs= sha256:uNOkquxFJolx8XUlWZJoXvGjh3pBjmgMcBnJhqke9PA=
In-Reply-To: <11cigrh$1rt97$1@dont-email.me>