Re: [9fans] Gawk in 9front-ports
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! The first thing to check is that 'make check' passes. Some tests depend on locales; those are OK if they fail, assuming you don't have locale data for them. Others are only run if gawk was built with the MPFR library, so those should be OK too if they're not run. If there are failures in other tests, they should be investigated. I assume you built from the released tarball? Version 4.1.3? > I noticed in the Arch linux package that gawk comes with a couple of > dynamic libraries and a header. Are those also interesting to include in > the Plan9 package (then as static libraries ofcourse)? Supplyinig them as static libraries would serve no purpose. Those dynamic libraries are extensions (or plug-ins, if you will). Gawk loads them vial dlopen() if requested to via an @load directive in the source or the via the -l command line option. I hope that dlopen works on Plan 9; if so it's necessary to build the libraries in whatever way will work to support dlopen. The extension facility is something we (the gawk developers) put a lot of work into for the 4.1 release. I can supply pointers to doc for anyone who is interested. Here's a simple example: $ gawk -lreaddir '{ print }' . 2814749767529876/./d 281474977052502/../d 2814749767530561/.bashrc/f 281474976885114/.bash_history/f 14355223812503808/.bash_profile/f 1407374884183439/.bzr.log/f 281474976885116/.ex-sgml-rc/f 281474976885117/.exrc/f ... The readdir extension returns directory entries as records in an easily-parsed format: '/' is the field separator and the fields are the inode, the name, and an optional single-letter file type indicator. The doc has more examples. I hope this helps. Please feel to contact me off-list if you need more info / help. Thanks! Arnold
Re: [9fans] Gawk in 9front-ports
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 correctly, but it would be nice with > > critique/feedback/testing. > > Majorly cool! The first thing to check is that 'make check' passes. > Some tests depend on locales; those are OK if they fail, assuming you > don't have locale data for them. Others are only run if gawk was built > with the MPFR library, so those should be OK too if they're not run. If > there are failures in other tests, they should be investigated. > OK thanks - I will look at that and try to make a mk file for "check" :) I will also look at mpfr some time > I assume you built from the released tarball? Version 4.1.3? > Yes 4.1.3 below is the ports entry: https://bitbucket.org/mveety/9front-ports/src/0bf6695dcad94d32c34a73ed3d71010bbdf2a66b/textproc/gawk/?at=default I used an "external" gnulib which apart from the gnulib-derived object files usually supplied in gawk also takes care of the wchar-related dependencies. I also used a custom/manual config.h and a semi-automatically generated mk- file (mkmk and manual editing) rather than the standard configure/make. For the actual source, there were just a few things that needed patching so configure/make under APE might also work. > > I noticed in the Arch linux package that gawk comes with a couple of > > dynamic libraries and a header. Are those also interesting to include in > > the Plan9 package (then as static libraries ofcourse)? > > Supplyinig them as static libraries would serve no purpose. Those > dynamic libraries are extensions (or plug-ins, if you will). Gawk > loads them vial dlopen() if requested to via an @load directive in > the source or the via the -l command line option. > > I hope that dlopen works on Plan 9; if so it's necessary to build > the libraries in whatever way will work to support dlopen. most likely not since the whole system is static... > > The extension facility is something we (the gawk developers) put a > lot of work into for the 4.1 release. I can supply pointers to doc > for anyone who is interested. Here's a simple example: > > $ gawk -lreaddir '{ print }' . > 2814749767529876/./d > 281474977052502/../d > 2814749767530561/.bashrc/f > 281474976885114/.bash_history/f > 14355223812503808/.bash_profile/f > 1407374884183439/.bzr.log/f > 281474976885116/.ex-sgml-rc/f > 281474976885117/.exrc/f > ... > > The readdir extension returns directory entries as records in an > easily-parsed format: '/' is the field separator and the fields are > the inode, the name, and an optional single-letter file type indicator. > > The doc has more examples. > > I hope this helps. Please feel to contact me off-list if you need > more info / help. > > Thanks! > > Arnold
Re: [9fans] Gawk in 9front-ports
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 and load statically with the -T option (external type checking), it's probably not worth pursuing. The type checking can spot bugs that other systems miss, as it did with Python. (A #define was present for one include of an #ifdef'd structure but not for another, so functions had different ideas about the layout.) There's an auxiliary library libdynld that's needed to load a module, that doesn't seem to be part of the distribution, but I probably have got the bits.
Re: [9fans] p9p on openbsd/amd64
I did not know that. Thanks a lot. 2015-07-06 20:32 GMT-04:00 : >> Hi, >> I am using p9p for some time now, and I find very difficult to work without >> it. >> I have a box with openbsd/amd64 installed and I would like to have p9p on it. >> Can someone explain to me, in a more or less detailed fashion, what >> should I do to compile and run p9p on such machine? >> I wrote many c programs in my life, some of them useful for myself, >> but I do not know how to port software. >> Saludos, > > Plan9port is in the OpenBSD ports tree. You can either install the package > or build the port from source. > > More information here: > > http://www.openbsd.org > > sl > -- Hugo
[9fans] 9P Cloud™
Hello 9fans, I'm pleased to announce the availability of the 9P Cloud service (https://www.9pcloud.net). The service lets users create secure, distributed file systems instantly, utilizing only HTML5 browsers. I've included the link to a short "Introduction to 9P Cloud" video. The backend is written in Go, and runs on a custom Plan 9 kernel. The service uses OAuth2 authentication; currently Google and Facebook are supported. The 9P server and client are written in JavaScript and require support for HTML5 Filesystem and WebSocket APIs in the browser. 9P Cloud would not be possible without the great work of many, some of whom are on this list. It should be a source of pride for the Plan 9 community, Go Authors and other open source projects (Skeleton, Font-Awesome, Google Fonts). Thank you all for your creations. -Skip Introduction to 9P Cloud https://www.youtube.com/watch?v=PCBsyrFFGH0
Re: [9fans] 9P Cloud™
Nice. This seems exactly what Plan 9 is useful for, and I am glad to see someone use it in real life to solve real problems. Great work, I love it. Gesendet: Dienstag, 07. Juli 2015 um 18:00 Uhr Von: "Skip Tavakkolian" <9...@9netics.com> An: 9fans@9fans.net Betreff: [9fans] 9P Cloud™ Hello 9fans, I'm pleased to announce the availability of the 9P Cloud service (https://www.9pcloud.net). The service lets users create secure, distributed file systems instantly, utilizing only HTML5 browsers. I've included the link to a short "Introduction to 9P Cloud" video. The backend is written in Go, and runs on a custom Plan 9 kernel. The service uses OAuth2 authentication; currently Google and Facebook are supported. The 9P server and client are written in JavaScript and require support for HTML5 Filesystem and WebSocket APIs in the browser. 9P Cloud would not be possible without the great work of many, some of whom are on this list. It should be a source of pride for the Plan 9 community, Go Authors and other open source projects (Skeleton, Font-Awesome, Google Fonts). Thank you all for your creations. -Skip Introduction to 9P Cloud https://www.youtube.com/watch?v=PCBsyrFFGH0[https://www.youtube.com/watch?v=PCBsyrFFGH0]
Re: [9fans] 9P Cloud™
Congratulations, Skip and all contributors! Personal clouds (*truly* personal clouds) are the future. Any prospects for certificate authentication as an alternative to oauth2? Wes On 07/07/2015 02:00 PM, Skip Tavakkolian wrote: Hello 9fans, I'm pleased to announce the availability of the 9P Cloud service (https://www.9pcloud.net). The service lets users create secure, distributed file systems instantly, utilizing only HTML5 browsers. I've included the link to a short "Introduction to 9P Cloud" video. The backend is written in Go, and runs on a custom Plan 9 kernel. The service uses OAuth2 authentication; currently Google and Facebook are supported. The 9P server and client are written in JavaScript and require support for HTML5 Filesystem and WebSocket APIs in the browser. 9P Cloud would not be possible without the great work of many, some of whom are on this list. It should be a source of pride for the Plan 9 community, Go Authors and other open source projects (Skeleton, Font-Awesome, Google Fonts). Thank you all for your creations. -Skip Introduction to 9P Cloud https://www.youtube.com/watch?v=PCBsyrFFGH0 -- Wes Kussmaul The Authenticity Institute 738 Main Street Waltham, MA 02451 office +1 781 790 1674 mobile +1 781 330 1881 THIS COMMUNICATION IS INTENDED ONLY FOR THE USE OF THE PERSON TO WHOM IT IS ADDRESSED. If it was addressed incorrectly there's not much I can do but ask you politely to pretend you didn't see it. Any disclaimer suggesting that the sender has some kind of recourse is just wishful thinking. If I had a message from you that was digitally signed using your Sigillum™ identity credential from the Osmio Vital Records Department (http://osmio.ch), we could easily and at no cost exchange encrypted messages and files with each other.
Re: [9fans] Gawk in 9front-ports
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] 9P Cloud™
> Any prospects for certificate authentication as an alternative to oauth2? yes; owing to 9P's design, authentication can be different. an early version used authsrv. it is especially easy when there is a Go package that implements the auth protocol. this is the case with OAuth2 (it uses https://github.com/golang/oauth2) -Skip
Re: [9fans] Gawk in 9front-ports
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] 9P Cloud™
it would be useful to me if you would also create a second websocket server that accepts local samba file requests :) how can i login to this web site automatically on boot? On 7/8/15, Skip Tavakkolian <9...@9netics.com> wrote: >> Any prospects for certificate authentication as an alternative to oauth2? > > yes; owing to 9P's design, authentication can be different. an early > version used authsrv. it is especially easy when there is a Go > package that implements the auth protocol. this is the case with > OAuth2 (it uses https://github.com/golang/oauth2) > > -Skip > > >
Re: [9fans] 9P Cloud™
> it would be useful to me if you would also create a second websocket > server that accepts local samba file requests :) integration with local and third party storage (Drive, S3, Dropbox) are on the radar for future enhancements. in the meantime, if you wanted to roll your own (in Go) ... assuming i undrestand correclty -- that you want to export parts of your SMB share via 9P Cloud to others -- you would need an oauth2 client that will authenticate itself then export a 9P filesystem over websocket to 9pcloud. you can use either goplan9 package at https://github.com/9fans/go (rsc/rob) or go9p package at https://code.google.com/p/go9p/ (lucho and andrey) for the 9p server part and the oauth2 and websocket packages in Go repo on github for authentication and websocket handling. the javascript on the main page should be helpful.
Re: [9fans] 9P Cloud™
No, i mean the other way around: I would like to access the files in a real file browser (as if they were mounted like a network share). this mounting (and login) process should happen automatically at boot. I currently do this for an sshfs share. A small arm computer does nothing else but exporting an sshfs mount to my local network (windows computers) via samba. Also I would like to resume sharing my files with my friend after a reboot. So for uplink I'd also need automatic login. On 7/8/15, Skip Tavakkolian <9...@9netics.com> wrote: >> it would be useful to me if you would also create a second websocket >> server that accepts local samba file requests :) > > integration with local and third party storage (Drive, S3, Dropbox) > are on the radar for future enhancements. > > in the meantime, if you wanted to roll your own (in Go) ... > > assuming i undrestand correclty -- that you want to export parts of > your SMB share via 9P Cloud to others -- you would need an oauth2 > client that will authenticate itself then export a 9P filesystem over > websocket to 9pcloud. you can use either goplan9 package at > https://github.com/9fans/go (rsc/rob) or go9p package at > https://code.google.com/p/go9p/ (lucho and andrey) for the 9p server > part and the oauth2 and websocket packages in Go repo on github for > authentication and websocket handling. the javascript on the main > page should be helpful. > > >
Re: [9fans] Gawk in 9front-ports
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 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 comes with a couple of dynamic > libraries and a header. Are those also interesting to include in the Plan9 > package (then as static libraries ofcourse)? -- Hugo
Re: [9fans] 8l -e
4th iwp9 October 21-23 2009
Re: [9fans] 8l -e
http://4e.iwp9.org
Re: [9fans] 9P Cloud™
not sure if this helps you, but cinap's cifsd in 9front works very well for me, exporting my plan9 file server to windows boxes. -Steve > On 8 Jul 2015, at 02:05, hiro <23h...@gmail.com> wrote: > > No, i mean the other way around: I would like to access the files in a > real file browser (as if they were mounted like a network share). > this mounting (and login) process should happen automatically at boot. > > I currently do this for an sshfs share. A small arm computer does > nothing else but exporting an sshfs mount to my local network (windows > computers) via samba. > > Also I would like to resume sharing my files with my friend after a > reboot. So for uplink I'd also need automatic login. > > On 7/8/15, Skip Tavakkolian <9...@9netics.com> wrote: >>> it would be useful to me if you would also create a second websocket >>> server that accepts local samba file requests :) >> >> integration with local and third party storage (Drive, S3, Dropbox) >> are on the radar for future enhancements. >> >> in the meantime, if you wanted to roll your own (in Go) ... >> >> assuming i undrestand correclty -- that you want to export parts of >> your SMB share via 9P Cloud to others -- you would need an oauth2 >> client that will authenticate itself then export a 9P filesystem over >> websocket to 9pcloud. you can use either goplan9 package at >> https://github.com/9fans/go (rsc/rob) or go9p package at >> https://code.google.com/p/go9p/ (lucho and andrey) for the 9p server >> part and the oauth2 and websocket packages in Go repo on github for >> authentication and websocket handling. the javascript on the main >> page should be helpful. >> >> >>
Re: [9fans] Gawk in 9front-ports
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 different levels of value to said features and extensions. A partial list: - The previously discussed dynamic plug-in facility - And awk-level debugger - A statement count profiler (and a pretty printer) - True arrays of arrays - Many more built-in functions and variables. In retrospect, some of these are just bloat and I'd have been better off without them. Arnold