Re: use UniqSupply in FastString?

2013-07-11 Thread Nicolas Frisby
On Sat, Jul 6, 2013 at 2:55 PM, Ian Lynagh wrote: > On Fri, Jul 05, 2013 at 12:14:06PM -0500, Nicolas Frisby wrote: > > > > I've been trying to let a statically-linked compiler shares its > FastString > > table with plugins. > > Why not use a dynamically linked compiler? > My main concern with t

Re: use UniqSupply in FastString?

2013-07-06 Thread Nicolas Frisby
On Sat, Jul 6, 2013 at 2:55 PM, Ian Lynagh wrote: > On Fri, Jul 05, 2013 at 12:14:06PM -0500, Nicolas Frisby wrote: > > > > I've been trying to let a statically-linked compiler shares its > FastString > > table with plugins. > > Why not use a dynamically linked compiler? > I didn't stop to quest

Re: use UniqSupply in FastString?

2013-07-06 Thread Ian Lynagh
On Fri, Jul 05, 2013 at 12:14:06PM -0500, Nicolas Frisby wrote: > > I've been trying to let a statically-linked compiler shares its FastString > table with plugins. Why not use a dynamically linked compiler? Thanks Ian -- Ian Lynagh, Haskell Consultant Well-Typed LLP, http://www.well-typed.com

Re: use UniqSupply in FastString?

2013-07-06 Thread Nicolas Frisby
devs-bounces@**haskell.org >> [mailto:ghc-devs-bounces@**haskell.org ] >> *On Behalf Of *Nicolas Frisby >> *Sent:* 05 July 2013 18:14 >> *To:* ghc-devs@haskell.org >> *Subject:* use UniqSupply in FastString? >> >> >> Does it sound reasonable to

Re: use UniqSupply in FastString?

2013-07-05 Thread Simon Marlow
ll.org *Subject:* use UniqSupply in FastString? Does it sound reasonable to change the FastString module to use a UniqSupply instead of using that Int for generating uniques? I've been trying to let a statically-linked compiler shares its FastString table with plugins. Status, background info,

Re: use UniqSupply in FastString?

2013-07-05 Thread Nicolas Frisby
> > In other words, we always "load" a tiny special plugin that does the > 'reinitializeGlobals` call and is otherwise a noop. Since all plugins share > the some dynamically loaded library, we just need 'reinitializeGlobals` to > be called once, no matter how many plugins are loaded. Then the actua

Re: use UniqSupply in FastString?

2013-07-05 Thread Nicolas Frisby
any plugins are loaded. Then the actual plugins wouldn't need to know about the whole fiasco. I'd have to dig into the dynamic loading stuff to better estimate this… can anyone chime in? Thanks for the brain food! > ** > > Simon **** > > ** ** > > *From:* ghc-d

RE: use UniqSupply in FastString?

2013-07-05 Thread Simon Peyton-Jones
@haskell.org Subject: use UniqSupply in FastString? Does it sound reasonable to change the FastString module to use a UniqSupply instead of using that Int for generating uniques? I've been trying to let a statically-linked compiler shares its FastString table with plugins. Status, backgrou

use UniqSupply in FastString?

2013-07-05 Thread Nicolas Frisby
Does it sound reasonable to change the FastString module to use a UniqSupply instead of using that Int for generating uniques? I've been trying to let a statically-linked compiler shares its FastString table with plugins. Status, background info, options here: http://hackage.haskell.org/trac/gh