[dev] Re: [ANNOUNCE] req 1.0 - a gawk und dmenu powered plumberlike

From: Robert Figura <nc-figuraro_AT_netcologne.de>
Date: Fri, 9 May 2014 12:18:34 +0200

On Thu, 8 May 2014 10:50:12 +0200
"Dmitrij D. Czarkoff" <czarkoff_AT_gmail.com> wrote:

> Robert Figura said:
> > A little more than two years ago i started coding some plumberlike in
> > gawk, and i think it's time for me to seek suggestions and share what
> ^^^^
>
> Why not POSIX awk?

Because some gawk specific features are used in the code.

Porting to posix awk should be doable with reasonable effort. You'll
have to replace the multidimensional arrays (that's a[x][y] instead of
a[x,y]), because currently the source iterates over sub-arrays.

Then there is the exec.so extension helping to reduce the number of
processes created. Double-forking would work too, but that will break
ppid references. Now, exec.so should be optional anyways, so no hard
problem here.

And, i couldn't resist some goodies, like PROCINFO["sorted_in"]. Which
could, of course, also be implemented in standard awk, for some
penalty. But i like simpler source if i can manage to...


I felt i could get away with gawk, because the larger part of the
community considers gawk as _the_ awk.

That may be so because most "posix" implementations are buggy in an
ugly way, so you'd have to either target some specific posix implementation
(why not gawk then), or the minimal stable featureset of ancient awk...

It seems to me, even the creators of awk are endorsing gawk over other
implementations. The smell is there, maybe posix awk is dead?

Gawk on the other hand is under active development.

See comp.lang.awk for more reasons or reference.


BTW, what platform are you thinking of? I suspect it's not easy to make
a case, but please try to prove me wrong.

Bottomline is, i might support efforts to make req more portable. If
it's not too ugly i'll just accept suggestions. Otherwise you'd have
to convince me (please try), or just fork away.


Thank you, Kind Regards
  - Robert Figura

-- 
Phew, no ranting about posix this time. That's good!
Received on Fri May 09 2014 - 12:18:34 CEST

This archive was generated by hypermail 2.3.0 : Fri May 09 2014 - 12:24:06 CEST