[Haskell-cafe] RE: [Haskell] Top Level <-
ganesh.sittampalam at credit-suisse.com
Wed Sep 3 05:46:03 EDT 2008
Ashley Yakeley wrote:
> I think it's bad design for a dynamic loader to load a module more
> than once anyway.
In compiled code module boundaries don't necessarily exist. So how
do you relink the loaded code so that it points to the unique copy
of the module?
> It's a waste of memory, for a start. We already
> know that hs-plugins won't for modules it already loaded itself
> (apparently it crashes the RTS), and I suspect it doesn't at all.
It crashes the RTS of the plugins loader, which is based on ghci, which
is built around loading modules independently. I believe there's a
separate RTS running at the top level of the program which has no
knowledge of the plugin loader.
Please access the attached hyperlink for an important electronic communications disclaimer:
More information about the Haskell-Cafe