stl and yaws

Vladimir Sekissov svg@REDACTED
Tue Jan 14 14:13:53 CET 2003


luke> They do this in Scheme using call/cc. Looking forward to seeing how
luke> the mdisp-based approach works!

Without support for call-with-current-continuation I see only two
approaches:

1. syntax transformation (may be I try it somewhere).
2. Continuation style programming as Distel does.

Now I use the second one. Every function must return

{ok, Result, ContFun, ContArgs} | {ok, Result, die}

Best Regards,
Vladimir Sekissov

luke> Vladimir Sekissov <svg@REDACTED> wrote:
luke> > Good day,
luke> > 
luke> > I'm now working on Yaws extension for STL. It is finished on 90% and
luke> > already contains:
luke> > 
luke> > 1. Continuation-passing style sessions based on modified Ulf Wiger's
luke> > `mdisp' module. Idea was borrowed from PLT Web-server.
luke> 
luke> This I'm looking forward to :-)
luke> 
luke> For people who haven't seen, the PLT paper is "Programming the Web
luke> with High-Level Programming Languages", http://readscheme.org/xml-web/
luke> 
luke> Their main trick is to make sending a HTML form to the user and
luke> receiving the POSTed reply look, from the server program's point of
luke> view, just like making a function call. The function can even return
luke> multiple times, corresponding to the user going BACK to a previous
luke> form and resubmitting it. Super clever! Like the difference between
luke> Erlang processes and event-loop programming, but applied to the web.
luke> 
luke> Not that I've actually tried it :-)
luke> 
luke> They do this in Scheme using call/cc. Looking forward to seeing how
luke> the mdisp-based approach works!
luke> 
luke> Cheers,
luke> Luke



More information about the erlang-questions mailing list