Re: Tuple-like constructors

2006-02-04 Thread Robert Dockins
On Feb 4, 2006, at 7:56 PM, Pablo Barenbaum wrote: An awkwardness in Haskell I would like to see solved in Haskell', is the fact that the behavior of tuple-like constructors must be either built-in or "limited". One thing I recall seeing on haskell-cafe some time back was the notion that an

Re: [Fwd: Re: Haskell-prime Digest, Vol 2, Issue 6]

2006-02-04 Thread Ross Paterson
On Thu, Feb 02, 2006 at 03:53:11PM +, Henrik Nilsson wrote: > What about the "FD Conditions" as defined in the paper by Sulzman, Duck, > Peyton-Jones and Stuckey you referred to? (Mark Jones original > conditions + a so called "bound variable condition"). > If those conditions are imposed, one

Tuple-like constructors

2006-02-04 Thread Pablo Barenbaum
An awkwardness in Haskell I would like to see solved in Haskell', is the fact that the behavior of tuple-like constructors must be either built-in or "limited". As far as I can see, these are two issues: 1. There is not a way, for the programmer, to define infinite constructors for infinite assoc

Re: The dreaded M-R

2006-02-04 Thread Ben Rudiak-Gould
Having thought about this for a while I'm coming down on the side of keeping some sort of monomorphism restriction, for the following reason. It's hard to bound the space consumption of a Haskell program, but easy to bound its time consumption: its asymptotic runtime will be the same as or bet

Re: Priorities

2006-02-04 Thread Benjamin Franksen
On Friday 03 February 2006 08:52, Tomasz Zielonka wrote: > On Thu, Feb 02, 2006 at 01:05:57PM +, Ross Paterson wrote: > > Personally, I'm not sure about caseless underscore, concurrency, > > natural numbers and parallel list comprehensions. > > There is one more reason to leave concurrency out

Re: Parallel list comprehensions

2006-02-04 Thread Andrew Pimlott
On Sat, Feb 04, 2006 at 06:31:56PM +, Jon Fairbairn wrote: > There ought to be a list_product somewhere (I mean [1..] > `list_product` [4..] == > [(1,4),(2,4),(1,5),(3,4),(2,5),(1,6),...]). Is there? This is called "fair conjunction" in "Backtracking, Interleaving, and Terminating Monad Transf

Re: objective data on use of extensions

2006-02-04 Thread Isaac Jones
Ian Lynagh <[EMAIL PROTECTED]> writes: > On Fri, Feb 03, 2006 at 11:38:09AM -0800, Isaac Jones wrote: >> I would like to strive to find objective data on the use of >> extensions. I started a table here which summarizes how popular >> extensions are in real-life code. We need more data points, t

Re: Parallel list comprehensions

2006-02-04 Thread Cale Gibbard
cartesian xs ys = map (\[x,y] -> (x,y)) $ sequence [xs,ys] On 04/02/06, Jan-Willem Maessen <[EMAIL PROTECTED]> wrote: > > On Feb 4, 2006, at 1:31 PM, Jon Fairbairn wrote: > > ... > > There ought to be a list_product somewhere (I mean [1..] > > `list_product` [4..] == > > [(1,4),(2,4),(1,5),(3,4),(

Re: Parallel list comprehensions

2006-02-04 Thread Jan-Willem Maessen
On Feb 4, 2006, at 1:31 PM, Jon Fairbairn wrote: ... There ought to be a list_product somewhere (I mean [1..] `list_product` [4..] == [(1,4),(2,4),(1,5),(3,4),(2,5),(1,6),...]). Is there? Not that I know of, but here's one which handles finite lists correctly; it'd be a nice addition to Data

Re: Parallel list comprehensions

2006-02-04 Thread Tomasz Zielonka
On Sat, Feb 04, 2006 at 11:58:15AM -0800, John Meacham wrote: > On Sat, Feb 04, 2006 at 03:11:10PM +0100, John Hughes wrote: > > I noticed ticket #55--add parallel list comprehensions--which according to > > the ticket, will probably be adopted. I would argue against. > > I disagree. :) I use them

Re: Parallel list comprehensions

2006-02-04 Thread John Meacham
On Sat, Feb 04, 2006 at 03:11:10PM +0100, John Hughes wrote: > I noticed ticket #55--add parallel list comprehensions--which according to > the ticket, will probably be adopted. I would argue against. I disagree. :) I use them all the time and find them very useful. however, I do agree with some

Re: Priorities

2006-02-04 Thread John Meacham
On Sat, Feb 04, 2006 at 01:40:26PM +0300, Bulat Ziganshin wrote: > GHC's libs (including handling of Handles) check "threaded" at > run-time just to have one common compiled library instead of two ones Yeah, but I don't expect a common compiled library between different implementations. Jo

Re: Parallel list comprehensions

2006-02-04 Thread Stefan Holdermans
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I noticed ticket #55--add parallel list comprehensions--which according to the ticket, will probably be adopted. I would argue against. [...] For what's it worth: I totally agree with John. Not only does this seems to me like a feature that'll

Re: Parallel list comprehensions

2006-02-04 Thread Jan-Willem Maessen
On Feb 4, 2006, at 9:11 AM, John Hughes wrote: I noticed ticket #55--add parallel list comprehensions--which according to the ticket, will probably be adopted. I would argue against. ... I tend to agree. But to back myself up, I thought I'd do an informal survey of uses of "zip" or "zipW

Re: Parallel list comprehensions

2006-02-04 Thread Jon Fairbairn
On 2006-02-04 at 15:11+0100 John Hughes wrote: > I noticed ticket #55--add parallel list comprehensions--which according to > the ticket, will probably be adopted. I would argue against. I also agree. > Firstly: because in its more general forms the notation is confusing. Try > this example: >

Re: Parallel list comprehensions

2006-02-04 Thread Andres Loeh
> I noticed ticket #55--add parallel list comprehensions--which according to > the ticket, will probably be adopted. I would argue against. [Several good points removed.] I agree. Cheers, Andres ___ Haskell-prime mailing list Haskell-prime@haskell.or

Re: [Haskell-cafe] Re[2]: strict Haskell dialect

2006-02-04 Thread Jan-Willem Maessen
On Feb 3, 2006, at 8:16 PM, Brian Hulley wrote: Jan-Willem Maessen wrote: I pointed out some problems with strict Haskell in a recent talk, but I think it'd be worth underscoring them here in this forum. Is the text of this talk or points raised in it available online anywhere? There i

Re: objective data on use of extensions

2006-02-04 Thread Ian Lynagh
On Fri, Feb 03, 2006 at 11:38:09AM -0800, Isaac Jones wrote: > I would like to strive to find objective data on the use of > extensions. I started a table here which summarizes how popular > extensions are in real-life code. We need more data points, though. > > http://hackage.haskell.org/trac/h

Re: FilePath as ADT

2006-02-04 Thread Marcin 'Qrczak' Kowalczyk
Axel Simon <[EMAIL PROTECTED]> writes: > The solution of representing a file name abstractly is also used by > the Java libraries. I think it is not. Besides using Java UTF-16 strings for filenames, there is the File class, but it also uses Java strings. The documentation of listFiles() says that

Re: Parallel list comprehensions

2006-02-04 Thread Duncan Coutts
On Sat, 2006-02-04 at 15:11 +0100, John Hughes wrote: > I noticed ticket #55--add parallel list comprehensions--which according to > the ticket, will probably be adopted. I would argue against. Can I second this? The only time I ever used a parallel list comprehension was by accident. I accidenta

Re[2]: strict Haskell dialect

2006-02-04 Thread Bulat Ziganshin
Hello Tomasz, Saturday, February 04, 2006, 12:39:38 PM, you wrote: >> > make a strict Haskell dialect. TZ> I am with you. If Haskell switches to strictness, as i said, strict _dialect_ is interesting for optimization, moving from other languages and making strict variants of data structures --

Re[3]: give equal rights to types and classes! :)

2006-02-04 Thread Bulat Ziganshin
Hello Dave, Saturday, February 04, 2006, 3:52:46 AM, you wrote: >> Now i'm trying to generalize my functions parameters/results to type >> classes instead of single types. for example, getFileSize function can >> return any numeric value, be it Integer, Word or Int64. This, >> naturally, results i

Re[2]: give equal rights to types and classes! :)

2006-02-04 Thread Bulat Ziganshin
Hello Marcin, Saturday, February 04, 2006, 2:23:50 AM, you wrote: >> if my idea was incorporated in Haskell, this change don't require >> even changing signatures of most functions working with arrays - >> just Array type become Array interface, what a much difference? What would 'Eq -> Eq -> Ord

Re[2]: Priorities

2006-02-04 Thread Bulat Ziganshin
Hello John, Friday, February 03, 2006, 8:11:48 PM, you wrote: >> Yes. Plus, I'd say, the presence of threading primitives that return >> certain well-defined exceptions or something along those lines, so that >> it's not necessary to know whether multithreading is supported at >> compile time.

Parallel list comprehensions

2006-02-04 Thread John Hughes
I noticed ticket #55--add parallel list comprehensions--which according to the ticket, will probably be adopted. I would argue against. Firstly: because in its more general forms the notation is confusing. Try this example: [(i,j,k) | i<-[1..3], j<-[1..3] | k <- [1..9]] In general it's hard to

Re: strict Haskell dialect

2006-02-04 Thread Ben Rudiak-Gould
Wolfgang Jeltsch wrote: Since laziness often allows you to solve problems so elegantly, I'm really scared of the idea of a "Strict Haskell"! :-( Is laziness really so "unreal" that real-world programmers have to see it as an enemy which they have to fight against? Non-strictness gives you so

Re: strict Haskell dialect

2006-02-04 Thread Ben Rudiak-Gould
Chris Kuklewicz wrote: Weak uses seq to achieve WHNF for it's argument newtype Weak a = WeakCon {runWeak :: a} mkWeak x = seq x (WeakCon x) unsafeMkWeak x = WeakCon x This doesn't actually do what you think it does. mkWeak and unsafeMkWeak are the same function. mkWeak 123 = seq 123 (W

Re: strict Haskell dialect

2006-02-04 Thread Tomasz Zielonka
On Thu, Feb 02, 2006 at 11:46:56PM +0100, Wolfgang Jeltsch wrote: > Am Mittwoch, 1. Februar 2006 11:49 schrieb Bulat Ziganshin: > > [...] > > > i had one idea, what is somewhat corresponding to his discussion: > > > > make a strict Haskell dialect. implement it by translating all > > expressions o