Re: [racket-dev] FrTime propagation bug

2012-01-13 Thread Marijn
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 12-01-12 18:27, Gregory Cooper wrote: Hi Marijn, The value-now/sync procedure waits for propagation to complete before reading a signal's value. Would something like the following suit your purposes? (define a (event-receiver)) (define b

Re: [racket-dev] FrTime propagation bug

2012-01-12 Thread Gregory Cooper
Hi Marijn, The value-now/sync procedure waits for propagation to complete before reading a signal's value. Would something like the following suit your purposes? (define a (event-receiver)) (define b (event-receiver)) (define a+b (+ (hold a) (hold b))) (send-event a 3) (send-event b 5)

[racket-dev] FrTime propagation bug

2012-01-11 Thread Marijn
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, Consider: #lang racket (require frtime) (define a (event-receiver)) (define b (hold a)) (send-event a 3) ;;; uncomment next line to make it work ;(value-now (hold a)) (value-now b) `a' is an event-stream onto which the value 3 is sent.

Re: [racket-dev] FrTime propagation bug

2012-01-11 Thread Gregory Cooper
Hi Marijn, FrTime propagates changes asynchronously. When send-event returns, there's no guarantee that the event has finished propagating through the system. And in general, (value-now b) is not well-defined, since asynchronous processing makes it difficult to define what now means; programs