Re: [Haskell-cafe] haskellwiki and Project Euler

2008-02-24 Thread Radosław Grzanka
2008/2/24, Daniel Fischer [EMAIL PROTECTED]: Hi all, I try not to be too rude, although I'm rather disgusted. I know there are several sites out on the web where solutions to PE problems are given. That is of course absolutely against the sporting spirit of Project Euler, Actually, I've

Re: [Haskell-cafe] haskellwiki and Project Euler

2008-02-24 Thread Cale Gibbard
Hello, It seems that I'm getting sucked into this argument solely due to my unwillingness to allow people to damage useful content that has been added to the Haskell wiki. This started a couple of weeks ago when a user by the name Marypoppins decided to arbitrarily remove all the Euler Problems

[Haskell-cafe] Binary IEEE floating point format for AMQP

2008-02-24 Thread Paul Johnson
I'm working on an implementation of the framing layer for AMQP (www.amqp.org). I almost had 0.9 finished when I found they had released the spec for 0.10, so I have to redo quite a lot of work. Amongst the new features of 0.10 are wire formats for floating point. These are the 4 and 8 byte

Re: [Haskell-cafe] haskellwiki and Project Euler

2008-02-24 Thread Philippa Cowderoy
On Sun, 24 Feb 2008, Daniel Fischer wrote: Agreed, and the page with the code may indeed be considered a valid contribution. However, it certainly would be more valuable if it wasn't bare code, but also included explanations of the mathematical or programmatical ideas behind it. The

Re: [Haskell-cafe] haskellwiki and Project Euler

2008-02-24 Thread Rodrigo Queiro
The only time I have found the solutions page useful is when I was working on problem 100, which I'd been thinking about on and off for several months. Eventually, I gave up and looked at the solution there, and was absolutely none the wiser as to how it was solved! I thought about it more over

Re: [Haskell-cafe] haskellwiki and Project Euler

2008-02-24 Thread Cale Gibbard
On 24/02/2008, Daniel Fischer [EMAIL PROTECTED] wrote: Am Sonntag, 24. Februar 2008 11:37 schrieb Cale Gibbard: This is a legitimate concern. If the copyright of the original authors can be proved, said solutions should indeed be removed. PE has a share-alike license, the very least to be

Re: [Haskell-cafe] Haskell + Windows Mobile?

2008-02-24 Thread Felix Martini
Bulat Ziganshin wrote: is there any haskell implementation for Windows Mobile? does they are support creation of GUI apps and internet networking features? CeGCC (http://cegcc.sourceforge.net/) is a cross compiler for Windows CE, so it's possible to port GHC to Windows Mobile with some

Re: [Haskell-cafe] haskellwiki and Project Euler

2008-02-24 Thread Philippa Cowderoy
On Sun, 24 Feb 2008, Daniel Fischer wrote: b) posting C/C++ code there indicates that the reason for that is to be a spoil-sport, not to further learning/thinking Haskell. No, it doesn't. It provides code that people can port - an obvious step in building a more complete wiki page. --

Re: [Haskell-cafe] haskellwiki and Project Euler

2008-02-24 Thread Philippa Cowderoy
On Sun, 24 Feb 2008, Daniel Fischer wrote: Hi all, I try not to be too rude, although I'm rather disgusted. I know there are several sites out on the web where solutions to PE problems are given. That is of course absolutely against the sporting spirit of Project Euler, but hey, not all

Re: [Haskell-cafe] haskellwiki and Project Euler

2008-02-24 Thread Chaddaï Fouché
2008/2/24, Rodrigo Queiro [EMAIL PROTECTED]: The only time I have found the solutions page useful is when I was working on problem 100, which I'd been thinking about on and off for several months. Eventually, I gave up and looked at the solution there, and was absolutely none the wiser as to

Re: [Haskell-cafe] Binary IEEE floating point format for AMQP

2008-02-24 Thread Stefan O'Rear
On Sun, Feb 24, 2008 at 12:21:00PM +, Paul Johnson wrote: I'm working on an implementation of the framing layer for AMQP (www.amqp.org). I almost had 0.9 finished when I found they had released the spec for 0.10, so I have to redo quite a lot of work. Amongst the new features of 0.10

Re: [Haskell-cafe] haskellwiki and Project Euler

2008-02-24 Thread Cale Gibbard
On 24/02/2008, Chaddaï Fouché [EMAIL PROTECTED] wrote: 2008/2/24, Rodrigo Queiro [EMAIL PROTECTED]: That said, I vote to keep the solutions (providing they are written by the page editor) since IMO they do no harm. I agree with this (I personally contributed some small solutions and

Re: [Haskell-cafe] Graphical graph reduction

2008-02-24 Thread Jacques Carette
I think HOPS is what you are looking for http://www.cas.mcmaster.ca/~kahl/HOPS/ It may advertize itself otherwise, but the main thing you 'see' when running programs in fully explicit mode is exactly all the graph reductions. Jacques ___

Re: [Haskell-cafe] haskellwiki and Project Euler

2008-02-24 Thread Chaddaï Fouché
2008/2/24, Cale Gibbard [EMAIL PROTECTED]: I encourage you to put your solutions back up, that would be good. Referencing OEIS is a bit of a cheesy way to do things. (Though if it's going to be done, one could at least make use of the excellent Math.OEIS library :) Indeed !! But I don't

Re: [Haskell-cafe] haskellwiki and Project Euler

2008-02-24 Thread Rodrigo Queiro
What really puzzles me is that while Dan referred to the sporting spirit of PE, this really doesn't seem to be a spirit embodied by many of the users. Reading through the forum will reveal the first few posts to be of the form wrote a crappy brute force solver for the first few terms, searched

Re: [Haskell-cafe] how to catch keyboard interrupts?

2008-02-24 Thread Ryan Ingram
This is pretty cool, but I have one warning: On Sat, Feb 23, 2008 at 4:37 PM, Uwe Hollerbach [EMAIL PROTECTED] wrote: data MyInterrupt = MyInt Int instance Typeable MyInterrupt where typeOf x = typeOf (0 :: Int) I am pretty sure that this makes Dynamic unsound; you could accidentally

Re: [Haskell-cafe] how to catch keyboard interrupts?

2008-02-24 Thread Uwe Hollerbach
Thanks, I'll try that. -- Uwe On 2/24/08, Ryan Ingram [EMAIL PROTECTED] wrote: This is pretty cool, but I have one warning: On Sat, Feb 23, 2008 at 4:37 PM, Uwe Hollerbach [EMAIL PROTECTED] wrote: data MyInterrupt = MyInt Int instance Typeable MyInterrupt where typeOf x =

Re: [Haskell-cafe] Graphical graph reduction

2008-02-24 Thread Cale Gibbard
Is there any place that can we download the HOPS program itself? It unfortunately doesn't seem available from that page. On 24/02/2008, Jacques Carette [EMAIL PROTECTED] wrote: I think HOPS is what you are looking for http://www.cas.mcmaster.ca/~kahl/HOPS/ It may advertize itself otherwise,

Re: [Haskell-cafe] haskellwiki and Project Euler

2008-02-24 Thread Yitzchak Gale
Project Euler is excellent, lots of fun, and rewarding. Thanks to Daniel and all the other members of the team. Project Euler problems, by their nature, also happen to be excellent material for teaching and learning Haskell. Having various solutions to them on the wiki is a valuable resource for

Re: [Haskell-cafe] Graphical graph reduction

2008-02-24 Thread dainichi
Thank you all for showing interest and responding. Check out http://thyer.name/lambda-animator/. Requires Java. Wow, this is SUCH a cool tool. Best discovery in a long time! I think I need to brush up on my lambda-calculus, because it took me some time to figure out what settings to use to get

[Haskell-cafe] parsing c

2008-02-24 Thread Evan Martin
I'd like to parse some C headers for a toy project. It seems like c2hs probably has the functionality I want, but it's not packaged up as a library. So two questions: Is there an alternative C-parsing library? Has anyone looked into librarifying c2hs's parser?

Re: [Haskell-cafe] A little toy of Haskell Trivia

2008-02-24 Thread Steve Lihn
Ross, I changed the query to count(distinct package) and indeed the noises of same package imports are filtered out. The two top-10 lists now look somewhat similar. GHC only: http://haskell.ecoin.net/cgi-bin/modules.pl?src=ghc 1 Control.Monad 22 2 Data.Char 20 3 System.IO 17 4 Data.List 16 5

Re: [Haskell-cafe] parsing c

2008-02-24 Thread Adam Langley
On Sun, Feb 24, 2008 at 4:08 PM, Evan Martin [EMAIL PROTECTED] wrote: So two questions: Is there an alternative C-parsing library? You could use gcc-xml[1] with one of the various XML parsers. [1] http://www.gccxml.org/HTML/Index.html -- Adam Langley [EMAIL PROTECTED]

Re: [Haskell-cafe] parsing c

2008-02-24 Thread Bertram Felgenhauer
Evan Martin wrote: So two questions: Is there an alternative C-parsing library? Has anyone looked into librarifying c2hs's parser? I have split c2hs into three packages once, the remains of CTK that it uses, the C parser and pretty printer, and c2hs itself. (I also tried to give the modules

[Haskell-cafe] Re: static constants -- ideas?

2008-02-24 Thread Don Stewart
jay: Don Stewart [EMAIL PROTECTED]: jay: I also have constants that are too large to compile. I am resigned to loading them from data files--other solutions seem even worse. ... Data.Binary eases the irritation somewhat. Did you try bytestring literals (and maybe parsing them in-memory

[Haskell-cafe] placeholders in hsql

2008-02-24 Thread Roman Cheplyaka
Is there an ability to use placeholders in SQL statement using hsql? (Actually I'm interested in SQLite.) E.g. INSERT INTO sales (product_code, qty, price) VALUES (?, ?, ?) and then supply values that will be escaped and inserted in place of each '?'. -- Roman I. Cheplyaka ::