[Haskell-cafe] The fate of reduce() in Python was Re: Python?

2005-05-10 Thread Shae Matijs Erisson
Daniel Carrera <[EMAIL PROTECTED]> writes: > I had no idea that Python had these features. Future versions of Python won't have all those features, see: http://lambda-the-ultimate.org/node/view/587 This is specifically about the fabled Python 3000 which will be a backwards compatibility breaking

Re: [Haskell-cafe] Python?

2005-05-10 Thread Daniel Carrera
Quinn Dunkan wrote: Python has first class functions and lexical scoping, and encourages higher-order functions, though to a much lesser degree than a real functional language. I was surprised to hear about first class functions and higher order functions. So I googled for a bit, and I found somet

Re: [Haskell-cafe] Python?

2005-05-10 Thread Erik de Castro Lopo
Daniel Carrera wrote: > Erik de Castro Lopo wrote: > > > Its good for small scripting tasks. Its good for string processing. > > I find the dynamic typing a pain. > > What's dynamic typing? I can't say it any better than this: http://c2.com/cgi/wiki?DynamicTyping Basically, types are dete

[Haskell-cafe] Re: Haskell-Cafe Digest, Vol 21, Issue 27

2005-05-10 Thread Stijn De Saeger
Quinn Dunkan <[EMAIL PROTECTED]> wrote : > ... It is very natural to > write in a somewhat functional style, especially in regards to > sequence processing: higher order functions and listcomps provide the > processing and its built in generators and iterator protocol provide > some of the benefit

Re: [Haskell-cafe] Python?

2005-05-10 Thread Jerzy Karczmarczuk
Michael Vanier wrote: I have enough problems convincing people to learn Scheme. I've even had people beg me to teach them Matlab as a first programming language, because that is the only language that they needed to get their work done. Telling them that Matlab's programming language is a creepin

Re: [Haskell-cafe] Python?

2005-05-10 Thread Donn Cave
Quoth Daniel Carrera <[EMAIL PROTECTED]>: ... | I have a lady friend who wants to learn how to program. I just decided | to teach her Python for practical reasons: I think when you factor in practical reasons, it makes a lot of sense. Python's simplicity and suitability for beginners is vastly ov

Re: [Haskell-cafe] Python?

2005-05-10 Thread Daniel Carrera
Erik de Castro Lopo wrote: Its good for small scripting tasks. Its good for string processing. I find the dynamic typing a pain. What's dynamic typing? I have a lady friend who wants to learn how to program. I just decided to teach her Python for practical reasons: Its a great first language for

Re: [Haskell-cafe] NumberTheory library

2005-05-10 Thread ajb
G'day all. One more thing... Quoting Yitzchak Gale <[EMAIL PROTECTED]>: > o I think that in most of the places where you >fix the type as Int or Integer, you could leave >it polymorphic and avoid a lot of coercing. Even though it looks ugly, converting from an Int to an Integer is reall

Re: [Haskell-cafe] Python?

2005-05-10 Thread Michael Vanier
> Date: Tue, 10 May 2005 19:02:33 -0400 > From: Daniel Carrera <[EMAIL PROTECTED]> > > Hello, > > This might be a strange question to ask on a Haskell list, but I do want > to hear your opinions. What do you think of Python? > > To explain where this question is comming from: > > I have a lady

Re: [Haskell-cafe] Python?

2005-05-10 Thread Quinn Dunkan
On 5/10/05, Daniel Carrera <[EMAIL PROTECTED]> wrote: > Hello, > > This might be a strange question to ask on a Haskell list, but I do want > to hear your opinions. What do you think of Python? Python has first class functions and lexical scoping, and encourages higher-order functions, though to

Re: [Haskell-cafe] NumberTheory library

2005-05-10 Thread ajb
G'day all. Thanks for your suggestions. Some comments... Quoting Yitzchak Gale <[EMAIL PROTECTED]>: > o I think you are testing w' * w' < n each time, even >when you are repeating factors of the same prime p. >You only need to do that when you move to the next p Good point, thanks. >

Re: [Haskell-cafe] Python?

2005-05-10 Thread Erik de Castro Lopo
Daniel Carrera wrote: > Hello, > > This might be a strange question to ask on a Haskell list, but I do want > to hear your opinions. What do you think of Python? Its good for small scripting tasks. Its good for string processing. I find the dynamic typing a pain. > I have a lady friend who wan

Re: [Haskell-cafe] Python?

2005-05-10 Thread Daniel Carrera
[EMAIL PROTECTED] wrote: Plugin FOR WHAT? Sorry. OpenOffice.org :-) To teach how to program in a structured way? Yes. To teach how to program functionally? Hm. In a primitive sense, why not, but seriously - no. There are plenty of methods which update in place some objects, say x.append(y), etc. Th

Re: [Haskell-cafe] NumberTheory library

2005-05-10 Thread ajb
G'day all. Quoting Bo Herlin <[EMAIL PROTECTED]>: > Great! I like this a LOT. Thanks! > Im working on a framework for ranking and unranking things where primes > are just a tiny part: > > > data DCountable > > = Countable Integer > > | Uncountable > > deriving (Eq,Show) > > > > c

Re: [Haskell-cafe] Python?

2005-05-10 Thread Thomas Davie
4) She's interested in writing an OOo plugin some day. Python can do that. Plugin FOR WHAT? For OOo (OpenOffice.org) Bob ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Python?

2005-05-10 Thread karczma
Daniel Carrera writes: I have a lady friend who wants to learn how to program. I just decided to teach her Python for practical reasons: 1) Python has a nice IDE-ish thing. It's called "idle". It includes both a shell and an editor. The interface is simple and clear. There are others. PyCrust

[Haskell-cafe] Python?

2005-05-10 Thread Daniel Carrera
Hello, This might be a strange question to ask on a Haskell list, but I do want to hear your opinions. What do you think of Python? To explain where this question is comming from: I have a lady friend who wants to learn how to program. I just decided to teach her Python for practical reasons: 1

Re: Re[2]: [Haskell-cafe] Haskell for non-mathematicians (was: Specify array or list size?)

2005-05-10 Thread Sebastian Sylvan
On 5/10/05, Bulat Ziganshin <[EMAIL PROTECTED]> wrote: > Hello Sebastian, > > Tuesday, May 10, 2005, 8:39:23 PM, you wrote: > > SS> I think that runtime error > >> messages given in terms of VALUES instead of compile-time error > >> messages given in terms of TYPES are easier to understand for n

Re: [Haskell-cafe] Haskell for non-mathematicians (was: Specify array or list size?)

2005-05-10 Thread karczma
Bulat Ziganshin discusses with SS: SS> Types is a very important concept and I think that should be SS> emphasized in the first lecture. If one goes through types _and_ SS> values from the very beginning a strongly typed language will be of SS> the same aid to beginners as it is to experts. imv

Re[2]: [Haskell-cafe] Haskell for non-mathematicians (was: Specify array or list size?)

2005-05-10 Thread Bulat Ziganshin
Hello Sebastian, Tuesday, May 10, 2005, 8:39:23 PM, you wrote: SS> I think that runtime error >> messages given in terms of VALUES instead of compile-time error >> messages given in terms of TYPES are easier to understand for novice. >> also, strict regulations on datatypes are needed for profes

[Haskell-cafe] hackage, cabal-get, and security

2005-05-10 Thread Isaac Jones
Followups to [EMAIL PROTECTED], please. I'm working with Lemmih on the designs for Hackage and Cabal-Get. He's a real trooper, since I'm a total "customer" and have hardly written a line of code for these tools, but keep coming up with new requirements. The basic interaction we would like is this

Re: [Haskell-cafe] Haskell for non-mathematicians (was: Specify array or list size?)

2005-05-10 Thread Sebastian Sylvan
On 5/10/05, Bulat Ziganshin <[EMAIL PROTECTED]> wrote: I think that runtime error > messages given in terms of VALUES instead of compile-time error > messages given in terms of TYPES are easier to understand for novice. > also, strict regulations on datatypes are needed for professional > program

Re: [Haskell-cafe] NumberTheory library

2005-05-10 Thread Yitzchak Gale
As promised, here's the first attempt: darcs get http://andrew.bromage.org/darcs/numbertheory/ A few small comments about the function "factor" in Prime.hs: o I think you are testing w' * w' < n each time, even when you are repeating factors of the same prime p. You only need to do that

Re: [Haskell-cafe] Haskell for non-mathematicians (was: Specify array or list size?)

2005-05-10 Thread Bulat Ziganshin
Hello Graham, Monday, May 09, 2005, 2:45:06 PM, you wrote: GK> When I read the above, I found myself thinking of two styles of Haskell GK> programming: on one hand there are some, many on these mailing lists, but GK> I pick Oleg as an exemplar, who continue to baffle me with the amazing GK> tr

Re: [Haskell-cafe] NumberTheory library

2005-05-10 Thread Bo Herlin
> Well, part of what I was doing was experimenting with what a library like > this should look like, even more than what it should do. For some reason, > I kind of like writing this: > > *Math.Prime> is Prime 42 > False > > instead of this: > > *Math.Prime> isPrime 42 > False Gre