Re: [Haskell-cafe] attoparsec and backtracking

2013-03-16 Thread Roman Cheplyaka
* Niklas Hambüchen m...@nh2.me [2013-03-16 03:49:29+] I would agree that what attoparsec does for | of Alternative and mplus for MonadPlus is correct since e.g. the mplus laws say that a failure must be identity and therefore the following alternatives must be considered. I also find it

Re: [Haskell-cafe] Optimization flag changing result of code execution

2013-03-16 Thread Azeem -ul-Hasan
Hi Carter, Thank you for your help, but I can confirm that this is not due to floating point errors. My own hunch is that it is due to the way I am using random number generation from System.Random.MWC. To check it I wrote a version of mkNetwork function using random number generation

Re: [Haskell-cafe] Optimization flag changing result of code execution

2013-03-16 Thread Roman Cheplyaka
Perhaps the problem is in withSystemRandom, which uses unsafePerformIO? Does the problem persist if you seed your program with some predefined seed? Roman * Azeem -ul-Hasan aze...@live.com [2013-03-16 13:46:54+0500] Hi Carter, Thank you for your help, but I can confirm that this is

Re: [Haskell-cafe] Optimization flag changing result of code execution

2013-03-16 Thread Azeem -ul-Hasan
Nope that isn't the case either. Even if I make use of defaultSeed through create the problem still remains. The problem seems to be in the generation of a vector of (a,a) i.e in the part V.generateM ((round $ p*(fromIntegral $ l*z)) `div` 2) (\i- R.uniformR ((0,0) , (l-1,l-1)) gen) in line

[Haskell-cafe] ANN: Monad.Reader Issue 21

2013-03-16 Thread Edward Z. Yang
I am pleased to announce that Issue 21 of the Monad Reader is now available. http://themonadreader.files.wordpress.com/2013/03/issue21.pdf Issue 21 consists of the following two articles: * A Functional Approach to Neural Networks by Amy de Buitléir, Michael Russell, Mark Daly *

Re: [Haskell-cafe] ANNOUNCE: Win32-services

2013-03-16 Thread Ivan Perez
I am happy to see this implemented. Thanks Michael! On 15 March 2013 00:49, Michael Steele mikesteel...@gmail.com wrote: I uploaded a new packaged named Win32-services. This library is a partial binding to the Win32 System Services API. It's now easier to write Windows service applications in

[Haskell-cafe] ANNOUNCE: Ajhc 0.8.0.2 Release

2013-03-16 Thread Kiwamu Okabe
We are happy to announce Ajhc 0.8.0.2. It's first release announce for Ajhc. Major change on this release is ability to compile Haskell code for tiny CPU. There is demo on tiny CPU at https://github.com/ajhc/demo-cortex-m3. And you can watch demo movie at

Re: [Haskell-cafe] [jhc] ANNOUNCE: Ajhc 0.8.0.2 Release

2013-03-16 Thread John Meacham
I have merged your changes back into the main jhc tree. Thanks! John On Sat, Mar 16, 2013 at 5:28 AM, Kiwamu Okabe kiw...@debian.or.jp wrote: We are happy to announce Ajhc 0.8.0.2. It's first release announce for Ajhc. Major change on this release is ability to compile Haskell code for

Re: [Haskell-cafe] Maintaining lambdabot

2013-03-16 Thread James Cook
On Mar 15, 2013, at 5:33 PM, Jason Dagit dag...@gmail.com wrote: Do you know if the constraints on: regex-posix-0.95.1 regex-compat-0.95.1 Need to be what they are? Could we relax them without breaking anything? The constraints were added recently, and I believe they were a very

Re: [Haskell-cafe] [jhc] ANNOUNCE: Ajhc 0.8.0.2 Release

2013-03-16 Thread Joachim Breitner
Hi, Am Samstag, den 16.03.2013, 05:53 -0700 schrieb John Meacham: On Sat, Mar 16, 2013 at 5:28 AM, Kiwamu Okabe kiw...@debian.or.jp wrote: We are happy to announce Ajhc 0.8.0.2. I have merged your changes back into the main jhc tree. Thanks! John Great. Would it be possible for you two

[Haskell-cafe] ICFP 2013: Second Call for Papers

2013-03-16 Thread David Van Horn
= 18th ACM SIGPLAN International Conference on Functional Programming ICFP 2013 Boston, MA, USA, 25-27 September 2013 http://www.icfpconference.org/icfp2013

Re: [Haskell-cafe] attoparsec and backtracking

2013-03-16 Thread Evan Laforge
I think the mistake here is to parse something and then decide if its it valid. It should be the parser which decides whether its valid. So rather than: suffix - A.option ((:) $ A.letter_ascii) try: typ - A.choice [ {- list or valid suffix parsers -} ] return $

Re: [Haskell-cafe] Compiled program using OpenGL fails to trigger GPU switch on Mac, but works in GHCi

2013-03-16 Thread Jesper Särnesjö
On Thu, Mar 14, 2013 at 12:51 AM, Jesper Särnesjö sarne...@gmail.com wrote: In short, I have two programs, one written in Haskell [1] and one written in C [2], that consist of calls to the same functions, in the same order, to the same C library, but which do not exhibit the same behavior.

Re: [Haskell-cafe] attoparsec and backtracking

2013-03-16 Thread Evan Laforge
On Fri, Mar 15, 2013 at 8:49 PM, Niklas Hambüchen m...@nh2.me wrote: Is it not possible to add an alternative (no pun intended) to | that supports the semantics Evan wants? I assume it's the performance thing. Presumably it would need to pass an extra flag with to the failure continuation to

Re: [Haskell-cafe] [jhc] ANNOUNCE: Ajhc 0.8.0.2 Release

2013-03-16 Thread Kiwamu Okabe
Hi, On Sun, Mar 17, 2013 at 4:45 AM, Joachim Breitner m...@joachim-breitner.de wrote: Great. Would it be possible for you two to agree on a mode that allows Kiwamu to develop in his pace, but still avoid having a proper fork of jhc pushed to distros and users? Something like: Kiwamu hacks away

Re: [Haskell-cafe] attoparsec and backtracking

2013-03-16 Thread Niklas Hambüchen
@Evan Thanks for that link, I posted a somewhat longer argument in there. Personally, I'd love ||. On Sun 17 Mar 2013 02:02:44 GMT, Evan Laforge wrote: On Fri, Mar 15, 2013 at 8:49 PM, Niklas Hambüchen m...@nh2.me wrote: Is it not possible to add an alternative (no pun intended) to | that

[Haskell-cafe] Need some advice around lazy IO

2013-03-16 Thread C K Kashyap
Hi, I am working on an automation that periodically fetches bug data from our bug tracking system and creates static HTML reports. Things worked fine when the bugs were in the order of 200 or so. Now I am trying to run it against 3000 bugs and suddenly I see things like - too many open handles,