Re: [racket] Remote execution in Racket

2010-08-25 Thread Frederick Ross
On Wed, Aug 25, 2010 at 4:38 PM, Eli Barzilay wrote: > IIUC, the intention of `execute' is to run stuff in some known > context, where this is sometimes a temporary directory, and sometimes > a batch job run on your cluster.  So it looks easy to generalize it > (for example, add some keyword) to d

Re: [racket] Remote execution in Racket

2010-08-25 Thread Eli Barzilay
Roughly what Noel said, but with an addition. IIUC, the intention of `execute' is to run stuff in some known context, where this is sometimes a temporary directory, and sometimes a batch job run on your cluster. So it looks easy to generalize it (for example, add some keyword) to do either kind o

Re: [racket] Remote execution in Racket

2010-08-25 Thread Noel Welsh
On Wed, Aug 25, 2010 at 9:11 AM, Frederick Ross wrote: > Someone pointed out serializable continuations in the stateless > servlets code to me, which seem like just about the perfect solution, > but they seem to be tied into that framework. I don't think so. If you (require web-server/lang/abor

Re: [racket] Remote execution in Racket

2010-08-25 Thread Frederick Ross
On Tue, Aug 24, 2010 at 7:08 PM, Richard Cleis wrote: > Can you provide an example? (At this point, one of the profs around here > asserts, "Code, please." :) You're right, code will clarify this. I should have started out asking what people would recommend to do something. My users end up writ

Re: [racket] Remote execution in Racket

2010-08-24 Thread Richard Cleis
Can you provide an example? (At this point, one of the profs around here asserts, "Code, please." :) RAC On Aug 24, 2010, at 1:02 AM, Frederick Ross wrote: On Sat, Aug 21, 2010 at 8:07 PM, Neil Van Dyke wrote: For example, is there a reason that you cannot simply generate a small Scheme

Re: [racket] Remote execution in Racket

2010-08-24 Thread Frederick Ross
On Sat, Aug 21, 2010 at 8:07 PM, Neil Van Dyke wrote: > For example, is there a reason that you cannot simply generate a small > Scheme code file to that temporary directory, expressing whatever is needed > for the batch run on the cluster?  If not, is the barrier the programming > difficulty in c

Re: [racket] Remote execution in Racket

2010-08-21 Thread YC
On Sat, Aug 21, 2010 at 10:00 AM, Frederick Ross wrote: > > Not correct. Thanks to all those who answered with ideas, and they're > all very good ideas. Dumping images and loading them remotely is a > dirty, ugly hack. I admit it openly and freely, and would never > consider it if I weren't *se

Re: [racket] Remote execution in Racket

2010-08-21 Thread Neil Van Dyke
I think that the email list could use a better understanding of the problem. Could you say more about why an image dump would be desirable? For example, is there a reason that you cannot simply generate a small Scheme code file to that temporary directory, expressing whatever is needed for the

Re: [racket] Remote execution in Racket

2010-08-21 Thread Matthias Felleisen
Could you run Racket processes that exchange plain source text (as in S-expressions)? On Aug 21, 2010, at 1:00 PM, Frederick Ross wrote: > On Fri, Aug 20, 2010 at 8:04 PM, YC wrote: >> It seems like all you need is a batch architecture in racket, is that >> correct? I am assuming the foll

Re: [racket] Remote execution in Racket

2010-08-21 Thread Frederick Ross
On Fri, Aug 20, 2010 at 8:04 PM, YC wrote: > It seems like all you need is a batch architecture in racket, is that > correct?  I am assuming the following: Not correct. Thanks to all those who answered with ideas, and they're all very good ideas. Dumping images and loading them remotely is a di

Re: [racket] Remote execution in Racket

2010-08-20 Thread YC
On Fri, Aug 20, 2010 at 1:52 AM, Frederick Ross wrote: > > Unfortunately, I can't figure out how to dump images from Racket. Is > it possible? Or am I having brain creep from Common Lisp? Or if > anyone can think of a cleaner way to do this, I would really love to > hear it. > It seems like a

Re: [racket] Remote execution in Racket

2010-08-20 Thread Matthias Felleisen
You may wish to consider an alternative architecture. As someone who has used dumps, starting in a 1980 Prolog, I think it's a nice thing but highly overrated. We have several people on this list who distribute highly intensive comps on systems, and they are all experimenting with different wa

Re: [racket] Remote execution in Racket

2010-08-20 Thread Jay McCarthy
There's no way to dump or load images in Racket. You'll have to implement state dumping/loading in your application. Jay On Fri, Aug 20, 2010 at 2:52 AM, Frederick Ross wrote: > I find myself with a rather peculiar problem, and I'd love anyone > else's input on it. > > I'm writing a piece of sof

Re: [racket] Remote execution in Racket

2010-08-20 Thread Shriram Krishnamurthi
Not a direct answer to your question (at all), but you may find it interesting to think about the design issues raised here: http://userweb.cs.utexas.edu/~wcook/Drafts/2008/batches.pdf Remote Batch Invocation for Compositional Object Services Ali Ibrahim, Yang Jiao, Eli Tilevich, William R. Cook E

[racket] Remote execution in Racket

2010-08-20 Thread Frederick Ross
I find myself with a rather peculiar problem, and I'd love anyone else's input on it. I'm writing a piece of software for our core facility. Among the things it does is wrap up a bunch of unix commands into one atomic unit, handle their inputs and outputs, and keep track of all the files and comm