[racket] instantiating multiple sandboxes with gui's

From: Robby Findler (robby at eecs.northwestern.edu)
Date: Sun Apr 6 12:35:29 EDT 2014

On Sunday, April 6, 2014, Greg Hendershott <greghendershott at gmail.com>

> >> How does this handle dynamic and lazy requires?
> It doesn't.
> > Also: how do you know if the cache is stale?
> I don't.
> So my other idea was to do what dynamic-rerequire does and
> parameterize current-load/use-compiled, and examine the dependencies.
> However in the case where it detects racket/gui/base being loaded for
> the first time, it would somehow need to abort the load,
> dynamic-require racket/gui/base on the main custodian, then restart
> the load as usual. That felt icky, so instead I tried the above, but
> if it's the only way to handle dynamic and lazy requires, it's the
> only way.

I think you would need to abort the program and start it over to really do
that properly.

Avoiding the focus shift at the OS level seems easier (altho I don't know
if what the right Mac OS X calls to do it are).

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20140406/8a902677/attachment.html>

Posted on the users mailing list.