Re: [racket] design and rationale of ports

2010-11-10 Thread Taylor R Campbell
Date: Wed, 10 Nov 2010 00:12:13 -0800 From: YC On Wed, Nov 10, 2010 at 12:00 AM, Taylor R Campbell > wrote: > I am completely lost in the documentation and implementation of ports. > Is there a document giving a high-level overview of the design of the > port ab

[racket] design and rationale of ports

2010-11-10 Thread Taylor R Campbell
I am completely lost in the documentation and implementation of ports. Is there a document giving a high-level overview of the design of the port abstraction in Racket, and its rationale, ideally with motivating examples of tasks requiring all the various bizarre knobs and buttons of the abstractio

Re: [racket] the benefactor in THREAD-RESUME

2010-11-07 Thread Taylor R Campbell
Date: Sun, 7 Nov 2010 19:01:40 -0700 From: Matthew Flatt Here's the only potential problem that I see offhand. Imagine that there are multiple `sync' steps in communicating with `t'. The relevant events for each `sync' must be protected using `with-thread-resume-evt', which mean

Re: [racket] the benefactor in THREAD-RESUME

2010-11-07 Thread Taylor R Campbell
Date: Mon, 8 Nov 2010 01:31:45 + From: Taylor R Campbell What about a case of (thread-resume t (current-thread)) where t is not ^^^ needed for more than a known dynamic extent or for one sync operation? Oops

Re: [racket] the benefactor in THREAD-RESUME

2010-11-07 Thread Taylor R Campbell
Date: Sun, 7 Nov 2010 18:17:48 -0700 From: Matthew Flatt So far, I don't think I've run into a case in practice where the second argument to `thread-resume' wasn't `(current-thread)'. What about a case of (thread-resume t (current-thread)) where t is not needed for more than a known

Re: [racket] the benefactor in THREAD-RESUME

2010-11-07 Thread Taylor R Campbell
(Sorry for the duplicate -- I sent from the wrong address the first time.) Date: Sun, 7 Nov 2010 14:27:11 -0700 From: Jay McCarthy Read: http://www.cs.utah.edu/plt/kill-safe/ I read that, and grepped through the code, and the Racket 5.0 sources. Every use I found outside of some co

[racket] the benefactor in THREAD-RESUME

2010-11-07 Thread Taylor R Campbell
When might one pass a benefactor other than the current thread as the second argument to THREAD-RESUME? _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/users

Re: [racket] design and use of continuation barriers

2010-07-10 Thread Taylor R Campbell
Date: Sat, 10 Jul 2010 20:45:29 + From: Taylor R Campbell What should I do if I want to preclude only multiple uses of the continuation, but still allow single uses even if they are non-local? Sorry, should've spent half a minute thinking about that before making my message

Re: [racket] design and use of continuation barriers

2010-07-10 Thread Taylor R Campbell
Date: Sat, 10 Jul 2010 07:42:56 -0600 From: Matthew Flatt At Fri, 9 Jul 2010 14:56:16 +, Taylor R Campbell wrote: > First, is there any document generally describing the rationale for > the design of continuation barriers and advice about when to use them? No, so her

[racket] design and use of continuation barriers

2010-07-09 Thread Taylor R Campbell
(I am not subscribed to this list, so please cc me in replies.) I have several questions about continuation barriers. I have tested some examples in PLT Scheme v4.2.4, because that's what I have handy; if the semantics has changed significantly in Racket, let me know before wasting time with the