[Haskell-cafe] Re: Why functional programming matters

2008-01-25 Thread ChrisK
Simon Peyton-Jones wrote: 1. Small examples of actual code. I particularly like the lazy way of counting change example (also works for picking items off a menu). The code below show 3 approaches : a function for computing the coins used in each way as a verbose list a function for

Re: [Haskell-cafe] Re: Why functional programming matters

2008-01-25 Thread Wolfgang Jeltsch
Am Freitag, 25. Januar 2008 03:35 schrieb Conal Elliott: […] See http://haskell.org/haskellwiki/Reactive and http://haskell.org/yampa/ . Or better http://haskell.org/haskellwiki/Functional_Reactive_Programming which has come into existence recently. […] Best wishes, Wolfgang

[Haskell-cafe] Re: Why functional programming matters

2008-01-24 Thread Peter Hercek
Tim Chevalier wrote: On 1/23/08, Peter Hercek [EMAIL PROTECTED] wrote: Other things did not seem that great for me from the beginning. For example: referential transparency - just enforces what you can take care not to do yourself ...if you never make mistakes, that is. (e.g. in C# you just

Re: [Haskell-cafe] Re: Why functional programming matters

2008-01-24 Thread Maarten Hazewinkel
On 24 Jan 2008, at 10:45, Peter Hercek wrote: * safe STM ... and probably a lot of more goodies Especially STM would be a good point to elaborate on. Most big systems have issues around concurrency and state modification being broken. Anything that can reliably solve that problem is going

Re: [Haskell-cafe] Re: Why functional programming matters

2008-01-24 Thread Sebastian Sylvan
On Jan 24, 2008 9:45 AM, Peter Hercek [EMAIL PROTECTED] wrote: A lot of efficient algorithms we have are state based. And again probably more. Yes, and we can write those using the ST monad in Haskell. I think it's important to point this out, since some imperative programmers will just go

Re: [Haskell-cafe] Re: Why functional programming matters

2008-01-24 Thread Isaac Dupree
fewer frustratingly unsolvable bugs down-the-road? When I have bugs in my Haskell programs (and usually I get type errors instead), I've always found them eventually and they're either a silly mistake or I realize that I misunderstood the problem I was trying to solve (it needs to be solved a

Re: [Haskell-cafe] Re: Why functional programming matters

2008-01-24 Thread Lutz Donnerhacke
* Isaac Dupree wrote: fewer frustratingly unsolvable bugs down-the-road? I personally like the refactoring speed. Due to pureness it's easy to refactor and that's why I can generalize more and more often. ___ Haskell-Cafe mailing list

Re: [Haskell-cafe] Re: Why functional programming matters

2008-01-24 Thread Derek Elkins
On Thu, 2008-01-24 at 10:45 +0100, Peter Hercek wrote: Tim Chevalier wrote: On 1/23/08, Peter Hercek [EMAIL PROTECTED] wrote: Other things did not seem that great for me from the beginning. For example: referential transparency - just enforces what you can take care not to do yourself

Re: [Haskell-cafe] Re: Why functional programming matters

2008-01-24 Thread Robin Green
On Thu, 24 Jan 2008 10:29:23 -0600 Derek Elkins [EMAIL PROTECTED] wrote: Doing it in the IDE would a) require much more from most IDEs and b) be almost entirely useless. Most IDEs don't even get as far as parsing the code, even the the best rarely know much about the actual semantics of the

Re: [Haskell-cafe] Re: Why functional programming matters

2008-01-24 Thread John Lato
In addition to STM, another item that should interest serious programmers is forkIO. Lightweight threads that (unlike in Python) can use multiple cpu's. Coming from Python, I personally appreciate this. Using STM to handle concurrency issues often greatly simplifies multithreaded code.

Re: [Haskell-cafe] Re: Why functional programming matters

2008-01-24 Thread Don Stewart
jwlato: In addition to STM, another item that should interest serious programmers is forkIO. Lightweight threads that (unlike in Python) can use multiple cpu's. Coming from Python, I personally appreciate this. Using STM to handle concurrency issues often greatly simplifies multithreaded

[Haskell-cafe] Re: Why functional programming matters

2008-01-24 Thread Achim Schneider
Don Stewart [EMAIL PROTECTED] wrote: jwlato: In addition to STM, another item that should interest serious programmers is forkIO. Lightweight threads that (unlike in Python) can use multiple cpu's. Coming from Python, I personally appreciate this. Using STM to handle concurrency

[Haskell-cafe] Re: Why functional programming matters

2008-01-24 Thread ChrisK
Achim Schneider wrote: Don Stewart [EMAIL PROTECTED] wrote: jwlato: In addition to STM, another item that should interest serious programmers is forkIO. Lightweight threads that (unlike in Python) can use multiple cpu's. Coming from Python, I personally appreciate this. Using STM to handle

[Haskell-cafe] Re: Why functional programming matters

2008-01-24 Thread Achim Schneider
ChrisK [EMAIL PROTECTED] wrote: Achim Schneider wrote: Don Stewart [EMAIL PROTECTED] wrote: jwlato: In addition to STM, another item that should interest serious programmers is forkIO. Lightweight threads that (unlike in Python) can use multiple cpu's. Coming from Python, I

Re: [Haskell-cafe] Re: Why functional programming matters

2008-01-24 Thread Conal Elliott
On Jan 24, 2008 1:45 AM, Peter Hercek [EMAIL PROTECTED] wrote: [...] On the other side there are downsides like what to do instead of reactive GUIs? GUI is a big part for a lot of applications. [...] GUIs can be expressed in a *much* more direct and modular way in functional programming

[Haskell-cafe] Re: Why functional programming matters

2008-01-23 Thread Peter Hercek
Here are things I liked most (compared with standard imperative languages) when I started to learn functional programming: * algebraic types with pattern matching work nicely as tagged unions; doing a tagged union manually in C/C++/C# is a pain (there is no automatic tag (provided you dismiss

Re: [Haskell-cafe] Re: Why functional programming matters

2008-01-23 Thread Tim Chevalier
On 1/23/08, Peter Hercek [EMAIL PROTECTED] wrote: Other things did not seem that great for me from the beginning. For example: referential transparency - just enforces what you can take care not to do yourself ...if you never make mistakes, that is. (e.g. in C# you just cannot be sure some

Re: [Haskell-cafe] Re: Why functional programming matters

2008-01-23 Thread Don Stewart
catamorphism: On 1/23/08, Peter Hercek [EMAIL PROTECTED] wrote: Other things did not seem that great for me from the beginning. For example: referential transparency - just enforces what you can take care not to do yourself ...if you never make mistakes, that is. (e.g. in C# you just

Re: [Haskell-cafe] Re: Why functional programming matters

2008-01-23 Thread Thomas Schilling
On Wed, 2008-01-23 at 15:42 -0800, Don Stewart wrote: catamorphism: On 1/23/08, Peter Hercek [EMAIL PROTECTED] wrote: Other things did not seem that great for me from the beginning. For example: referential transparency - just enforces what you can take care not to do yourself