Re: [9fans] Plan9 development

2010-11-05 Thread Lucio De Re
On Fri, Nov 05, 2010 at 02:50:22PM +1100, Bruce Ellis wrote: mash has a make builtin. very brief, as all the shell type stuff in mk goes away.. I seem to remember that the mash source was lost? ++L

Re: [9fans] Plan9 development

2010-11-05 Thread Bruce Ellis
no. it was the last thing i wrote for the bidness unit. brucee On Fri, Nov 5, 2010 at 6:11 PM, Lucio De Re lu...@proxima.alt.za wrote: On Fri, Nov 05, 2010 at 02:50:22PM +1100, Bruce Ellis wrote: mash has a make builtin. very brief, as all the shell type stuff in mk goes away.. I seem to

[9fans] Passing a file descriptor between processes

2010-11-05 Thread Kirill A. Shutemov
One of the ugliest interface in Unix is passing a file descriptor between processes [1]. Does Plan9 provide any mechanism for it? [1] http://book.chinaunix.net/special/ebook/addisonWesley/APUE2/0201433079/ch17lev1sec4.html -- Kirill A. Shutemov

Re: [9fans] Passing a file descriptor between processes

2010-11-05 Thread Lucio De Re
On Fri, Nov 05, 2010 at 12:29:46PM +0200, Kirill A. Shutemov wrote: One of the ugliest interface in Unix is passing a file descriptor between processes [1]. Does Plan9 provide any mechanism for it? You can pass fds in channels between threads, but for processes you should look at #s for

Re: [9fans] Passing a file descriptor between processes

2010-11-05 Thread roger peppe
see srv(3) http://plan9.bell-labs.com/magic/man2html/3/srv On 5 November 2010 10:29, Kirill A. Shutemov kir...@shutemov.name wrote: One of the ugliest interface in Unix is passing a file descriptor between processes [1]. Does Plan9 provide any mechanism for it? [1]

Re: [9fans] Plan9 development

2010-11-05 Thread Eric Van Hensbergen
Quite right: http://code.google.com/p/inferno-os/source/browse/#hg/appl/cmd/mash Although, no doubt brucee has a new, improved version not fit for mere mortals to gaze upon. -eric On Fri, Nov 5, 2010 at 2:55 AM, Bruce Ellis bruce.el...@gmail.com wrote: no. it was the last thing i

Re: [9fans] Plan9 development

2010-11-05 Thread C H Forsyth
http://code.google.com/p/inferno-os/source/browse/#hg/appl/cmd/mash that one is indeed fairly old, much as we received it, except for changes to fit any changes in the environment, but http://www.vitanuova.com/inferno/man/1/mash.html and

[9fans] Plan 9 libc locks and semacquire?

2010-11-05 Thread Venkatesh Srinivas
Hi, In the paper 'Semaphores in Plan 9' by Sape and Russ Cox, there was this note: The performance of the semaphore-based lock implementation is sometimes much better and never noticeably worse than the spin locks. We will replace the spin lock implementation in the Plan 9 distribution soon. As

[9fans] anyone else having difficulty booting kw today?

2010-11-05 Thread David Leimbach
I just did a pull and a recompile. The kernel boots to the point where it wants to get the root. I tell it the same root server I used before the rebuild, and the prompt comes back again asking for the root. Any thoughts on where I should look? usb/hub... root is from (tcp)[tcp]: 192.168.1.250

Re: [9fans] anyone else having difficulty booting kw today?

2010-11-05 Thread David Leimbach
OOPS dumb mistake on my part... I should have just pressed enter there. I really ought to script that. On Fri, Nov 5, 2010 at 9:41 AM, David Leimbach leim...@gmail.com wrote: I just did a pull and a recompile. The kernel boots to the point where it wants to get the root. I tell it the same

Re: [9fans] Plan9 development

2010-11-05 Thread dexen deVries
On Friday 05 of November 2010 14:31:01 Eric Van Hensbergen wrote: Quite right: http://code.google.com/p/inferno-os/source/browse/#hg/appl/cmd/mash Although, no doubt brucee has a new, improved version not fit for mere mortals to gaze upon. A honest question: what is the rationale for

Re: [9fans] Plan9 development

2010-11-05 Thread Nick LaForge
A honest question: what is the rationale for merging functionality of make and shell into one? Use your imagination Nick

[9fans] Google code-in?

2010-11-05 Thread EBo
Google just announced a code-in. Is Plan9 participating? EBo --

Re: [9fans] Plan9 development

2010-11-05 Thread dexen deVries
On Friday 05 of November 2010 18:18:44 Nick LaForge wrote: A honest question: what is the rationale for merging functionality of make and shell into one? Use your imagination Tried, failed. To me, make is a tool for generating an acyclic, directed graph of dependencies between build

Re: [9fans] Plan9 development

2010-11-05 Thread andrey mirtchovski
To me, make is a tool for generating an acyclic, directed graph of dependencies  between build steps from some explicit and some wildcard rules -- and then traversing it in a sensible order. How's that for daily use shell? your focus is too narrowed on building. a sequence of commands piping

Re: [9fans] Plan9 development

2010-11-05 Thread David Leimbach
On Fri, Nov 5, 2010 at 10:32 AM, dexen deVries dexen.devr...@gmail.comwrote: On Friday 05 of November 2010 18:18:44 Nick LaForge wrote: A honest question: what is the rationale for merging functionality of make and shell into one? Use your imagination Tried, failed. To me, make

Re: [9fans] Plan9 development

2010-11-05 Thread dexen deVries
On Friday 05 of November 2010 18:39:14 andrey mirtchovski wrote: To me, make is a tool for generating an acyclic, directed graph of dependencies between build steps from some explicit and some wildcard rules -- and then traversing it in a sensible order. How's that for daily use shell?

Re: [9fans] Plan9 development

2010-11-05 Thread erik quanstrom
-- and then traversing it in a sensible order. How's that for daily use shell? Why is a shell that can generate acyclic digraphs of dependencies bad? Someone clearly found a use for it at some point or it wouldn't have been done. it is silly bloat if it's not an essential part of the

Re: [9fans] Plan9 development

2010-11-05 Thread roger peppe
On 5 November 2010 18:14, erik quanstrom quans...@labs.coraid.com wrote: -- and then traversing it in a sensible order. How's that for daily use shell? Why is a shell that can generate acyclic digraphs of dependencies bad?  Someone clearly found a use for it at some point or it wouldn't

Re: [9fans] Plan9 development

2010-11-05 Thread erik quanstrom
('', '', '||', if, '|', 'and '`{}') with something general enough to replace mk, you'd be on to something. i did a mash-inspired version of mk as an inferno shell module once. it required no new syntax (although it could be confused by files named :...) what you did was very cool, but

Re: [9fans] Google code-in?

2010-11-05 Thread Jacob Todd
Code-in? Could you elaborate? On Nov 5, 2010 1:22 PM, EBo e...@sandien.com wrote: Google just announced a code-in. Is Plan9 participating? EBo --

Re: [9fans] Google code-in?

2010-11-05 Thread Nick LaForge
'Summer of code' for high school students? Frankly, looking at its phrasing, it just looks like open-outsourcing on a whole new level. Nick On 11/5/10, Jacob Todd jaketodd...@gmail.com wrote: Code-in? Could you elaborate? On Nov 5, 2010 1:22 PM, EBo e...@sandien.com wrote: Google just

Re: [9fans] Plan9 development

2010-11-05 Thread Eric Van Hensbergen
On Fri, Nov 5, 2010 at 12:07 PM, dexen deVries dexen.devr...@gmail.com wrote: On Friday 05 of November 2010 14:31:01 Eric Van Hensbergen wrote: Quite right:      http://code.google.com/p/inferno-os/source/browse/#hg/appl/cmd/mash Although, no doubt brucee has a new, improved version not fit

Re: [9fans] Google code-in?

2010-11-05 Thread erik quanstrom
On Fri Nov 5 16:06:59 EDT 2010, nicklafo...@gmail.com wrote: 'Summer of code' for high school students? Frankly, looking at its phrasing, it just looks like open-outsourcing on a whole new level. i don't think that's accurate. the tasks need to be small enough and easy enough for a 12-17

Re: [9fans] Google code-in?

2010-11-05 Thread Nick LaForge
i don't think that's accurate. the tasks need to be small enough and easy enough for a 12-17 year old student to resonably get one done in a week. it would be much easier to just do these tasks oneself than to even write up the task, let alone walk a student through the problem-solving

Re: [9fans] Passing a file descriptor between processes

2010-11-05 Thread Skip Tavakkolian
i wish #s had a directory structure and enforced group permissions. On Fri, Nov 5, 2010 at 5:21 AM, erik quanstrom quans...@quanstro.net wrote: Currently, if your processes have a common parent, you can use rfork; if not, you must resort to #s. '#s' is a pretty unfortunate interface, though...

Re: [9fans] Google code-in?

2010-11-05 Thread EBo
Code-in? Could you elaborate? http://code.google.com/gci EBo --

Re: [9fans] Google code-in?

2010-11-05 Thread EBo
i don't think that's accurate. the tasks need to be small enough and easy enough for a 12-17 year old student to resonably get one done in a week. it would be much easier to just do these tasks oneself than to even write up the task, let alone walk a student through the problem-solving

Re: [9fans] Plan9 development

2010-11-05 Thread Bruce Ellis
i can answer that one easily. that's why it's called mash rather than random marketting name. the intention was to replace plan9 rc with a shell that was maintainable and had loadable modules. i wrote it in limbo to show it works, damned well. the first requirement was a make loadable. it's not