[[email protected]: Re: Threads]

GP lisper <[email protected]>
Newsgroups gmane.lisp.cmucl.general
Message-ID <[email protected]>
Date: Wed, 21 Jan 2009 11:25:15 -0500
Subject: [cmucl-help] Re: Threads

Greg Bennett wrote on Tue, Jan 20, 2009 at 08:23:36PM -0500: 
> Good evening all. I am trying to learn how OpenGL operates via
> cl-opengl and cmucl-19e. While I can compile the graphics demos and
> run them, I lose control of cmcl's repl. I can certainly type
> characters into it; there is no eval running as far as I can see.
> Those characters appear to be fed to eval when I kill the graphics
> loop/processes.

Your description reminds me of several years ago when I was doing the
Dow-Cells stuff.  I don't know the openGL demos at all, but I don't
see why you expect a REPL while a demo is running.  I haven't seen a
graphics demo yet that leaves me an active REPL.

I too was told that I needed 'good threads' for that cells project,
but I found that the simple telnet to the running image trick to be
sufficient, add it with the built-in MP package.

(setf mp::*idle-process* mp::*idle-process*)
(mp::start-lisp-connection-listener :port 7001 :password "foo")
...get telnet REPL setup...
...graphics stuff...

If you want to update the running code (in some loop, as a graphics
process would be) an ordinary telnet works fine.  Nowdays, you can
start another slime-listener.  I have no idea if this will work for
your needs, but it is simple to try it.

r
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.