Re: [Haskell-cafe] Python?

2005-05-11 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 determined

Re: [Haskell-cafe] Python?

2005-05-11 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

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

2005-05-11 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] NumberTheory library

2005-05-11 Thread Bo Herlin
Hi [EMAIL PROTECTED] wrote: G'day all. Quoting Bo Herlin [EMAIL PROTECTED]: Great! I like this a LOT. ... I don't know if I count as a guru or not, but by all means. Want to discuss this on-list or off-list? The code kinda big already, 700 lines + an util-file, so i'll put it on-line at

Re: [Haskell-cafe] Python?

2005-05-11 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] Tables in Haskell (data model /business app pr ototyping)

2005-05-11 Thread Bayley, Alistair
From: Rene de Visser [mailto:[EMAIL PROTECTED] I would rather use Haskell also for the persistency, global constraint maintanence, etc... rather than using an external database. The only thing I have found so far is HApps, but I haven't figure out how that works. Is there

Re: [Haskell-cafe] Python?

2005-05-11 Thread Jacques Carette
Jerzy Karczmarczuk [EMAIL PROTECTED] wrote: Syntax for 3D arrays? Give me one single language where this is natural and immediate. I can think of 3: Mathematica, Maple and APL. But I hope you don't try to convince us that Mathematica is good at number crunching... For linear algebra, Maple,

RE: [Haskell-cafe] Tables in Haskell (data model /business app prototyping)

2005-05-11 Thread Rene de Visser
From: Bayley, Alistair [EMAIL PROTECTED] From: Rene de Visser [mailto:[EMAIL PROTECTED] I would rather use Haskell also for the persistency, global constraint maintanence, etc... rather than using an external database. What do you mean by external database? If you just mean on another I would

Re[2]: [Haskell-cafe] Python?

2005-05-11 Thread Bulat Ziganshin
Hello Jerzy, Wednesday, May 11, 2005, 3:40:51 PM, you wrote: JK I suppose that if somebody decides to use lambdas, he wants to do some JK functional programming, no? well, i am use this all the way :) simplified example of one usage: (allocate, shrink) - memoryAllocator buf size (buf,size) -

Re: [Haskell-cafe] Re: Type classes and definite types

2005-05-11 Thread Krasimir Angelov
Hi Bryn Keller, The solution for your problem is very simple. You just have to fetch all values as strings. In this way the library will do all required conversions for you. printRow stmt = do id - getFieldValue stmt ID code - getFieldValue stmt Code name - getFieldValue stmt Name

[Haskell-cafe] and what about AliceML?

2005-05-11 Thread fred
Hi, As long as this group seems to tolerate What about Haskell and language X? has anyone had any experience with AliceML? My initial impression is that it might be a nice tool for teaching fundamental concepts. ---fred ___ Haskell-Cafe mailing list

Re: [Haskell-cafe] and what about AliceML?

2005-05-11 Thread Daniel Carrera
fred wrote: As long as this group seems to tolerate What about Haskell and language X? As an aside... This group has been extremely tolerant of my newbie questions. I do want to say thank-you to everyone who has been explaining things to me. I've learned quite a bit about programming languages

Re: [Haskell-cafe] Python?

2005-05-11 Thread Pierre Barbier de Reuille
Jerzy Karczmarczuk a écrit : Pierre Barbier de Reuille wrote about Python and lambdas: Well, I would not recommand using lambda functions ! The main reason is they are limited in that they only accept expressions (ie. not statements) and you can end up with very ugly things (mainly because of

Re: [Haskell-cafe] Python?

2005-05-11 Thread karczma
Jacques Carette writes: Jerzy Karczmarczuk wrote: Syntax for 3D arrays? Give me one single language where this is natural and immediate. I can think of 3: Mathematica, Maple and APL. Well, you are the village specialist on Maple here,so I won't argue too long, but kill me, I can't see how Maple

Re: [Haskell-cafe] Python?

2005-05-11 Thread Donn Cave
On Wed, 11 May 2005, Jerzy Karczmarczuk wrote: Pierre Barbier de Reuille wrote about Python and lambdas: Well, I would not recommand using lambda functions ! The main reason is they are limited in that they only accept expressions (ie. not statements) and you can end up with very ugly things

Re: [Haskell-cafe] Python?

2005-05-11 Thread karczma
Tim Rowe writes: On 5/11/05, Jerzy Karczmarczuk [EMAIL PROTECTED] wrote: Give me one single language where [3-d arrays are] natural and immediate. I don't know how Matlab does it, but I find the C++ standard library vectorvectorvectorfloat entirely intuitive (apart, perhaps, for the need for

Re: [Haskell-cafe] Python?

2005-05-11 Thread Jacques Carette
[EMAIL PROTECTED] wrote: Jacques Carette writes: Jerzy Karczmarczuk wrote: Syntax for 3D arrays? Give me one single language where this is natural and immediate. I can think of 3: Mathematica, Maple and APL. I can't see how Maple makes things more *natural and immediate* than Matlab *in

Re: [Haskell-cafe] Python?

2005-05-11 Thread Lemming
Daniel Carrera wrote: 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? I learnt it some years ago to do some simple text processing. Eventually I used it for three small projects. I learnt to hate dynamic typing, I

[Haskell-cafe] subRegex bug?

2005-05-11 Thread S. Alexander Jacobson
Am I misunderstanding the regex docs? *MyMod subRegex (mkRegex \\. ) foo.bar blah foo*** Exception: Text.Regex.Posix.regcomp: error in pattern -Alex- __ S. Alexander Jacobson tel:917-770-6565 http://alexjacobson.com

Re: [Haskell-cafe] Python?

2005-05-11 Thread Michael Vanier
Date: Wed, 11 May 2005 13:06:51 +0200 From: Jerzy Karczmarczuk [EMAIL PROTECTED] Michael Vanier comments my defense of Matlab: I used objects, and even a lot of functional constructs. I don't see any reason to call it a creeping horror. It is quite homogeneous and simple, and is decently

[Haskell-cafe] Re: Python?

2005-05-11 Thread Aaron Denney
On 2005-05-11, Michael Vanier [EMAIL PROTECTED] wrote: Here at Caltech we teach Scheme first (for programming concepts), then students can go in several different directions. I remember the changeover from C first, and I think it was a mistake... -- Aaron Denney --

Re: [Haskell-cafe] NumberTheory library

2005-05-11 Thread John Meacham
On Wed, May 11, 2005 at 01:57:58PM -0500, Brian Smith wrote: On 5/10/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: The MTL might be deprecated soon, replaced by Iavor's library, for example. Is this just a rumor, or is this really the plan? Where is the best place to get lavor's library?

Re: [Haskell-cafe] NumberTheory library

2005-05-11 Thread ajb
G'day all. Quoting John Meacham [EMAIL PROTECTED]: Ack. I use the MTL quite extensivly in most of my projects. I hope it won't disapear from the standard libraries completely. For the record, I have no information that the MTL will disappear any time soon. However, the proposed roadmap is to