[racket] Typed racket -> huge executable size

From: Vincent St-Amour (stamourv at ccs.neu.edu)
Date: Wed Nov 5 16:28:56 EST 2014

At Wed, 5 Nov 2014 16:23:37 -0500,
Asumu Takikawa wrote:
> 
> On 2014-11-05 11:08:56 -0500, Vincent St-Amour wrote:
> > Right, I was suggesting a possible change to `raco exe` that may solve
> > the problem. I don't know whether it's possible / a good idea, though.
> 
> We discussed this a bit in the lab today. It sounds like `raco exe` is
> conservative by default here and has to bring in all the compile-time
> dependencies too.
> 
> The reason is that things like `eval` (or other reflection mechanisms)
> may need the compile-time dependencies.

Since `raco exe` already doesn't track dependencies introduced via
runtime paths and `dynamic-require`, I think eliding compile-time
dependencies would be fair game.


> In practice though, it seems like these can be removed in many
> situations without causing problems. Maybe we would benefit from a flag
> that can enable a less conservative mode?

That should be the default, IMO.

Vincent

Posted on the users mailing list.