From: freakrobot on 3 Apr 2010 05:26 I want to make lisp program act like a portable database. And then I want to build a GUI with PyQt, is there a way to make lisp run out of the box? And run like a daemon? Thank you very much!
From: Pascal J. Bourguignon on 3 Apr 2010 07:06 freakrobot <basaka.chen(a)gmail.com> writes: > I want to make lisp program act like a portable database. > And then I want to build a GUI with PyQt, is there a way to make lisp > run out of the box? I don't know what you mean. There's no box here, just bits. Otherwise, you might want to have a look at the various LispBox and at LibCL. http://www.gigamonkeys.com/lispbox/ http://libcl.com/ > And run like a daemon? Sure. Any program can be run like a daemon. You just have to fork off twice, kill the parent, close the standard I/O/E and start a new session. See for example: http://www.itp.uzh.ch/~dpotter/howto/daemonize How you would write this exactly in lisp would depend on your lisp, and in the case of Common Lisp, it would depend on the CL implementation. You could do something more general using CFFI. However, this is not something that you would like to do, because Lisp programs tend to provide more interactivity. It might be more interesting to leave them run in the background, not as daemons but as normal interactive processes under screen or detachtty. Then you can connect again to them with a terminal to do anything lispy you may want to do with them. http://www.cliki.net/detachtty > Thank you very much! You're welcome. -- __Pascal Bourguignon__
From: freakrobot on 3 Apr 2010 09:48 On Apr 3, 7:06 pm, p...(a)informatimago.com (Pascal J. Bourguignon) wrote: > freakrobot <basaka.c...(a)gmail.com> writes: > > I want to make lisp program act like a portable database. > > And then I want to build a GUI with PyQt, is there a way to make lisp > > run out of the box? > > I don't know what you mean. There's no box here, just bits. > > Otherwise, you might want to have a look at the various LispBox and at > LibCL.http://www.gigamonkeys.com/lispbox/http://libcl.com/ > > > And run like a daemon? > > Sure. Any program can be run like a daemon. You just have to fork off > twice, kill the parent, close the standard I/O/E and start a new session. > > See for example:http://www.itp.uzh.ch/~dpotter/howto/daemonize > > How you would write this exactly in lisp would depend on your lisp, and > in the case of Common Lisp, it would depend on the CL implementation. > You could do something more general using CFFI. > > However, this is not something that you would like to do, because Lisp > programs tend to provide more interactivity. It might be more > interesting to leave them run in the background, not as daemons but as > normal interactive processes under screen or detachtty. Then you can > connect again to them with a terminal to do anything lispy you may want > to do with them. > > http://www.cliki.net/detachtty > > > Thank you very much! > > You're welcome. > -- > __Pascal Bourguignon__ Thanks again. I understand what should I learn now. Seems that is far from my ability:-(
|
Pages: 1 Prev: Elegant way to insert element by index Next: How up-to-date are the Lispcast videos? |