Re: Announcing 8sync: an asynchronous programming language for Guile

2015-12-05 Thread Amirouche Boubekki
Le 2015-12-05 15:58, Christopher Allan Webber a écrit : Amirouche Boubekki writes: *** `tdelta` is not useful. tdelta is used so the the agenda knows to put it a future time from the current execution of the agenda. I wanted to write that it's only a shorcut: ``` (define tdelta make-time-

Re: Announcing 8sync: an asynchronous programming language for Guile

2015-12-05 Thread Amirouche Boubekki
Le 2015-12-05 15:58, Christopher Allan Webber a écrit : Amirouche Boubekki writes: * %8sync This is the main macro, here is it's definition: ``` (define-syntax-rule (%8sync async-request) (propagate-%async-exceptions (abort-to-prompt (current-agenda-prompt) async-request))) ``` I'm wo

Re: Announcing 8sync: an asynchronous programming language for Guile

2015-12-05 Thread Christopher Allan Webber
Amirouche Boubekki writes: >> Le 2015-12-04 03:47, Amirouche Boubekki a écrit : >> >>>Le 2015-12-04 03:15, Amirouche Boubekki a écrit : >>> >>>``` >>>(define (read/ sock) >>> (abort-to-prompt 'loop (lambda (cc) >>> (loop-add-reader s

Re: Announcing 8sync: an asynchronous programming language for Guile

2015-12-05 Thread Amirouche Boubekki
Le 2015-12-04 03:47, Amirouche Boubekki a écrit : Le 2015-12-04 03:15, Amirouche Boubekki a écrit : ``` (define (read/ sock) (abort-to-prompt 'loop (lambda (cc) (loop-add-reader sock (lambda () (cc (read sock))) ```