Re: [9fans] Gawk in 9front-ports

2015-07-09 Thread erik quanstrom
confirmed. it's existence is due to early gnu programs fighting with small variations in unix and compilers. byron's rc used a small script to the same effect. but for the most part, this all could be avoided with careful planning and not using esoteric functions. gcc also had its own conf

Re: [9fans] Gawk in 9front-ports

2015-07-09 Thread Jens Staal
On Thursday 09 July 2015 11:19:33 Steve Simon wrote: > FWIW: fgb did a stirling script called config which sets up some > environment and runs configure under ape. It doesn't always work but often > gets close to generating a config.h as linux intended. part of that script is already "fixed" since

Re: [9fans] Gawk in 9front-ports

2015-07-09 Thread Jeff Sickel
> On Jul 9, 2015, at 5:19 AM, Steve Simon wrote: > > FWIW: fgb did a stirling script called config which sets up some > environment and runs configure under ape. It doesn't always work but often > gets close > to generating a config.h as linux intended. Configure predates Linux. That, or my m

Re: [9fans] Gawk in 9front-ports

2015-07-09 Thread Hugo Rivera
Arnold, I am not sure who I am addressing either :-) Just wanted to know where this gawk port was heading. The thing is that I use a slightly modified version of Plan 9's awk. In this version, I added all the math functions from C and replaced the random number generator by the Mersenne twister. As

Re: [9fans] Gawk in 9front-ports

2015-07-09 Thread Steve Simon
FWIW: fgb did a stirling script called config which sets up some environment and runs configure under ape. It doesn't always work but often gets close to generating a config.h as linux intended. -Steve

Re: [9fans] Gawk in 9front-ports

2015-07-09 Thread Jens Staal
On Thursday 09 July 2015 02:49:53 arn...@skeeve.com wrote: > However, I'm happy to incorporate portability changes to make porting > to Plan 9 easier, if they're reasonable. For portability changes, I think not much is needed. There was an issue with a duplciate case in posix/gawkmisc.c ,(S_IFSO

Re: [9fans] Gawk in 9front-ports

2015-07-09 Thread arnold
Hi Hugo. I'm not sure who you're addressing. Jens did the port. I maintain gawk. Removing bloat unfortunately isn't going to happen in the mainline code base since there are backward compatibility issues. However, I'm happy to incorporate portability changes to make porting to Plan 9 easier, if t

Re: [9fans] Gawk in 9front-ports

2015-07-08 Thread Hugo Rivera
Let me understand. Are you going to modify the current gawk version according to your needs (perhaps removing some of the bloat you mention)? or are you going to port gawk as it is? 2015-07-08 2:22 GMT-04:00 : > Hugo Rivera wrote: > >> Why do you want gawk on plan9? > > I appreciate knowing abou

Re: [9fans] Gawk in 9front-ports

2015-07-08 Thread Jens Staal
On Tuesday 07 July 2015 16:45:59 Charles Forsyth wrote: > The loaders support creating a module, with the -u and -x options, with > import and export tables, > which are type-checked, to be dynamically loaded. If the program you're > working with won't compile and load > statically with the -T opti

Re: [9fans] Gawk in 9front-ports

2015-07-07 Thread arnold
Hugo Rivera wrote: > Why do you want gawk on plan9? I appreciate knowing about portability issues. :-) > I use awk a lot (on plan9 and elsewhere) and I wonder what reasons do > you have to use gawk over plan9's awk. Many features and extensions over standard awk. Different people will assign d

Re: [9fans] Gawk in 9front-ports

2015-07-07 Thread Hugo Rivera
Why do you want gawk on plan9? I use awk a lot (on plan9 and elsewhere) and I wonder what reasons do you have to use gawk over plan9's awk. 2015-07-06 22:37 GMT-04:00 Jens Staal : > There was a recent discussion about that it would be nice to have gawk on > Plan9. > > The latest upstream version o

Re: [9fans] Gawk in 9front-ports

2015-07-07 Thread Kurt H Maier
Quoting erik quanstrom : i'm confused. wasn't there also an effort to un-apeify the one true awk? Yes, but as usual, we were shouted down by mac users. khm

Re: [9fans] Gawk in 9front-ports

2015-07-07 Thread erik quanstrom
On Mon Jul 6 19:40:45 PDT 2015, staal1...@gmail.com wrote: > There was a recent discussion about that it would be nice to have gawk on > Plan9. i'm confused. wasn't there also an effort to un-apeify the one true awk? - erik

Re: [9fans] Gawk in 9front-ports

2015-07-07 Thread Charles Forsyth
On 7 July 2015 at 16:25, Jens Staal wrote: > most likely not since the whole system is static... The loaders support creating a module, with the -u and -x options, with import and export tables, which are type-checked, to be dynamically loaded. If the program you're working with won't compile a

Re: [9fans] Gawk in 9front-ports

2015-07-07 Thread Jens Staal
On Tuesday 07 July 2015 06:27:55 arn...@skeeve.com wrote: > Hi. > > Jens Staal wrote: > > There was a recent discussion about that it would be nice to have gawk on > > Plan9. > > > > The latest upstream version of gawk can now be built via 9front-ports. I > > think/hope I built/ported it correct

Re: [9fans] Gawk in 9front-ports

2015-07-07 Thread arnold
Hi. Jens Staal wrote: > There was a recent discussion about that it would be nice to have gawk on > Plan9. > > The latest upstream version of gawk can now be built via 9front-ports. I > think/hope I built/ported it correctly, but it would be nice with > critique/feedback/testing. Majorly cool!

[9fans] Gawk in 9front-ports

2015-07-06 Thread Jens Staal
There was a recent discussion about that it would be nice to have gawk on Plan9. The latest upstream version of gawk can now be built via 9front-ports. I think/hope I built/ported it correctly, but it would be nice with critique/feedback/testing. I noticed in the Arch linux package that gawk come