On Thu, Jul 23, 2009 at 4:06 PM, ghtdak<gl...@tarbox.org> wrote: > > > > On Wed, Jul 22, 2009 at 10:11 PM, ghtdak <gl...@tarbox.org> wrote: > > ---------- Forwarded message ---------- > From: Dorian Raymer <deldo...@gmail.com> > Date: Jul 22, 8:00 pm > Subject: notebook rewrite > To: sage-devel > > Hi Glenn, > > On Wed, Jul 22, 2009 at 4:41 PM, ghtdak <gl...@tarbox.org> wrote: > > > Of course, once you put an event loop in the sub-process, much > of > > pexpect probably becomes unnecessary. Seems to me that Twisted > could > > do the spawning of the twisted sub-process and just shuffle > strings > > across. I don't really know pexpect but my guess is the things > it > > handles are also handled by twisted (although I don't actually > know). > > Its doubtful that there is sufficient complexity that pickle > couldn't > > handle the marshalling of data across the pipe. > > The essence of what you have described is architecture of > Codenode. > With out > getting too much into a side by side comparison, this is how it > works > using > our terminology: > > An Engine is a computation process (like what you call a Sage sub- > process). > An Engine contains two parts: First part, an object representing > the > Python > (or Sage) interpreter<http://github.com/codenode/codenode/blob/ > 8747088439efce423cefd680eab2...>, > with methods like evaluate, and tab complete. Second part, a > simple > RPC > server<http://github.com/codenode/codenode/blob/ > 8747088439efce423cefd680eab2...>that > adapts the interpreter object to a network transport; the current > working implementation is an XML-RPC server. > > > Great. This is where I was going to eventually head. In truth, what > we really want is a "Sage Service" which can lie under any number of > transports. XML-RPC is certainly consistent with that approach
The following sage-devel thread is also about using XML-RPC with Sage: http://groups.google.com/group/sage-devel/browse_thread/thread/202f9b2323d2771b/71fd656651eceb89 -- Regards Minh Van Nguyen --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to sage-devel-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---