IME Rhino is *extremely* slow. It's like, the polar opposite of PyPy in
Are you going to be using a client-server model? There are a couple of
work on GPSEE, a similar project. I endeavor to add the Node API when I
find the time because it's a very good API.
Also could you link me to some materials discussing serializable
continuations? I'd like to be sure I understand what you're talking
Thanks for contacting me :)
On Tue, Jan 11, 2011 at 10:15:01AM -0500, Nathanael D. Jones wrote:
> Rhino seems to have sandboxing solved and offers beta-level serialization
> support for continuations. I believe the apache Cocoon project exposes the
> continuation-based web framework that drove those additions to Rhino.
> I'm thinking about compromising and choosing Rhino since it seems to get the
> 80% done.
> Have you worked much with Rhino?
> On Tue, Jan 11, 2011 at 10:46 AM, Donny Viszneki <do...@codebad.com> wrote:
> > I saw your post on the PyPy list and knew I had found a similar mind :)
> > Please put me on a mailing list to be kept up to date on the
> > developments of your project!
> > for instance, would go a long way in terms of providing sandboxing.
> > web programming challenges where CPS is used to wrangle the
> > "event-oriented" design philosophy of asynchronous programming in web
> > Good luck in all your endeavors ;)
Node.js, GPSEE, and modern web browsers also support the "Web Worker"
the main thread via an event-driven interface to two pipes. You post a
message to the other thread with a function, and you receive it with a
callback function (an "event.")
the local variables that exist in its scope.
> GPSEE and NodeJs both look awesome, but I couldn't find docs on whether they
> support reqs. 1-3 above.
> In essence, a continuation is a copy of the call stack, token index, and all
> accessible variables.
am not so sure about serializing them. Continuations have no formal
langauge support, but the combination of scope closures and first-class
functions makes it just as powerful, just a little more clumsy in terms
of syntax. To that end, there exists at least one project called
basically makes this less clumsy.
> The idea to use continuations to 'pause' the logic flow, get user response,
> and continue the code based on user input.
> if (ask() == "Go North")
> Print "You see the north pole"
> if (ask() == "Go east")
> Print "You can't go east, you're at the north pole. East doesn't exist."
> else if (ask() == "Go South")
> Print "You were eaten by an angry penguin."
> Expressing this without continuations would require that the logic be
> flattened and much more verbose, as well as less intuitive.
Yes I understand this problem!
after the similar RPython) I also want to create a competitor to
NarrativeJS, and which might turn out to be a little bit like Stackless
Tonight if I find the time, I will code up an example MUD using Node.js
and show it to you so you can see what it is like to solve the kinds of
design issues you face with Node.js. Then I will propose what it would
look like using NarrativeJS or something similar to make the program
flow more human-readable :)
Talk to you soon!