Re: [racket-users] Re: Confirming when garbage collection runs

2017-12-21 Thread Gustavo Massaccesi
I'm not sure if this is the exact answer to your question, but I hope it helps. This program shows the content of the two vectors, (i.e. ) but when the first vector is freed it displays "goodbye" in the middle of the sequence. So you can see when it was rele

[racket-users] Re: Confirming when garbage collection runs

2017-12-13 Thread David Storrs
Sorry, bumped 'send' by mistake Imagine I do this: (struct fruit (num)) (define (foo) (make-list 1 (fruit 7))) (define (bar) (map (compose add1 fruit-num) (foo))) (submit-job! (thunk (bar))) I think that the above is roughly equivalent to doing this: (thread (thunk