This is the mail archive of the guile@cygnus.com mailing list for the guile project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: interpreter sessions



> So I thought, before I could apply Guile to my stuff (and after getting
> over the traditional gh_enter nuisance, I guess), that I needed it to be
> able to keep the separate sessions separate, i.e. each session should be
> able to load their own individual scripts and have their own variables and
> contexts, and such, executing "in parallel", with the main program
> switching to and executing the right contexts when an event comes in
> destined for a particular session and context.

I think you should be able to do this.  You want to use the
cooperative threading, and set up a separate REPL for each connection,
each addressing a distinct module.