Rocksolid Light

Welcome to Rocksolid Light

mail  files  register  newsreader  groups  login

Message-ID:  

No wonder Clairol makes so much money selling shampoo. Lather, Rinse, Repeat is an infinite loop!


devel / comp.lang.awk / Re: Is it possible to NOT use identifiers named only with _'s?

SubjectAuthor
* Is it possible to NOT use identifiers named only with _'s?Kpop 2GM
`- Is it possible to NOT use identifiers named only with _'s?Janis Papanagnou

1
Re: Is it possible to NOT use identifiers named only with _'s?

<a39d7c06-0551-4b94-9c0b-c109e88637ddn@googlegroups.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=1480&group=comp.lang.awk#1480

  copy link   Newsgroups: comp.lang.awk
X-Received: by 2002:a7b:cb10:0:b0:3f7:e48b:9747 with SMTP id u16-20020a7bcb10000000b003f7e48b9747mr15613wmj.3.1690864451435;
Mon, 31 Jul 2023 21:34:11 -0700 (PDT)
X-Received: by 2002:a9d:7505:0:b0:6b9:99ab:7f25 with SMTP id
r5-20020a9d7505000000b006b999ab7f25mr13716706otk.6.1690864450676; Mon, 31 Jul
2023 21:34:10 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.128.88.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.awk
Date: Mon, 31 Jul 2023 21:34:10 -0700 (PDT)
In-Reply-To: <tubf54$16176$1@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=2603:7000:3c3d:41c0:d486:2225:17b5:f3;
posting-account=n74spgoAAAAZZyBGGjbj9G0N4Q659lEi
NNTP-Posting-Host: 2603:7000:3c3d:41c0:d486:2225:17b5:f3
References: <d6a0fdf8-b7e1-4c3c-a988-566a44bf0c9bn@googlegroups.com> <tubf54$16176$1@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <a39d7c06-0551-4b94-9c0b-c109e88637ddn@googlegroups.com>
Subject: Re: Is it possible to NOT use identifiers named only with _'s?
From: jason.cy.kwan@gmail.com (Kpop 2GM)
Injection-Date: Tue, 01 Aug 2023 04:34:11 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
 by: Kpop 2GM - Tue, 1 Aug 2023 04:34 UTC

On Wednesday, March 8, 2023 at 9:09:43 PM UTC-5, Janis Papanagnou wrote:
> On 09.03.2023 01:40, J Naman wrote:
> > _________ = ___(____[________])- (__+___)/(______^_____ ); # Really?
> Where is that from?
>
> (Kpop had some fun with obfuscated code in the past.)
> > Posts to comp.lang.awk with identifiers named only with _'s are
> > nearly impossible to read, especially on monitors that display
> > multiple _'s as a continuous line (versus small breaks seen in dashes
> > -----).
> (I'd think it's not the monitor that does the character rendering.)
> > Thank you for making readable code.
> Either that, or help yourself with a quick and _dirty_(!) hack...
>
> awk 'BEGIN { split("abcdefghijklmnopqrstuvwxyz",_,"") }
> { while(match($0,/_+/)) sub(/_+/,_[RLENGTH]) } ; 1'
>
> produces (with your line above)
>
> i = c(d[h])- (b+c)/(f^e );
>
> HTH.
>
> Janis :-)

believe it or not, I actually directly write code in those underscores even for myself.

like this one - a fully posix-compliant function for ANY awk variant to print out all 1,114,112 Unicode code-points to encoding specs of UTF-8 (default), UTF 16 LE/BE (including surrogates), and UTF 32 LE/BE, or any single arbitrary byte (with the sole exception being nawk's inability to properly handle the \0 null byte),

all while needing a total of just 4 local variables (that's inclusive of the 2 variables for accepting input),
performs data cleansing and input range clamping,
has ZERO dependency on hard-coded magic numbers for cutoffs, scalars, offsets etc (since they're all generated on the fly as part of the input cleansing process setup),
has zero external function calls other than the built-in functions of int( ) and sprintf( ),
is entirely loop-free and recursion free,
can circumvent certain awk variant restrictions (like gawk refusing to print anything correct for negative inputs to "%c"),
and can output in UTF16 or UTF32 even when locale is in ASCII mode.

function.chrUC8(__, _, ___, ____).{
.....#
.....#.__|.Unicode.code.point
.....#.....outside.U+0000.-.U+10FFFF:
.....#.....-->.UTF-8/16/32.clamps.to
.....#............8/16/32-bits.respectively
.....#.....-->.U8.mode.also.clamps.U16.surrogate.ranges
.....#
.....#.._|.[1].missing,.empty.string.input,.or
.....#.........numeric.zero.:.U8
.....#.....[2].+/-.16/32.:
.....#............-16....:.UTF-16.LE
.....#...............+32.:.UTF-32.BE.|._+_.optional:
.....#.....[3].anything.else.:
.....#.........direct.pass-through.to.built-in.encoder;
.....#.........inputs.not.clamped.or.pre-sanitized
.....#
.....#...|--->.UC.codepoint.byte-encoded.in
.....#............requested.encoding.format,.1-4.bytes
.....return.\
.....((____=___=_+=((_~!!_)<(""<_))*!+_)*_\
......................).>=.(_+=_+=_^=_<_)^_\
.....?.(___*___.==._^_.\
.........?.(.((__.=.(-(__=int(__)).<=.+__.&&
...........__.<.((_+_)^_.*.(_*_.+._^_))).?.\
...........__.:.(__.%.(___.=_^(_+_))+___).%.___).\
.........*.(____.=._*_.==.-____)^!_\
.........*.(___.=._^_*(_+(--_+_)^_))^!_)<--_^_^_^_++.\
.........?.sprintf("%c%c",.int((__=____*(_^=++_).\
.............?.__%_*_+int(__/_).:.__)/_)+___,__%_+___).\
.........:.sprintf("%c%c%c%c",.int((__.=.____*(____=.\
.............int((__-=++_^(_+_))/_^_/_)-_^_*_+___).*.\
................................(__.=.__%(_*(_^=_))+___).\
.............?._*(____%_*_+int(____/_)).*_.+.__%_*_.+.int(__/_)\
...................:.__+_*____*_)./_./_./_).+.___,
.............int(__/_/_).%_+___,int(+__/_).%_+___,__%_+___).\
......).:.(+___.<.-___).==.(___.=.(--_+_)^_.*.(_.^=.++_).)^!_.\
.........?.sprintf("%c%c%c%c",.(__.=.int(__).%.(_*_*_*_))%_+___,
.............int(__/_).%_+___,.(__.=.int(__/_/_))%_.+.___,.int(__/_)+___)\
.........:.sprintf("%c%c%c%c",.int((__.%=._*_*_*_)./_/_/_).+.___,
.............int(__/_/_)%_+___,int(__/_).%_.+.___,.__%_.+.___).\
..................................).\
..................................:..+___..||
...........(((__=+__)+__)<_^_.&&.-__<=+__).||
.......((___=(--_+_)^_*++_^_)<=__.&&.__<(_^_*(_+_)+___)).||
...................................+__<-__.||
...............................((_+_)^_*(_*_+_^_))<=__\
.........?.sprintf("%c",+___<_?__:.(__%(_^=_)+_)%_+___)\
.....:.(__+__)<(_+_)^_..................................\
.........?.sprintf("%c%c",.(___.+=.(_*=_*_)+_).+_+.int(__/_),.__%_+___).\
.....:.__<_^(_+_)....................................................\
.........?.sprintf("%c%c%c",._*(_+_).+.(___.+=.(_*=_*_)+_).+_+.int(__/_/_),
......................................int(__/_)%_.+.___,.__%_.+.___).\
.........:.sprintf("%c%c%c%c",._*-_+.(___.+=.(_*=_*_)+_).+_+_+.int(__/_/_/_),
..................int(__/_/_)%_+___,.int(__/_)%_.+.___,__%_+___)
}

Re: Is it possible to NOT use identifiers named only with _'s?

<uab7vr$3mm4r$2@dont-email.me>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=1482&group=comp.lang.awk#1482

  copy link   Newsgroups: comp.lang.awk
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: janis_papanagnou+ng@hotmail.com (Janis Papanagnou)
Newsgroups: comp.lang.awk
Subject: Re: Is it possible to NOT use identifiers named only with _'s?
Date: Tue, 1 Aug 2023 17:22:35 +0200
Organization: A noiseless patient Spider
Lines: 10
Message-ID: <uab7vr$3mm4r$2@dont-email.me>
References: <d6a0fdf8-b7e1-4c3c-a988-566a44bf0c9bn@googlegroups.com>
<tubf54$16176$1@dont-email.me>
<a39d7c06-0551-4b94-9c0b-c109e88637ddn@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 1 Aug 2023 15:22:35 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="67a0cbfdf4b728875efb956287fb8603";
logging-data="3889307"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19rNGtCRMBmonQlYebNq/8Q"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101
Thunderbird/45.8.0
Cancel-Lock: sha1:yo3nvAs3TLVanYhhfTHcJkBLh9U=
In-Reply-To: <a39d7c06-0551-4b94-9c0b-c109e88637ddn@googlegroups.com>
 by: Janis Papanagnou - Tue, 1 Aug 2023 15:22 UTC

On 01.08.2023 06:34, Kpop 2GM wrote:
>> On 09.03.2023 01:40, J Naman wrote:
>>> _________ = ___(____[________])- (__+___)/(______^_____ ); # Really?
>
> believe it or not, I actually directly write code in those underscores even for myself.

I wonder why.

Janis

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor