[Haskell-cafe] Re: problems with hs-plugins load-eval (possible
bug)
Gwern Branwen
gwern0 at gmail.com
Thu Dec 11 21:17:09 EST 2008
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
2008/12/11 Alberto G. Corona :
> Workaround: duplicate all the imported files and include a different copy
> in each side.
> Another workaround: package all the files imported in both sides.
> Surprisingly, duplicate references do not appear when the imported files are
> in a package.
> PD: plugins adds 18 MBytes!! to the size of the executable. I suppose that
> this is because the ghc library.
Yep. It's worth noting though: 1) this is true whether you go through
hs-plugins or hint or raw GHC API. (Although Hint/raw API may be
smaller - my Mueval binary is 13M total.) 2) You can shrink the binary
a fair bit with 'strip' 3) Such binaries compress *very* well with
utilities such as UPX. 4) This size may improve whenever dynamic
libraries come and static linking is not the default.
- --
gwern
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
iEYEAREKAAYFAklByaQACgkQvpDo5Pfl1oLlSwCfTxqZzT92ycKNjy1U3USbB53z
p1QAnAg5TDO/bc38Uo0tvm7wh/jIVP+D
=G6cI
-----END PGP SIGNATURE-----
More information about the Haskell-Cafe
mailing list