Re: [Haskell-cafe] Re: Hashtable woes

2006-02-22 Thread Ketil Malde
"Sebastian Sylvan" <[EMAIL PROTECTED]> writes: > I think you need to run the Fasta benchmark with N=25 to > generate the input file for this benchmark... I made the file available at http://www.ii.uib.no/~ketil/knuc.input -k -- If I haven't seen further, it is by standing in the footprints

Re: [Haskell-cafe] Re: haskell programming guidelines

2006-02-22 Thread ajb
G'day all. Quoting Christian Maeder <[EMAIL PROTECTED]>: > I see this differently. Expressions may be succinct! I find "$" and "." > similar enough for non-obfuscation. But they're _not_ similar! Compare this notation: f . g . h $ x with the one you suggested: f $ g $ h $ x Advantag

Re: [Haskell-cafe] Re: Hashtable woes

2006-02-22 Thread Sebastian Sylvan
On 2/22/06, Simon Marlow <[EMAIL PROTECTED]> wrote: > On 21 February 2006 17:21, Chris Kuklewicz wrote: > > > From the shooutout itself: > > > > > http://shootout.alioth.debian.org/gp4/benchmark.php?test=knucleotide&lan > g=ghc&id=3 > > > > and > > > > > http://shootout.alioth.debian.org/gp4/benchm

Re: [Haskell-cafe] Re: [Haskell] page renaming on the Haskell Wiki

2006-02-22 Thread Wolfgang Jeltsch
Am Mittwoch, 22. Februar 2006 13:00 schrieb [EMAIL PROTECTED]: > [...] > for example, i think that all libraries should be under Library or Libraries > root and so on. we started with filling up the pages, now we had enough > contents to see what the structure will serve better Be careful. A tit

[Haskell-cafe] Re: [Haskell] page renaming on the Haskell Wiki

2006-02-22 Thread Wolfgang Jeltsch
Am Mittwoch, 22. Februar 2006 10:57 schrieb Graham Klyne: > [...] Hello Graham, thank you for your answer. > I have been using the W3C web site now for many years, and the > inconsistencies you mention have never been a problem for me -- indeed, I > hadn't even noticed them until you mentioned t

Re[2]: [Haskell-cafe] Re: standard poll/select interface

2006-02-22 Thread Bulat Ziganshin
Hello John, Wednesday, February 22, 2006, 5:11:04 PM, you wrote: it seems that we don't understand each other. let's be concrete: my library reads and writes files. it uses read/write/recv/send to do this in blocking manner. now i want to have another operations what will have the SAME INTERFACE

RE: [Haskell-cafe] Re: Hashtable woes

2006-02-22 Thread Simon Marlow
On 21 February 2006 17:21, Chris Kuklewicz wrote: > From the shooutout itself: > > http://shootout.alioth.debian.org/gp4/benchmark.php?test=knucleotide&lan g=ghc&id=3 > > and > > http://shootout.alioth.debian.org/gp4/benchmark.php?test=knucleotide&lan g=ghc&id=2 > > (I forget the exact differe

[Haskell-cafe] Re: Emulating bash pipe/ process lib

2006-02-22 Thread Simon Marlow
Bulat Ziganshin wrote: Tuesday, February 21, 2006, 4:05:57 PM, you wrote: i'm not very interested to do something fascinating in this area. it seems that it is enough to do 1) non-blocking read of the entire buffer on input 2) flush buffer at each '\n' at output that should be enough to imp

Re: [Haskell-cafe] Re: Emulating bash pipe/ process lib

2006-02-22 Thread Bulat Ziganshin
Hello Simon, Tuesday, February 21, 2006, 4:05:57 PM, you wrote: >> i'm not very interested to do something fascinating in this area. it >> seems that it is enough to do >> >> 1) non-blocking read of the entire buffer on input >> 2) flush buffer at each '\n' at output >> >> that should be enough

[Haskell-cafe] Re: getChar + System.Cmd.system + threads causes hangups

2006-02-22 Thread Simon Marlow
Donn Cave wrote: On Tue, 21 Feb 2006, Simon Marlow wrote: The reason for the deadlock is because getChar is holding a lock on stdin, and System.Cmd.system needs to access the stdin Handle in order to know which file descriptor to dup as stdin in the child process (the stdin Handle isn't

Re: [Haskell-cafe] Re: standard poll/select interface

2006-02-22 Thread John Meacham
On Wed, Feb 22, 2006 at 03:28:26PM +0300, [EMAIL PROTECTED] wrote: > JM> Yeah, this is why I have held off on a specific design until we get a > JM> better idea of what the new IO library will look like. I am thinking it > JM> will have to involve some abstract event source type with primitive > JM

Re[2]: [Haskell-cafe] Re: standard poll/select interface

2006-02-22 Thread bulat . ziganshin
Hello Donn, Wednesday, February 22, 2006, 4:23:28 AM, you wrote: DC> Could an application reasonably choose between several dispatching DC> systems? For example, I'm working on a Macintosh here, where instead DC> of X11 Apple provides its NextStep based GUI with its own apparently DC> fairly wel

Re: [Haskell-cafe] Re: standard poll/select interface

2006-02-22 Thread bulat . ziganshin
Hello John, Wednesday, February 22, 2006, 3:32:34 AM, you wrote: >> I agree that a generic select/poll interface would be nice. If it was >> in terms of Handles though, that's not useful for implementing the I/O >> library. If it was in terms of FDs, that's not portable - we'd need a >> separ

Re: [Haskell-cafe] Re: [Haskell] page renaming on the Haskell Wiki

2006-02-22 Thread bulat . ziganshin
Hello Graham, Wednesday, February 22, 2006, 12:57:39 PM, you wrote: GK> How to do this in a wiki, I'm not sure, though I don't take that to mean we GK> shouldn't try. I think the mediawiki mechanism you mention is reasonable if not GK> ideal, though this would clearly be overwhelmed if page-ren

Re: [Haskell-cafe] Re: haskell programming guidelines

2006-02-22 Thread John Meacham
On Wed, Feb 22, 2006 at 01:14:41PM +0100, Christian Maeder wrote: > John Meacham wrote: > >f x = ... y ... where > >Just y = Map.lookup x theMap > > > >now if the lookup fails you automatically get an error message pointing > >to the exact line number of the failure. or if the failure messa

[Haskell-cafe] Re: haskell programming guidelines

2006-02-22 Thread Christian Maeder
Donald Bruce Stewart wrote: Perhas you'd like to put up a Style page on thew new Haskell wiki, perhaps under the Idioms category? I cannot promise it, but I'll try. If someone else is willing to do it, I would support this. Rob Dockins wrote: I understood that part of the guidelines as a pl

[Haskell-cafe] Re: [Haskell] page renaming on the Haskell Wiki

2006-02-22 Thread Graham Klyne
Wolfgang, [Switching to haskell-cafe] Re: [1] http://www.mail-archive.com/haskell@haskell.org/msg18352.html [2] http://www.mail-archive.com/haskell@haskell.org/msg18356.html [3] http://www.w3.org/Provider/Style/URI Wolfgang Jeltsch wrote (in [2]): > On the other hand, I think that the above W3C

[Haskell-cafe] Re: Array interface refactoring

2006-02-22 Thread bulat . ziganshin
Hello Alson, Tuesday, February 21, 2006, 11:33:49 PM, you wrote: AK> As a Haskell new-ish-bie, the various Array interfaces AK> seem a bit inconsistent and make learning/using arrays AK> complicated. I *do* understand how to use arrays in AK> Haskell, but I think that the interface could be AK>

Re: [Haskell-cafe] (Un)termination of overloading resolution

2006-02-22 Thread Ross Paterson
On Tue, Feb 21, 2006 at 07:13:17PM -0800, [EMAIL PROTECTED] wrote: > I'm afraid that may still be insufficient, as the following > counter-example shows. It causes GHC 6.4.1 to loop in the typechecking > phase. I haven't checked the latest GHC. The HEAD is more cautious: F.hs:12:0: Variable o