Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c > #404187

Re: p = {1,0,0}

From fir <profesor.fir@gmail.com>
Newsgroups comp.lang.c
Subject Re: p = {1,0,0}
Date 2026-11-10 14:22 +0100
Organization A noiseless patient Spider
Message-ID <11cv5qe$25u43$1@dont-email.me> (permalink)
References (23 earlier) <11ctijh$1mb1u$1@dont-email.me> <11ctr0o$1or07$1@dont-email.me> <11cv41a$2582a$1@dont-email.me> <11cv50h$25kba$1@dont-email.me> <11cv5ih$25r8c$1@dont-email.me>

Show all headers | View raw


fir pisze:
> fir pisze:
>> fir pisze:
>>> bartc pisze:
>>>>
>>>>    for i=1,100 {tab[i]=0}
>>>>
>>>>
>>>
>>> this on i dont like better woud be imo
>>>
>>>   for i = 1 to 100 {tab[i]=0}
>>>
>>> but still it feels too much basic
>>>
>>> there are quite few subtle things here what given form gives what 
>>> feelings
>>>
>>> note in c that has no loop there is like no "natural" form of loop
>>> (unles maybe just raw goto etc) at least i dont see it
>>>
>>> this one wth power may be koncidered as somewhat natural
>>>
>>> {  } ^ t
>>>
>>> (note my rider turned some ^100 to superscripts when i posted post in 
>>> text i meant ^ 100 not superscripts (unless the last ones (tab[i++] 
>>> superscript 100)
>>>
>>> i could made soem misteke coz when i consider
>>>
>>> 10 ^ t {}  //read like 10 times "power" {} indexed by t
>>>
>>> against
>>>
>>>
>>> t ^ 10 {} //same
>>>
>>> then the first one seems more appropriate
>>>
>>>
>>> also
>>>
>>> 1..29 ^ t  {}
>>>
>>> a..b ^ i {}
>>>
>>> imo this above is beter than
>>>
>>> int i =a,b {}  //<-- in this you take very rouhg (and) syntactic 
>>> decision imo (lk egeneralli a,b in c is considered like {a,b} so
>>> it noramlly woud be {int i=a, b} tuple of things ..if no such thing as
>>> i = {a, b} is not defined and if it looks liek it would like be 
>>> defined its definitely not like in for loop etc
>>>
>>> the decisions behind
>>>
>>>   a..b ^ i {}
>>>
>>> are imo quitte different and less colliding
>>>
>>> (i know ^ is for xor etc, though i dont like tose bitwise operators 
>>> as thei are taken in c at allso, eventually some could substitute ^ 
>>> with something other its secondary
>>>
>>>   a..b @ i {}
>>>
>>> (i slightly prefer here a..b ^ i {} right now but the exact symbol 
>>> choices can be deferred)
>>>
>>> //i also konsidered
>>>
>>> a..b {tab[%1]=k}
>>>
>>>
>>> //%1 being replcement for i - but i has good tradition in c
>>> // but maybe it could be also present as an alternative solution
>>>
>>> so right now from those considerations the ground im standing
>>> as to loops would be that
>>>
>>> 1..29𝐭{tab[𝐭]=9}
>>>
>>> 1..29 ^ t  {tab[t]=9}
>>>
>>> 1..29 {tab[%1]=9}
>>>
>>> // maybe 1..29 ^ {tab[%1]=9}
>>> //maybe ^ t =1..29  {tab[%1]=9}
>>> // alternatively {tab[%1]=9} ^ t= 1..76
>>>
>>> //well in combination with power this assigment dont look bad here
>>>
>>> maybe this also?
>>> ^ t=1..29 {tab[t]=9}
>>> allows
>>>
>>> ^ t = {2,7,9,7,2,4,5} {f(t)}
>>>
>>> //allows calls like f(2);f(7);f(9);f(7);f(2); f(4); f(5);
>>>
>>> here this leftside form tooks weird more proper lik rightside
>>>
>>>
>>>   { f(t)} ^ t = {2,7,9,7,2,4,5}
>>>
>>>
>>>
>>>
>>>   { f(t)} ^ t = 2..50
>>>
>>> overally not bad idea - power combined with those "value lists" 
>>> either a..b or {a,b,c}
>>> //i put space among "^ t" artifically to editor not turn it in 
>>> superscript normally no space needed
>>>
>>> maybe its even better than this unicode version
>>>
>>> this may be also considered
>>>
>>>
>>> T = {2,3,4,6} ;
>>>
>>>    foo(T);
>>>
>>> normally it would just pass a tuple so maybe some operator for "pass
>>> sequentially in time" is maybe needed
>>>
>>>
>>> T = {2,3,4,6} ;
>>>
>>>    foo(::T);
>>>
>>>    foo(^{2,3,4,6});
>>>
>>> i dont know somethig could be taken
>>>
>>> but if soe some could call few sets in parallel so tt fould need to 
>>> be organized someway
>>>
>>>    foo(^{2,3,4,6}, ^{0,0,3,4});
>>>
>>>
>>>    foo(^{{2,0}{3,0}{4,3}{6,4}});
>>>
>>>   its also ok it semms you can pass it to whole block
>>>
>>> { }  ^ t= {3,4,5}
>>>
>>> as what it was started here
>>>
>>> overally it gives both a loop syntax and new posibilities so its 
>>> quite interesting path
>>>
>>>
>>
>> ok so after those above considerations
>>   (becouse i know not many can go thru them)
>>
>> {} ^ t=2..99;  //call {} 98 times
>>
>> is good
>>
>> and
>>
>> {} ^ t ={2,3,1,2,3,88}; //call {} six times
>>
>>
>> it also probbaly need leftside form (normally power has no leftside form)
>>
>> and it also need those form where you put this "powerings" inside
>>
>> tab[^T] = ^S
>>
>> where
>>
>> int T = {2,8,9,100}; char* S = {"ahbahj","sds","Sdsd","sss"};
>>
>>
>> maybe - or somethig like that (as to those inner forms im not yet sure)
>>
>> i must give kudos to bartc
>>
>>
>> this one
>>
>> {} ^ t=2..99;
>>
>> a bit resembles for int i = 2,30 though there are notable
>> differences - this for is wrong (becouse on abstract level this above 
>> is not looping its more like powering so its 'abstract' looping
>> (and really that gives difference becouse if you  go on some abstract 
>> train of thjoughts the rails are different here)..also thi basic 
>> burden and all that classical syntax dont fit its another vision
> 
> though for exampla this sign ^ imo could and mabe should be reead "for"
> 
> 
> ^T foo(T*3);
> 
> depending what T is
> 
> like int T = 1..29; //T is scope/range
> 
> int T = {2,3,4,55,5,3,4}; //t is list/vector/structure
> 
> foo(^T*3); probably can be used as a shortcut and
> funnt "^" is read as for
> 
> so this is "short for" discovery i could say
> 
> 
> 
allright, so a lot has cleared here

Back to comp.lang.c | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

p = {1,0,0} fir <profesor.fir@gmail.com> - 2026-11-01 14:32 +0100
  Re: p = {1,0,0} bartc <bc@freeuk.com> - 2026-11-01 13:41 +0000
    Re: p = {1,0,0} fir <profesor.fir@gmail.com> - 2026-11-01 15:10 +0100
      Re: p = {1,0,0} fir <profesor.fir@gmail.com> - 2026-11-01 16:13 +0100
        Re: p = {1,0,0} fir <profesor.fir@gmail.com> - 2026-11-02 16:46 +0100
    Re: p = {1,0,0} David Brown <david.brown@hesbynett.no> - 2026-11-02 17:36 +0100
      Re: p = {1,0,0} bartc <bc@freeuk.com> - 2026-11-02 18:47 +0000
        Re: p = {1,0,0} fir <profesor.fir@gmail.com> - 2026-11-02 20:54 +0100
          Re: p = {1,0,0} fir <profesor.fir@gmail.com> - 2026-11-02 20:56 +0100
        Re: p = {1,0,0} David Brown <david.brown@hesbynett.no> - 2026-11-02 21:29 +0100
          Re: p = {1,0,0} Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2026-11-02 21:39 +0100
          Re: p = {1,0,0} bartc <bc@freeuk.com> - 2026-11-02 22:58 +0000
            Re: p = {1,0,0} David Brown <david.brown@hesbynett.no> - 2026-11-03 11:09 +0100
            Re: p = {1,0,0} fir <profesor.fir@gmail.com> - 2026-11-03 13:19 +0100
              Re: p = {1,0,0} bartc <bc@freeuk.com> - 2026-11-03 14:07 +0000
                Re: p = {1,0,0} fir <profesor.fir@gmail.com> - 2026-11-03 15:45 +0100
                Re: p = {1,0,0} fir <profesor.fir@gmail.com> - 2026-11-03 15:54 +0100
                Re: p = {1,0,0} fir <profesor.fir@gmail.com> - 2026-11-03 16:48 +0100
            Re: p = {1,0,0} fir <profesor.fir@gmail.com> - 2026-11-03 14:29 +0100
              Re: p = {1,0,0} fir <profesor.fir@gmail.com> - 2026-11-03 14:42 +0100
                Re: p = {1,0,0} fir <profesor.fir@gmail.com> - 2026-11-03 16:09 +0100
                Re: p = {1,0,0} fir <profesor.fir@gmail.com> - 2026-11-03 16:18 +0100
                Re: p = {1,0,0} fir <profesor.fir@gmail.com> - 2026-11-03 16:38 +0100
                Re: p = {1,0,0} fir <profesor.fir@gmail.com> - 2026-11-03 16:55 +0100
                Re: p = {1,0,0} fir <profesor.fir@gmail.com> - 2026-11-03 17:06 +0100
                Re: p = {1,0,0} bartc <bc@freeuk.com> - 2026-11-03 16:26 +0000
                Re: p = {1,0,0} fir <profesor.fir@gmail.com> - 2026-11-03 17:34 +0100
                Re: p = {1,0,0} fir <profesor.fir@gmail.com> - 2026-11-03 17:47 +0100
                Re: p = {1,0,0} fir <profesor.fir@gmail.com> - 2026-11-03 17:54 +0100
                Re: p = {1,0,0} fir <profesor.fir@gmail.com> - 2026-11-03 22:08 +0100
                Re: p = {1,0,0} fir <profesor.fir@gmail.com> - 2026-11-04 14:14 +0100
                Re: p = {1,0,0} fir <profesor.fir@gmail.com> - 2026-11-04 14:27 +0100
                Re: p = {1,0,0} fir <profesor.fir@gmail.com> - 2026-11-05 19:10 +0100
                Re: p = {1,0,0} fir <profesor.fir@gmail.com> - 2026-11-05 19:38 +0100
                Re: p = {1,0,0} fir <profesor.fir@gmail.com> - 2026-11-07 20:14 +0100
                Re: p = {1,0,0} fir <profesor.fir@gmail.com> - 2026-11-07 20:18 +0100
                Re: p = {1,0,0} fir <profesor.fir@gmail.com> - 2026-11-07 20:19 +0100
                Re: p = {1,0,0} Richard Harnden <richard.nospam@gmail.invalid> - 2026-11-08 09:29 +0000
                Re: p = {1,0,0} fir <profesor.fir@gmail.com> - 2026-11-07 20:24 +0100
                Re: p = {1,0,0} fir <profesor.fir@gmail.com> - 2026-11-07 20:26 +0100
                Re: p = {1,0,0} bartc <bc@freeuk.com> - 2026-11-07 22:18 +0000
                Re: p = {1,0,0} fir <profesor.fir@gmail.com> - 2026-11-08 04:17 +0100
                Re: p = {1,0,0} fir <profesor.fir@gmail.com> - 2026-11-07 20:50 +0100
                Re: p = {1,0,0} bartc <bc@freeuk.com> - 2026-11-07 22:23 +0000
                Re: p = {1,0,0} fir <profesor.fir@gmail.com> - 2026-11-08 04:20 +0100
                Re: p = {1,0,0} fir <profesor.fir@gmail.com> - 2026-11-08 04:36 +0100
                Re: p = {1,0,0} fir <profesor.fir@gmail.com> - 2026-11-08 04:46 +0100
                Re: p = {1,0,0} fir <profesor.fir@gmail.com> - 2026-11-08 16:20 +0100
                Re: p = {1,0,0} bartc <bc@freeuk.com> - 2026-11-08 17:18 +0000
                Re: p = {1,0,0} fir <profesor.fir@gmail.com> - 2026-11-08 19:17 +0100
                Re: p = {1,0,0} fir <profesor.fir@gmail.com> - 2026-11-08 19:36 +0100
                Re: p = {1,0,0} fir <profesor.fir@gmail.com> - 2026-11-08 19:41 +0100
                Re: p = {1,0,0} bartc <bc@freeuk.com> - 2026-11-08 11:19 +0000
                Re: p = {1,0,0} fir <profesor.fir@gmail.com> - 2026-11-08 12:44 +0100
                Re: p = {1,0,0} fir <profesor.fir@gmail.com> - 2026-11-08 12:56 +0100
                Re: p = {1,0,0} fir <profesor.fir@gmail.com> - 2026-11-08 13:12 +0100
                Re: p = {1,0,0} fir <profesor.fir@gmail.com> - 2026-11-08 16:12 +0100
                Re: p = {1,0,0} fir <profesor.fir@gmail.com> - 2026-11-09 23:47 +0100
                Re: p = {1,0,0} fir <profesor.fir@gmail.com> - 2026-11-09 23:56 +0100
                Re: p = {1,0,0} bartc <bc@freeuk.com> - 2026-11-10 01:11 +0000
                Re: p = {1,0,0} David Brown <david.brown@hesbynett.no> - 2026-11-10 09:24 +0100
                Re: p = {1,0,0} bartc <bc@freeuk.com> - 2026-11-10 12:08 +0000
                Re: p = {1,0,0} David Brown <david.brown@hesbynett.no> - 2026-11-10 13:50 +0100
                Re: p = {1,0,0} bartc <bc@freeuk.com> - 2026-11-10 13:53 +0000
                while() and do/while() Tim Rentsch <tr.17687@z991.linuxsc.com> - 2026-11-10 11:47 -0800
                Re: while() and do/while() bartc <bc@freeuk.com> - 2026-11-10 20:33 +0000
                Re: p = {1,0,0} Keith Thompson <Keith.S.Thompson+u@gmail.com> - 2026-11-10 04:29 -0800
                Re: p = {1,0,0} David Brown <david.brown@hesbynett.no> - 2026-11-10 13:57 +0100
                Re: p = {1,0,0} Tim Rentsch <tr.17687@z991.linuxsc.com> - 2026-11-10 08:57 -0800
                Re: p = {1,0,0} fir <profesor.fir@gmail.com> - 2026-11-10 13:51 +0100
                Re: p = {1,0,0} fir <profesor.fir@gmail.com> - 2026-11-10 14:08 +0100
                Re: p = {1,0,0} fir <profesor.fir@gmail.com> - 2026-11-10 14:17 +0100
                Re: p = {1,0,0} fir <profesor.fir@gmail.com> - 2026-11-10 14:22 +0100
                Re: p = {1,0,0} bartc <bc@freeuk.com> - 2026-11-10 14:27 +0000
                Re: p = {1,0,0} fir <profesor.fir@gmail.com> - 2026-11-10 15:32 +0100
                Re: p = {1,0,0} fir <profesor.fir@gmail.com> - 2026-11-10 15:44 +0100
                Re: p = {1,0,0} fir <profesor.fir@gmail.com> - 2026-11-10 15:51 +0100
                Re: p = {1,0,0} fir <profesor.fir@gmail.com> - 2026-11-10 16:10 +0100
                Re: p = {1,0,0} fir <profesor.fir@gmail.com> - 2026-11-10 16:24 +0100
                Re: p = {1,0,0} fir <profesor.fir@gmail.com> - 2026-11-10 16:38 +0100
                Re: p = {1,0,0} fir <profesor.fir@gmail.com> - 2026-11-10 16:54 +0100
                Re: p = {1,0,0} fir <profesor.fir@gmail.com> - 2026-11-10 17:09 +0100
                Re: p = {1,0,0} fir <profesor.fir@gmail.com> - 2026-11-10 17:16 +0100
                Re: p = {1,0,0} fir <profesor.fir@gmail.com> - 2026-11-10 17:20 +0100
                Re: p = {1,0,0} fir <profesor.fir@gmail.com> - 2026-11-10 15:09 +0100
                Re: p = {1,0,0} fir <profesor.fir@gmail.com> - 2026-11-10 15:13 +0100
                Re: p = {1,0,0} fir <profesor.fir@gmail.com> - 2026-11-10 15:17 +0100
                Re: p = {1,0,0} fir <profesor.fir@gmail.com> - 2026-11-10 15:24 +0100
      Re: p = {1,0,0} Keith Thompson <Keith.S.Thompson+u@gmail.com> - 2026-11-02 14:52 -0800
        Re: p = {1,0,0} fir <profesor.fir@gmail.com> - 2026-11-03 13:29 +0100

csiph-web