News for hackers. Stuff that matters.
Re:Functional Programming For The Rest of Us by jiggy2011 on Tuesday March 20, 2012 @01:48PM (#3730534)
Thankyou, that has made it at least slightly more clear to me I think :)

So what you need basically in the core of your server is some data structure (possibly keyed by the client's IP address and TCP port number?) that contains a bunch of functions with prepopulated arguments (curried functions?).

The prepopulated arguments are basically the state set by the previous request. When a new request comes in you somehow match it up with your data structure and execute?

I guess the continuation part is to force the I/O to happen at the right point, i.e make the next request depend on the execution of the first?

Of course Javascript is not really functional so that needn't be explicit.

There are no comments on this comment yet.