Re[2]: [Haskell-cafe] mapping unfreeze over an IntMap of IOUArrays

2008-11-11 Thread Bulat Ziganshin
Hello Don, Wednesday, November 12, 2008, 1:21:18 AM, you wrote: > If this structure is useful, you should release it on Hackage. > You've not tested the performance though, I imagine, versus > say, hasing into an IntMap? you know that making all these things need a time. sorry, ATM i think that

Re: [Haskell-cafe] mapping unfreeze over an IntMap of IOUArrays

2008-11-11 Thread Don Stewart
bulat.ziganshin: > Hello Don, > > Wednesday, November 12, 2008, 12:51:33 AM, you wrote: > > >> btw, i made here some time ago proposal about pure hashtables > > > Did you end up implementing this? > > yes, i have published here all the 10 lines of implementation :))) > > citing letter to you:

Re[2]: [Haskell-cafe] mapping unfreeze over an IntMap of IOUArrays

2008-11-11 Thread Bulat Ziganshin
Hello Don, Wednesday, November 12, 2008, 12:51:33 AM, you wrote: >> btw, i made here some time ago proposal about pure hashtables > Did you end up implementing this? yes, i have published here all the 10 lines of implementation :))) citing letter to you: actually, writing HT module from scrat

Re: [Haskell-cafe] mapping unfreeze over an IntMap of IOUArrays

2008-11-11 Thread Don Stewart
bulat.ziganshin: > Hello Max, > > Tuesday, November 11, 2008, 11:50:28 PM, you wrote: > > btw, i made here some time ago proposal about pure hashtables > implented over a pure arrays (via accumArray operaion). may be it is > somewhat helpful for you Did you end up implementing this? -- Don

Re[2]: [Haskell-cafe] mapping unfreeze over an IntMap of IOUArrays

2008-11-11 Thread Bulat Ziganshin
Hello Max, Tuesday, November 11, 2008, 11:50:28 PM, you wrote: btw, i made here some time ago proposal about pure hashtables implented over a pure arrays (via accumArray operaion). may be it is somewhat helpful for you >>> > using unsafeFreeze. I'm getting stuck here, since the >>> IntMap libra

RE: [Haskell-cafe] mapping unfreeze over an IntMap of IOUArrays

2008-11-11 Thread Scherrer, Chad
Bulat wrote: > Hello Chad, > > Tuesday, November 11, 2008, 10:23:09 PM, you wrote: > > using unsafeFreeze. I'm getting stuck here, since the > IntMap library > > is not so monad-friendly. > > Data.Hashtable is Well, I need mutable update for a while... after that, I prefer a pure interface, wh

Re: [Haskell-cafe] mapping unfreeze over an IntMap of IOUArrays

2008-11-11 Thread Bulat Ziganshin
Hello Chad, Tuesday, November 11, 2008, 10:23:09 PM, you wrote: > using unsafeFreeze. I'm getting stuck here, since the IntMap library is not so > monad-friendly. Data.Hashtable is -- Best regards, Bulatmailto:[EMAIL PROTECTED] ___

Re: [Haskell-cafe] mapping unfreeze over an IntMap of IOUArrays

2008-11-11 Thread Don Stewart
chad.scherrer: > Hello cafe, > > I've hit a bit of a monadic snag here... > > I'm scanning a big file, building a table of statistics. I end up with > something like > > IO (IntMap (IOUArray Int Double)) > > Once I've read in the whole file and built my statistics, I don't need > any more updat

[Haskell-cafe] mapping unfreeze over an IntMap of IOUArrays

2008-11-11 Thread Chad Scherrer
Hello cafe, I've hit a bit of a monadic snag here... I'm scanning a big file, building a table of statistics. I end up with something like IO (IntMap (IOUArray Int Double)) Once I've read in the whole file and built my statistics, I don't need any more updates, so I'd like to do something like