[Haskell-cafe] Converting Emacs syntax coloured Haskell code to HTML

2007-08-14 Thread Peter Verswyvelen
I noticed many code snippets on the wiki that have syntax colouring. How is this done? Can I convert syntax coloured code from Emacs to HTML? I'm using the Haskell mode for Emacs to get the syntax colouring. I'm writing a monads for C# programmers tutorial (oh no) and would

Re: [Haskell-cafe] Problem with question 3 about knights andknavesonw ikipedia

2007-08-10 Thread Peter Verswyvelen
the second answer must have been Yes otherwise the logician did not have enough information to solve the problem (because two cases still remain). Gee. But it was good Haskell practice ;-) (John is a knave ,Bill is a knight,Yes,Yes) - Oorspronkelijk bericht - Van: Peter Verswyvelen [mailto

Re[2]: [Haskell-cafe] Pure functional GUI (was a regressive view of support for imperativeprogramming in Haskell)

2007-08-09 Thread 'Peter Verswyvelen'
LOL. Yeah you are correct I guess. Oh well ;-) -Original Message- From: Bulat Ziganshin [mailto:[EMAIL PROTECTED] Sent: Thursday, August 09, 2007 7:30 AM To: Peter Verswyvelen Cc: Donn Cave; haskell-cafe@haskell.org Subject: Re[2]: [Haskell-cafe] Pure functional GUI (was a regressive

[Haskell-cafe] Problem with question 3 about knights and knaves on wikipedia

2007-08-09 Thread Peter Verswyvelen
I was writing some haskell code for fun to solve some knights and knaves problems, and I have troubles with http://en.wikipedia.org/wiki/Knights_and_knaves#Question_3 So knights always tell the truth and knaves always lie. John and Bill are two persons, but you don't know what they are, and you

RE: [Haskell-cafe] Pure functional GUI

2007-08-09 Thread Peter Verswyvelen
Indeed - the *hard* part seems to be figuring out how to run Glade on Windoze... I did not dare to ask this question because I could not believe this was hard... So anybody know how to do this? Run Glade on Window$? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On

RE: [Haskell-cafe] Pure functional GUI

2007-08-09 Thread Peter Verswyvelen
. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Radoslaw Grzanka Sent: Thursday, August 09, 2007 10:22 PM To: Haskell-Cafe@haskell.org Subject: Re: [Haskell-cafe] Pure functional GUI 2007/8/9, Peter Verswyvelen [EMAIL PROTECTED]: Indeed - the *hard* part

RE: [Haskell-cafe] Problem with question 3 about knights and knaves onw ikipedia

2007-08-09 Thread Peter Verswyvelen
Indeed, I missed that. This rules out the first answer is no But I still keep the 3 other solutions then :( (John is a knight,Bill is a knight,Yes,No ) (John is a knave ,Bill is a knight,Yes,Yes) (John is a knave ,Bill is a knave ,Yes,No ) Any more help (or just the solution, I give up) is very

re: [Haskell-cafe] Pure functional GUI (was a regressive view of support for imperativeprogramming in Haskell)

2007-08-08 Thread Peter Verswyvelen
As a newbie (okay I will not write this again, you all know I'm a newbie by now ;-), I don't understood what the problem of a pure functional GUI is. To me, having an imperative background, a graphical application is just a big tree of data that evolves when events from the OS come in. (this

Re: [Haskell-cafe] Pure functional GUI (was

2007-08-08 Thread Peter Verswyvelen
. - Oorspronkelijk bericht - Van: Duncan Coutts [mailto:[EMAIL PROTECTED] Verzonden: woensdag, augustus 8, 2007 09:36 PM Aan: 'Peter Verswyvelen' CC: 'Donn Cave', haskell-cafe@haskell.org Onderwerp: re: [Haskell-cafe] Pure functional GUI (was a regressive view of support for imperativeprogramming

Re: [Haskell-cafe] Newbie question about tuples

2007-07-15 Thread Peter Verswyvelen
Donald: Yeah, there's some known low level issues in the code generator regarding heap and stack checks inside loops, and the use of registers on x86. But note this updated paper, http://www.cse.unsw.edu.au/~chak/papers/CLPKM07.html Add another core to your machine and it is no longer 4x

RE: [Haskell-cafe] Newbie question about tuples

2007-07-15 Thread Peter Verswyvelen
Add another core to your machine and it is no longer 4x slower :) Add 15 more cores and its really no longer 4x slower : Maybe this is yet another newbie stupid question, but do you mean that GHC does automatic multi-threading? (Haskell seems very suitable for No, though that would be nice!

Re: Re[4]: [Haskell-cafe] Newbie question about tuples

2007-07-14 Thread Peter Verswyvelen
Thanks Bulat, but now you scattered my hopes that GHC would magically do all these optimizations for me ;-) I must say that although the performance of Haskell is not really a concern to me, I was a bit disappointed that even with all the tricks of the state monad, unboxing, and

Re: [Haskell-cafe] Haskell's

2007-07-03 Thread Peter Verswyvelen
Ah, thanks for the correction. So if I understand it correctly, this is currying: when f :: (a,b) - c then g :: a - (b,c) is the curried form of f? So currying has to do with tuples? And partial application is just leaving away some tail arguments? - Oorspronkelijk bericht -

Re: [Haskell-cafe] Haskell's currying and partial application

2007-07-03 Thread Peter Verswyvelen
this time... curry :: ((a, b) - c) - a - b - c is not really clear from the article to me... - Oorspronkelijk bericht - Van: Henning Thielemann [mailto:[EMAIL PROTECTED] Verzonden: dinsdag, juli 3, 2007 01:48 PM Aan: 'Peter Verswyvelen' CC: Haskell-Cafe@haskell.org Onderwerp: Re

RE: [Haskell-cafe] Haskell's currying and partial application

2007-07-03 Thread Peter Verswyvelen
? ;) -Original Message- From: Henning Thielemann [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 03, 2007 3:21 PM To: Peter Verswyvelen Cc: Haskell-Cafe@haskell.org Subject: Re: [Haskell-cafe] Haskell's currying and partial application On Tue, 3 Jul 2007, Peter Verswyvelen wrote

Re: [Haskell-cafe] Useful IDE features -

2007-06-19 Thread Peter Verswyvelen
That looks nice, just unfortunate you need to cast to ::Float in homer2?Age::Float. I don't see why this is needed, but I must say I don't understand your code completely yet, working on that :) Also, wouldn't this approach be less performant? Or is GHC that good that ist compiles away all

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

2007-06-16 Thread Peter Verswyvelen
That's just my point. Although I have no practical experience with Haskell (besides writing a simple L-System using HOpenGL), from what I've read Haskell is indeed much better than typical OO languages... So it *deserves* an easy entry level IDE that will get many many more people started with

<    2   3   4   5   6   7