On 4/1/07, skaller <[EMAIL PROTECTED]> wrote: > With CPS I can understand .. if the expression returns the > next expression to evaluate. For example if you want to gather > several mouse clicks c1 c2 c3, the c1 evaluation can return c2 > and c2 can return c3. The 'next continuation' to evaluate is the > state.
You can do this in FRP as well... a "switch node" is an expression which evaluates to, in addition to a result, a new expression for the system to replace it with. This is the defining characteristic of FRP in the style of Yale's Yampa (e.g. Brown's FrTime and Flapjax). > Also, a simpler task than GUI: web server. Same thing in principle, > but the input output behaviour is simpler and you could possibly > wrap Gerd's httpd code. Actually, I think CPS is a better fit for a web server :) since there's not really any interactivity going on... pages are served in sequence: the interaction is more like that of a console app. The PLT Scheme Web Server [1] is a great example of a CPS-based web server. I think something similar could be easily implemented in Felix with fthreads... plus the speed would be amazing :) - Chris [1] http://docs.plt-scheme.org/web-server/ ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Felix-language mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/felix-language
