Re: [9fans] rc's shortcomings (new subject line)

2012-09-04 Thread 😜
Hi, just my 2¢ for the fanning out of pipes: if I remember correctly, mycroftiv's hubfs (or some other software in his contrib) allowed one to do exactly this. hth On 08/28/2012 09:41 PM, Dan Cross wrote: > On Tue, Aug 28, 2012 at 8:56 PM, erik quanstrom wrote: >>> And rc is not perfect. I've al

Re: [9fans] rc's shortcomings (new subject line)

2012-08-30 Thread erik quanstrom
On Thu Aug 30 10:56:52 EDT 2012, charles.fors...@gmail.com wrote: > As another example, also from Flex, > J M Foster, I F Currie, "Remote Capabilities", The Computer Journal, 30(5), > 1987, pp. 451-7. > > http://comjnl.oxfordjournals.org/content/30/5/451.full.pdf very intersting. the paper says

Re: [9fans] rc's shortcomings (new subject line)

2012-08-30 Thread erik quanstrom
On Thu Aug 30 16:08:23 EDT 2012, charles.fors...@gmail.com wrote: > That's true, but the C compiler also does each .c in parallel up to NPROC. > > On 30 August 2012 18:18, erik quanstrom wrote: > > > > Even more common than reduce is map. No reason why you can't > > > parallelize > > > > > >

Re: [9fans] rc's shortcomings (new subject line)

2012-08-30 Thread Charles Forsyth
That's true, but the C compiler also does each .c in parallel up to NPROC. On 30 August 2012 18:18, erik quanstrom wrote: > > Even more common than reduce is map. No reason why you can't > > parallelize > > > > 8c *.c > > we already do—with mk. >

Re: [9fans] rc's shortcomings (new subject line)

2012-08-30 Thread erik quanstrom
> Even more common than reduce is map. No reason why you can't > parallelize > > 8c *.c we already do—with mk. - erik

Re: [9fans] rc's shortcomings (new subject line)

2012-08-30 Thread Bakul Shah
On Thu, 30 Aug 2012 15:35:47 +0530 Dan Cross wrote: > On Wed, Aug 29, 2012 at 7:27 PM, erik quanstrom wrote > : > >> > rc already has non-linear pipelines. but they're not very convienient. > >> > >> And somewhat limited. There's no real concept of 'fanout' of output, > >> for instance (though

Re: [9fans] rc's shortcomings (new subject line)

2012-08-30 Thread Lucio De Re
> Errr ... no. Twice: mash was not VN code but brucee's preemptive strike > against a POSIX shell for Lucent's Inferno; > VN's Inferno had a shell with a different style done by Roger Peppe. I do apologise. Mash was genial! The VN shell was remarkable in a very different way. ++L

Re: [9fans] rc's shortcomings (new subject line)

2012-08-30 Thread sl
> anyway, a meld of Rc shell and mk? crazy idea. What was mash? -sl

Re: [9fans] rc's shortcomings (new subject line)

2012-08-30 Thread Charles Forsyth
The source of mash as VN inherited it from the defunct Lucent organisation on 1 September 1999 remains in the tree, so it wasn't lost. On 30 August 2012 16:13, Charles Forsyth wrote: > > On 30 August 2012 16:13, Lucio De Re wrote: > >> Inferno (Vitanuova) released a "mash" a ways back, but appar

Re: [9fans] rc's shortcomings (new subject line)

2012-08-30 Thread Charles Forsyth
Errr ... no. Twice: mash was not VN code but brucee's preemptive strike against a POSIX shell for Lucent's Inferno; VN's Inferno had a shell with a different style done by Roger Peppe. On 30 August 2012 16:13, Lucio De Re wrote: > Inferno (Vitanuova) released a "mash" a ways back, but apparently

Re: [9fans] rc's shortcomings (new subject line)

2012-08-30 Thread Burton Samograd
>> anyway, a meld of Rc shell and mk? crazy idea. > Inferno (Vitanuova) released a "mash" a ways back, but apparently the sources > were lost. It was mind-bogglingly interesting! In case anyone's interested (like I was): http://www.vitanuova.com/inferno/man/1/mash.html -- Burton Samograd Thi

Re: [9fans] rc's shortcomings (new subject line)

2012-08-30 Thread Lucio De Re
> anyway, a meld of Rc shell and mk? crazy idea. Inferno (Vitanuova) released a "mash" a ways back, but apparently the sources were lost. It was mind-bogglingly interesting! ++L

Re: [9fans] rc's shortcomings (new subject line)

2012-08-30 Thread Charles Forsyth
As another example, also from Flex, J M Foster, I F Currie, "Remote Capabilities", The Computer Journal, 30(5), 1987, pp. 451-7. http://comjnl.oxfordjournals.org/content/30/5/451.full.pdf On 30 August 2012 15:45, Charles Forsyth wrote: > If you look at the paper I referenced, you will. Similar

Re: [9fans] rc's shortcomings (new subject line)

2012-08-30 Thread dexen deVries
On Thursday 30 of August 2012 10:41:38 erik quanstrom wrote: > what i was saying is that mk knows and insures that the output files > are there. the fact that it's not in the middle of the conversation is > an implementation detail, imho. > > that is, mk is built on the assumption that programs

Re: [9fans] rc's shortcomings (new subject line)

2012-08-30 Thread erik quanstrom
On Thu Aug 30 10:28:24 EDT 2012, cro...@gmail.com wrote: > > said another way, we already have typed streams, but they're not > > enforced by the operating system. > > Yes, but then every program that participates in one of these > computation networks has to have that type knowledge baked in. Th

Re: [9fans] rc's shortcomings (new subject line)

2012-08-30 Thread Charles Forsyth
If you look at the paper I referenced, you will. Similar abilities appeared in systems that supported persistence and persistent programming languages (cf. Malcolm Atkinson, not Wikipedia). On 30 August 2012 14:33, erik quanstrom wrote: > i don't see that the os can really help here.

Re: [9fans] rc's shortcomings (new subject line)

2012-08-30 Thread erik quanstrom
> On Thu, Aug 30, 2012 at 7:56 PM, erik quanstrom wrote: > >> The thing is that mk doesn't really do anything to set up connections > >> between the commands it runs. > > > > it does. the connections are through the file system. > > No. The order in which commands are run (or if they are run at

Re: [9fans] rc's shortcomings (new subject line)

2012-08-30 Thread erik quanstrom
> Hmm, I'm afraid I'm off in the realm of thinking out loud at this > point. Sorry if that's noisy for folks. THANK YOU. if 9fans needs anything, it's more thinking. i'm not an edison fan, but i do like one thing he said, which was that he had not failed, but simply discovered that the $n ways

Re: [9fans] rc's shortcomings (new subject line)

2012-08-30 Thread Dan Cross
On Thu, Aug 30, 2012 at 7:56 PM, erik quanstrom wrote: >> The thing is that mk doesn't really do anything to set up connections >> between the commands it runs. > > it does. the connections are through the file system. No. The order in which commands are run (or if they are run at all) is based

Re: [9fans] rc's shortcomings (new subject line)

2012-08-30 Thread erik quanstrom
> > grep -b. but in general if the bio library had an option to output > > line-wise, then the problem could be avoided. otherwise, one would need to > > mux the output. > > > to quote you, erik, > > pipes still preserve write boundaries, as does il > > so, hopefully, a dumb pipe to cat would

Re: [9fans] rc's shortcomings (new subject line)

2012-08-30 Thread Dan Cross
On Thu, Aug 30, 2012 at 7:03 PM, erik quanstrom wrote: >> rejected such system-imposing structure on files in Unix-y type >> environments since 1969. > [...] >> other threads of execution. Could we do something similar with pipes? >> I don't know that anyone wants typed file descriptors; that wo

Re: [9fans] rc's shortcomings (new subject line)

2012-08-30 Thread erik quanstrom
> The thing is that mk doesn't really do anything to set up connections > between the commands it runs. it does. the connections are through the file system. - erik

Re: [9fans] rc's shortcomings (new subject line)

2012-08-30 Thread dexen deVries
On Thursday 30 of August 2012 09:47:59 you wrote: > > caveat: output of one grep instance could end up in the midst of a /line/ > > of output of another grep instance. > > grep -b. but in general if the bio library had an option to output > line-wise, then the problem could be avoided. otherwise

Re: [9fans] rc's shortcomings (new subject line)

2012-08-30 Thread Dan Cross
On Thu, Aug 30, 2012 at 7:51 PM, Dan Cross wrote: > A parallel apply sort of thing could be used with xargs, of course; > 'whatever | xargs papply foo' could keep some $n$ of foo's running at > the same time. The magic behind 'papply foo `{whatever}' is that it > knows how to interpret its argume

Re: [9fans] rc's shortcomings (new subject line)

2012-08-30 Thread Dan Cross
On Thu, Aug 30, 2012 at 7:11 PM, dexen deVries wrote: > On Thursday 30 of August 2012 15:35:47 Dan Cross wrote: >> (...) >> Your example of running multiple 'grep's in parallel sort of reminded >> me of this, though it occurs to me that this can probably be done with >> a command: a sort of 'paral

Re: [9fans] rc's shortcomings (new subject line)

2012-08-30 Thread erik quanstrom
> caveat: output of one grep instance could end up in the midst of a /line/ of > output of another grep instance. grep -b. but in general if the bio library had an option to output line-wise, then the problem could be avoided. otherwise, one would need to mux the output. - erik

Re: [9fans] rc's shortcomings (new subject line)

2012-08-30 Thread dexen deVries
On Thursday 30 of August 2012 15:35:47 Dan Cross wrote: > (...) > Your example of running multiple 'grep's in parallel sort of reminded > me of this, though it occurs to me that this can probably be done with > a command: a sort of 'parallel apply' thing that can run a command > multiple times conc

Re: [9fans] rc's shortcomings (new subject line)

2012-08-30 Thread erik quanstrom
> rejected such system-imposing structure on files in Unix-y type > environments since 1969. [...] > other threads of execution. Could we do something similar with pipes? > I don't know that anyone wants typed file descriptors; that would > open a whole new can of worms. i don't see that the os

Re: [9fans] rc's shortcomings (new subject line)

2012-08-30 Thread Charles Forsyth
typed command languages: I F Currie, J M Foster, Curt: The Command Interpreter Language for Flex http://www.vitanuova.com/dist/doc/rsre-3522-curt.pdf

Re: [9fans] rc's shortcomings (new subject line)

2012-08-30 Thread Dan Cross
On Wed, Aug 29, 2012 at 7:27 PM, erik quanstrom wrote: >> > rc already has non-linear pipelines. but they're not very convienient. >> >> And somewhat limited. There's no real concept of 'fanout' of output, >> for instance (though that's a fairly trivial command, so probably >> doesn't count), or

Re: [9fans] rc's shortcomings (new subject line)

2012-08-29 Thread Charles Forsyth
http://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.78.5331 Paul Haeberli, ConMan: A Visual Programming Language for Interactive Graphics (1988) I supervised a student who did an implementation for a Blit-like environment on the Sun3 as a project; unfortunately I didn't keep a copy. I remember

Re: [9fans] rc's shortcomings (new subject line)

2012-08-29 Thread erik quanstrom
> > rc already has non-linear pipelines. but they're not very convienient. > > And somewhat limited. There's no real concept of 'fanout' of output, > for instance (though that's a fairly trivial command, so probably > doesn't count), or multiplexing input from various sources that would > be nee

Re: [9fans] rc's shortcomings (new subject line)

2012-08-29 Thread Dan Cross
On Wed, Aug 29, 2012 at 2:04 AM, erik quanstrom wrote: >> > the haahr/rakitzis es' if makes more sense, even if it's wierder.) >> >> Agreed; es would be an interesting starting point for a new shell. > > es is great input. there are really cool ideas there, but it does > seem like a lesson learne

Re: [9fans] rc's shortcomings (new subject line)

2012-08-29 Thread dexen deVries
On Wednesday 29 of August 2012 09:06:35 arisawa wrote: > Hello, > > On 2012/08/29, at 4:34, dexen deVries wrote: > > now i see i can do: > > > > x=1 y=2 z=3 > > > > ...and only `z' retains its new value in the external scope, while `x' and > > `y' are limited in scope. > > No. > > ar% a=1 b=2

Re: [9fans] rc's shortcomings (new subject line)

2012-08-29 Thread dexen deVries
On Tuesday 28 of August 2012 16:34:10 erik quanstrom wrote: > my knee-jerk reaction to my own question is that making it easier > and more natural to parallelize dataflow. a pipeline is just a really > low-level way to talk about it. the standard > grep x *.[ch] > forces all the *.[ch] to b

Re: [9fans] rc's shortcomings (new subject line)

2012-08-28 Thread erik quanstrom
> > > > > The feature I want is the ability to pass not just character > > > > > values in environment or pipes but arbitrary Scheme objects. > > > > > But that requires changes at the OS level (or mapping them > > > > > to/from strings, which is a waste if both sides can handle > > > > > structure

Re: [9fans] rc's shortcomings (new subject line)

2012-08-28 Thread Bakul Shah
On Tue, 28 Aug 2012 22:23:20 EDT erik quanstrom wrote: > > On Tue, 28 Aug 2012 21:39:06 EDT erik quanstrom wr > ote: > > > > The feature I want is the ability to pass not just character > > > > values in environment or pipes but arbitrary Scheme objects. > > > > But that requires changes at the

Re: [9fans] rc's shortcomings (new subject line)

2012-08-28 Thread erik quanstrom
> On Tue, 28 Aug 2012 21:39:06 EDT erik quanstrom > wrote: > > > The feature I want is the ability to pass not just character > > > values in environment or pipes but arbitrary Scheme objects. > > > But that requires changes at the OS level (or mapping them > > > to/from strings, which is a wast

Re: [9fans] rc's shortcomings (new subject line)

2012-08-28 Thread Bakul Shah
On Tue, 28 Aug 2012 21:39:06 EDT erik quanstrom wrote: > > The feature I want is the ability to pass not just character > > values in environment or pipes but arbitrary Scheme objects. > > But that requires changes at the OS level (or mapping them > > to/from strings, which is a waste if both sid

Re: [9fans] rc's shortcomings (new subject line)

2012-08-28 Thread erik quanstrom
> var:[^ctl-a]* > | ([^ctl-a]*) ctl-a list sorry. s/list/var/ - erik

Re: [9fans] rc's shortcomings (new subject line)

2012-08-28 Thread erik quanstrom
> The feature I want is the ability to pass not just character > values in environment or pipes but arbitrary Scheme objects. > But that requires changes at the OS level (or mapping them > to/from strings, which is a waste if both sides can handle > structured objects). !? the ability to pass typ

Re: [9fans] rc's shortcomings (new subject line)

2012-08-28 Thread erik quanstrom
> On Tue, 28 Aug 2012 16:34:10 EDT erik quanstrom > wrote: > > my knee-jerk reaction to my own question is that making it easier > > and more natural to parallelize dataflow. a pipeline is just a really > > low-level way to talk about it. the standard > > grep x *.[ch] > > forces all the *

Re: [9fans] rc's shortcomings (new subject line)

2012-08-28 Thread arisawa
Hello, On 2012/08/29, at 4:34, dexen deVries wrote: > now i see i can do: > > x=1 y=2 z=3 > > ...and only `z' retains its new value in the external scope, while `x' and > `y' > are limited in scope. No. ar% a=1 b=2 c=3; echo $a $b $c 1 2 3 ar% a=() b=() c=() ar% a=1 b=2 {c=3}; echo $a $b $c

Re: [9fans] rc's shortcomings (new subject line)

2012-08-28 Thread Bakul Shah
On Tue, 28 Aug 2012 16:34:10 EDT erik quanstrom wrote: > my knee-jerk reaction to my own question is that making it easier > and more natural to parallelize dataflow. a pipeline is just a really > low-level way to talk about it. the standard > grep x *.[ch] > forces all the *.[ch] to be g

Re: [9fans] rc's shortcomings (new subject line)

2012-08-28 Thread erik quanstrom
> > the haahr/rakitzis es' if makes more sense, even if it's wierder.) > > Agreed; es would be an interesting starting point for a new shell. es is great input. there are really cool ideas there, but it does seem like a lesson learned to me, rather than a starting point. > I think in order to r

Re: [9fans] rc's shortcomings (new subject line)

2012-08-28 Thread Bakul Shah
On Wed, 29 Aug 2012 01:11:26 +0530 Dan Cross wrote: > On Tue, Aug 28, 2012 at 8:56 PM, erik quanstrom wro= > > > perhaps (let's hope) someone else has better ideas. > > Well, something off the top of my head: Unix pipelines are sort of > like chains of coroutines. And they work great for defi

Re: [9fans] rc's shortcomings (new subject line)

2012-08-28 Thread Aram Hăvărneanu
> But something that may be interesting would > be the ability to allow the stream of computations to branch; instead > of pipelines being just a list, make them a tree, or even some kind of > dag (if one allows for the possibility of recombining streams). Rc has this. It's great. See section 10 o

Re: [9fans] rc's shortcomings (new subject line)

2012-08-28 Thread Bakul Shah
On Tue, 28 Aug 2012 14:44:40 EDT erik quanstrom wrote: > >=20 > > switch/case would make helluva difference over nested if/if not, if > > defaulted to fall-through. > > maybe you have an example? because i don't see that. if not works > fine, and can be nested. case without fallthrough is als

Re: [9fans] rc's shortcomings (new subject line)

2012-08-28 Thread Dan Cross
On Tue, Aug 28, 2012 at 8:56 PM, erik quanstrom wrote: >> And rc is not perfect. I've always felt like the 'if not' stuff was a >> kludge. > > no, it's certainly not. (i wouldn't call if not a kludge—just ugly. Kludge perhaps in the sense that it seems to be to work around an issue with the gr

Re: [9fans] rc's shortcomings (new subject line)

2012-08-28 Thread dexen deVries
On Tuesday 28 of August 2012 14:44:40 erik quanstrom wrote: > (...) > > variable scoping (better than subshel) would help writing larger > > scripts, but that's not necessarily an improvement ;-) something > > similar to LISP's `let' special form, for dynamic binding. > > there is variable scoping

Re: [9fans] rc's shortcomings (new subject line)

2012-08-28 Thread erik quanstrom
> > switch/case would make helluva difference over nested if/if not, if > defaulted to fall-through. maybe you have an example? because i don't see that. if not works fine, and can be nested. case without fallthrough is also generally what i want. if not, i can make the common stuff a functio