Re: [racket-dev] Racket Guide chapter on concurrency

2013-10-19 Thread David T. Pierson
On Tue, Oct 08, 2013 at 03:42:56AM -0500, Robby Findler wrote: > You can use things like @interaction[] to run and typeset examples; does > that help? > > http://docs.racket-lang.org/scribble/eval.html?q=interaction#%28form._%28%28lib._scribble%2Feval..rkt%29._interaction%29%29 That's not exactly

Re: [racket-dev] Racket Guide chapter on concurrency

2013-10-08 Thread Robby Findler
FWIW, I agree that handle-evt is more generally useful than wrap-evt (programming with breaks gets tricky and would require it's own setup). You can use things like @interaction[] to run and typeset examples; does that help? http://docs.racket-lang.org/scribble/eval.html?q=interaction#%28form._%2

Re: [racket-dev] Racket Guide chapter on concurrency

2013-10-07 Thread David T. Pierson
On Mon, Oct 07, 2013 at 04:08:27PM -0400, David Vanderson wrote: > This is fantastic! Thank you! I learned a good deal reading it > just now. Comments below: Great! Thanks for checking it out and commenting. > make-arithmetic-thread is missing a "(let loop ()" line. Later in > the same examp

Re: [racket-dev] Racket Guide chapter on concurrency

2013-10-07 Thread David T. Pierson
On Mon, Oct 07, 2013 at 02:21:26PM -0700, John Clements wrote: > Isn't this early example: > > +@racketblock[ > +(define worker (thread (lambda () > + (let loop () > + (displayln "Working...") > + (loop) > +(sle

Re: [racket-dev] Racket Guide chapter on concurrency

2013-10-07 Thread John Clements
On Oct 6, 2013, at 1:30 PM, David T. Pierson wrote: > > Hi all, > > At the hackathon Asumu helped me work on a Guide chapter on concurrency. > > Thanks Asumu! > > Since then I've fleshed it out some more and pushed a commit to github. > > https://github.com/davidtpierson/racket/commit/d2fb85

Re: [racket-dev] Racket Guide chapter on concurrency

2013-10-07 Thread Jens Axel Søgaard
If you need examples, take a look at: The Little Book of Semaphores http://www.greenteapress.com/semaphores/downey05semaphores.pdf /Jens Axel 2013/10/6 David T. Pierson : > > Hi all, > > At the hackathon Asumu helped me work on a Guide chapter on concurrency. > > Thanks Asumu! > > Since th

Re: [racket-dev] Racket Guide chapter on concurrency

2013-10-07 Thread David Vanderson
This is fantastic! Thank you! I learned a good deal reading it just now. Comments below: On 10/06/2013 04:30 PM, David T. Pierson wrote: 1) Should it be broken into separate pages? I'd leave it as a single page for now. Easier to update. 2) It starts out with the basics of threads. Is th

[racket-dev] Racket Guide chapter on concurrency

2013-10-06 Thread David T. Pierson
Hi all, At the hackathon Asumu helped me work on a Guide chapter on concurrency. Thanks Asumu! Since then I've fleshed it out some more and pushed a commit to github. https://github.com/davidtpierson/racket/commit/d2fb857efec8ce508ac6f76afa845d788edab4c1 It probably needs more work. I would