samth
2017-11-29 15:35:18

@mflatt I don’t understand how this code is supposed to work: https://github.com/racket/racket7/blob/master/racket/src/expander/boot/handler.rkt#L202


samth
2017-11-29 15:35:36

shouldn’t that cons produce something that is by definition only accessible via the weak box?


samth
2017-11-29 15:35:51

and therefore, the weak box can be immediately cleared by the GC


mflatt
2017-11-29 15:37:08

The weak box can indeed be cleared immediately by the GC. The intent is to cache values only between GCs.


samth
2017-11-29 15:38:37

Ok, I think (but am not sure) that @cadr is seeing a performance issue there with Pycket, because we rarely get any cache hits