On Sun, 2007-04-01 at 14:37 -0400, Chris King wrote:

>  (1) is accomplished by having
> some sort of toplevel controller which monitors external stimuli and
> reevaluates the functional expressions whenever the stimuli changes.

> Basically the whole question of callbacks vs. blocking threads vs. CPS
> is avoided with FRP... you don't have the awkward "push" model
> associated with callbacks but you get to keep the reactivity you
> "lose" with blocking threads 

Hmm .. but 'expressions' are intrinsically callbacks.

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.

Felix does precisely this (although it isn't functional) ..
as does any C programming making a kernel call.

Anyhow .. interesting to see how this would work in Ocaml,
since it uses the machine stack: I guess you'd need 
camlp4 to hide the top level reaction architecture.

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.

> Haha no, no sarcasm... after I figured out what it wanted in the
> config file it did a decent job wrapping everything.  Though certainly
> if I was doing it by hand I'd do it totally differently and make use
> of Felix's overloading (XCB has a lot of similar functions that differ
> only in their type).

It's a low level wrapper. Actually wrapped Gtk with it once.
Actually ... I wrapped /usr/include .. but that was very
painful.

Flxcc still uses the old method of handling callbacks ..
it doesn't know about the new 'cfun' feature.

-- 
John Skaller <skaller at users dot sf dot net>
Felix, successor to C++: http://felix.sf.net

-------------------------------------------------------------------------
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
Felix-language@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/felix-language

Reply via email to