Re: [pro] How to interact with a running lisp instance?

2010-12-22 Thread Daniel Weinreb
Yes, this kind of thing is essential if you want to design a system that stays up. I have another fun thing along these lines. When you start a request that comes into the server, you assign it an integer. As the handling of the request reaches transaction boundaries (transactions on an underly

Re: [pro] How to interact with a running lisp instance?

2010-12-20 Thread Peter Seibel
Presumably this kind of thing is the reason for the Chaos Monkey: http://www.readwriteweb.com/cloud/2010/12/chaos-monkey-how-netflix-uses.php -Peter On Mon, Dec 20, 2010 at 6:37 PM, Scott L. Burson wrote: > On Fri, Dec 17, 2010 at 11:16 AM, Ryan Davis wrote: >> We do something like this.  Fo

Re: [pro] How to interact with a running lisp instance?

2010-12-20 Thread Scott L. Burson
On Fri, Dec 17, 2010 at 11:16 AM, Ryan Davis wrote: > We do something like this.  For lisp websites my company makes, we have > a password-protected admin section with some light UI to help us manage > the site (turn logging levels up/down, clear caches, etc), and one of > those tools is a "evalua

Re: [pro] How to interact with a running lisp instance?

2010-12-20 Thread Daniel Weinreb
Scott McKay wrote: On Dec 19, 2010, at 10:46 AM, Daniel Herring wrote: On Sun, 19 Dec 2010, Scott McKay wrote: On Dec 17, 2010, at 4:57 PM, aeri...@xs4all.nl wrote: On 17 dec 2010, at 22:15, Eli Naeher wrote: Right now I usually have (under screen) one instance of

Re: [pro] How to interact with a running lisp instance?

2010-12-20 Thread Scott McKay
On Dec 19, 2010, at 10:46 AM, Daniel Herring wrote: > On Sun, 19 Dec 2010, Scott McKay wrote: >> On Dec 17, 2010, at 4:57 PM, aeri...@xs4all.nl wrote: >> >>> On 17 dec 2010, at 22:15, Eli Naeher wrote: Right now I usually have (under screen) one instance of Emacs for personal projects

Re: [pro] How to interact with a running lisp instance?

2010-12-19 Thread Martin Cracauer
I ended up with a strong preference for using screen(1) and the standard REPL. In fact I have often thought about putting my employer's toy into a screen session even for the unattended server mode. The Lisp is difficult to shut up anyway and sometimes you have to play special tricks if there is

Re: [pro] How to interact with a running lisp instance?

2010-12-19 Thread Daniel Herring
On Sun, 19 Dec 2010, Scott McKay wrote: > On Dec 17, 2010, at 4:57 PM, aeri...@xs4all.nl wrote: > >> On 17 dec 2010, at 22:15, Eli Naeher wrote: >>> Right now I usually have (under screen) one instance of Emacs for >>> personal projects (for which I try to use the latest Slime and Swank) >>> and o

Re: [pro] How to interact with a running lisp instance?

2010-12-19 Thread Scott McKay
On Dec 17, 2010, at 4:57 PM, aeri...@xs4all.nl wrote: > On 17 dec 2010, at 22:15, Eli Naeher wrote: >> Right now I usually have (under screen) one instance of Emacs for >> personal projects (for which I try to use the latest Slime and Swank) >> and one for work (where they do not get updated so

Re: [pro] How to interact with a running lisp instance?

2010-12-17 Thread Hans Hübner
On Sat, Dec 18, 2010 at 4:33 AM, Ala'a Mohammad wrote: >> There has been some great work, I believe done >> cooperatively by Stanford and U.C. Berkeley, >> about how to deal with this.  Do a web search >> for "crash-only systems".  What you have to do >> is be able to quickly recover from such fai

Re: [pro] How to interact with a running lisp instance?

2010-12-17 Thread Ala'a Mohammad
> There has been some great work, I believe done > cooperatively by Stanford and U.C. Berkeley, > about how to deal with this.  Do a web search > for "crash-only systems".  What you have to do > is be able to quickly recover from such failures, > getting you back to the same state you were > in, or

Re: [pro] How to interact with a running lisp instance?

2010-12-17 Thread aeri...@xs4all.nl
On 17 dec 2010, at 22:15, Eli Naeher wrote: > Right now I usually have (under screen) one instance of Emacs for > personal projects (for which I try to use the latest Slime and Swank) > and one for work (where they do not get updated so frequently), and > sometimes I need to start a third instance

Re: [pro] How to interact with a running lisp instance?

2010-12-17 Thread Eli Naeher
On Fri, Dec 17, 2010 at 2:35 PM, Faré wrote: > More importantly, we keep matching versions of swank and slime > in our version control system. If you want to attach to a server, > make sure you're using the appropriate SLIME. This way we could debug > years-old production servers using obsolete ve

Re: [pro] How to interact with a running lisp instance?

2010-12-17 Thread Zach Beane
Faré writes: > More importantly, we keep matching versions of swank and slime > in our version control system. If you want to attach to a server, > make sure you're using the appropriate SLIME. This way we could debug > years-old production servers using obsolete versions of SWANK, > if only we h

Re: [pro] How to interact with a running lisp instance?

2010-12-17 Thread Faré
On 17 December 2010 15:21, Daniel Weinreb wrote: > (1) Swank is pre-loaded into the server, so if we want to get in and > look around, we can run Emacs with slime, and tell slime to connect > over a TCP connection.  As Gail points out, you have to be careful to > use the version of Slime that corr

Re: [pro] How to interact with a running lisp instance?

2010-12-17 Thread Alexandre Rademaker
I mean, quicklisp made the update process easy enough to motivate developers to keep their slime up to date! I am newbie and have to say that with quicklisp I was able to connect emacs with a remote lisp image in a couple of minutes. Just because it was easy to install slime in the server and

Re: [pro] How to interact with a running lisp instance?

2010-12-17 Thread Daniel Weinreb
Jack Harper wrote: > ...an interesting idea. > > Years ago (1984), I had dinner with Nils Nilsson (AI pioneer) and he > mentioned the idea that he wanted to build a system that once alive would > never be powered down again - in his view a minor but necessary prerequisite > of an AI system. >

Re: [pro] How to interact with a running lisp instance?

2010-12-17 Thread Daniel Weinreb
It depends on what you mean by "interact". Is it a program interacting or a human interacting. If you mean the latter, then Swank makes sense. If the former, Swank isn't needed and is probably overkill As Sam Steingold says: A less generic answer would be to start an extra thread which woul

Re: [pro] How to interact with a running lisp instance?

2010-12-17 Thread Zach Beane
Alexandre Rademaker writes: > This is an old issue! We now have quicklisp! Quicklisp doesn't solve that particular problem. You can still get different versions of slime between different people, even with Quicklisp. (It just depends who updates when.) Zach

Re: [pro] How to interact with a running lisp instance?

2010-12-17 Thread Edi Weitz
On Fri, Dec 17, 2010 at 9:13 PM, Alexandre Rademaker wrote: > This is an old issue! We now have quicklisp! How does Quicklisp solve the problem Gail described? ___ pro mailing list pro@common-lisp.net http://common-lisp.net/cgi-bin/mailman/listinfo/pr

Re: [pro] How to interact with a running lisp instance?

2010-12-17 Thread Alexandre Rademaker
This is an old issue! We now have quicklisp! Cheers, Alexandre On 17/12/2010, at 16:55, Gail Zacharias wrote: > Slime/swank is not very robust against version skew. This is especially a > problem if you have multiple people who need to access the server, each of > whom may be running a dif

Re: [pro] How to interact with a running lisp instance?

2010-12-17 Thread Nick Levine
Maybe your button should only allow "load this asdf system". Then every code you use as a patch is a system that can be checked in -- hopefully just the same as you'd have in a fresh image, though sometime you need special magic (unintern, fmakunbound, etc.) to upgrade a live system

Re: [pro] How to interact with a running lisp instance?

2010-12-17 Thread Edi Weitz
On Fri, Dec 17, 2010 at 8:01 PM, Ala'a Mohammad wrote: > I just want to point to another possibility, however, it's specific to > CMUCL using the remote package > > http://common-lisp.net/project/cmucl/doc/cmu-user/ipc.html Now that you mention it, LispWorks has something similar, albeit a bit mo

Re: [pro] How to interact with a running lisp instance?

2010-12-17 Thread David Owen
On Fri, 17 Dec 2010, Ryan Davis wrote: > While having a long-running process on the server is appealing, we > decided to spend our engineering time on making the lisp process > easy to start, stop, restart, and deploy. I agree, very valuable. More so than live updating. > Personally, doing a lo

Re: [pro] How to interact with a running lisp instance?

2010-12-17 Thread Faré
> Personally, doing a lot of direct patching to a production system scares > me.  I worry about introducing bugs/hidden dependencies that wouldn't be > represented in source code, and getting conflicts between multiple > developers updating the same lisp. > Maybe your button should only allow "load

Re: [pro] How to interact with a running lisp instance?

2010-12-17 Thread Ryan Davis
On 12/17/2010 1:20 PM, Zach Beane wrote: > For example, you could have a HTTP handler that accepts POST requests > and takes a parameter as Lisp code to read with e.g. READ-FROM-STRING, > evaluate with EVAL and return the result with e.g. PRINT-TO-STRING. We do something like this. For lisp websit

Re: [pro] How to interact with a running lisp instance?

2010-12-17 Thread Ala'a Mohammad
I just want to point to another possibility, however, it's specific to CMUCL using the remote package http://common-lisp.net/project/cmucl/doc/cmu-user/ipc.html Ala'a Mohammad On Thu, Dec 16, 2010 at 9:25 PM, Steve Morin wrote: > How to interact with a running lisp instance?  I have been trying

Re: [pro] How to interact with a running lisp instance?

2010-12-17 Thread Hans Hübner
On Fri, Dec 17, 2010 at 7:20 PM, Zach Beane wrote: > There are a lot of different ways. I use GNU screen > to detach/reattach from > interactive sessions running Emacs and slime attached to the Lisp > webserver running http://wigflip.com/. A modern, well-main

Re: [pro] How to interact with a running lisp instance?

2010-12-17 Thread Gail Zacharias
On Fri, Dec 17, 2010 at 12:27 PM, Michael Bentley wrote: > > How to interact with a running lisp instance? I have been trying to figure > this out. I know this is being done with slime. Does any one have any good > pointer on this. I am thinking of writing a web application and would like > to

Re: [pro] How to interact with a running lisp instance?

2010-12-17 Thread Zach Beane
Steve Morin writes: > How to interact with a running lisp instance?  I have been trying to figure > this out.  I know this is being done with slime.  Does any one have any good > pointer on this.  I am thinking of writing a web application and would like to > be able to update it on the fly for u

Re: [pro] How to interact with a running lisp instance?

2010-12-17 Thread Michael Bentley
> How to interact with a running lisp instance? I have been trying to figure > this out. I know this is being done with slime. Does any one have any good > pointer on this. I am thinking of writing a web application and would like > to be able to update it on the fly for updates and bug fix

Re: [pro] How to interact with a running lisp instance?

2010-12-17 Thread Sam Steingold
On Thu, Dec 16, 2010 at 12:25 PM, Steve Morin wrote: > How to interact with a running lisp instance?  I have been trying to figure > this out.  I know this is being done with slime.  Does any one have any good > pointer on this.  I am thinking of writing a web application and would like > to be ab

Re: [pro] How to interact with a running lisp instance?

2010-12-17 Thread Tom Emerson
The following blog post describes how to get Hunchentoot running on a Linux box with Swank running so that you can connect to the Lisp instance running the webserver through Slime: http://blog.ponto-dot.com/2010/08/15/setting-up-common-lisp-on-a-web-server On Thu, Dec 16, 2010 at 12:25 PM, Steve

Re: [pro] How to interact with a running lisp instance?

2010-12-17 Thread Peter Herth
Hi Steve, when I am running server-style lisp applications, I actually do start swank (the lisp side of slime) in it and at any time I wish, I can connect with slime to it and interact. Peter ___ pro mailing list pro@common-lisp.net http://common-lisp.

Re: [pro] How to interact with a running lisp instance?

2010-12-17 Thread David Owen
On Thu, 16 Dec 2010, Steve Morin wrote: How to interact with a running lisp instance?  I have been trying to figure this out.  I know this is being done with slime.  Does any one have any good pointer on this.  I am thinking of writing a web application and would like to be able to update it on

Re: [pro] How to interact with a running lisp instance?

2010-12-17 Thread Jack Harper
...an interesting idea. Years ago (1984), I had dinner with Nils Nilsson (AI pioneer) and he mentioned the idea that he wanted to build a system that once alive would never be powered down again - in his view a minor but necessary prerequisite of an AI system. It will be interesting to see wha

[pro] How to interact with a running lisp instance?

2010-12-17 Thread Steve Morin
How to interact with a running lisp instance? I have been trying to figure this out. I know this is being done with slime. Does any one have any good pointer on this. I am thinking of writing a web application and would like to be able to update it on the fly for updates and bug fixes.