Updated: 11/5/2005; 6:06:07 PM.
Chris Double's Radio Weblog
        

Friday, May 28, 2004

Factor has continuations so it would be possible to implement a continuation based web server using it. The following Scheme:

(define test #f)
(define (do-test)
  (call/cc (lambda (x) (set! test x)))
  (display "here") (newline))

(do-test)
=> "here"
(test #f)
=> "here"
(test #f)
=> "here"

Can be done in Factor with:

: do-test [ "test" swap put ] callcc0 "here" print ;
do-test
=> "here"
"test" get call
=> "here"
"test" get call
=> "here"

An email from Slava describes the continuations support.




3:35:03 PM      

Slava Pestov announces a new release of the Factor programming language.

11:54:51 AM      

© Copyright 2005 Chris Double.
 
May 2004
Sun Mon Tue Wed Thu Fri Sat
            1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31          
Apr   Jun



Click here to visit the Radio UserLand website.

Listed on BlogShares

Click to see the XML version of this web page.

Click here to send an email to the editor of this weblog.