Re: [racket] Running code on exit....

2011-09-02 Thread Matthew Flatt
At Thu, 1 Sep 2011 20:14:09 -0700, John Clements wrote: > > On Sep 1, 2011, at 8:03 PM, Eli Barzilay wrote: > > > Two hours ago, Robby Findler wrote: > >> Does it make sense to have the resource managed by a custodian? That > >> is, operate the ffi/C level where you can extend what happens when a

Re: [racket] Running code on exit....

2011-09-01 Thread John Clements
On Sep 1, 2011, at 8:03 PM, Eli Barzilay wrote: > Two hours ago, Robby Findler wrote: >> Does it make sense to have the resource managed by a custodian? That >> is, operate the ffi/C level where you can extend what happens when a >> custodian is shutdown to close whatever needs closing or finaliz

Re: [racket] Running code on exit....

2011-09-01 Thread Eli Barzilay
Two hours ago, Robby Findler wrote: > Does it make sense to have the resource managed by a custodian? That > is, operate the ffi/C level where you can extend what happens when a > custodian is shutdown to close whatever needs closing or finalizing > or whatever before it gets gc'd but when the cust

Re: [racket] Running code on exit....

2011-09-01 Thread Robby Findler
Does it make sense to have the resource managed by a custodian? That is, operate the ffi/C level where you can extend what happens when a custodian is shutdown to close whatever needs closing or finalizing or whatever before it gets gc'd but when the custodian is shutdown? Robby On Thu, Sep 1, 20

[racket] Running code on exit....

2011-09-01 Thread John Clements
I'd love to find a way to call a sound library's "terminate" function when Racket shuts down. My recollection of the lay of the land here is that it's very hard to make this happen correctly without mangling Racket itself. At a high level, I believe the explanation is that it violates the bound