Re: [Haskell-cafe] Compiling arbitrary Haskell code

2013-10-11 Thread Jason Dagit
On Fri, Oct 11, 2013 at 1:30 PM, Christopher Done wrote: > Is there a definitive list of things in GHC that are unsafe to > _compile_ if I were to take an arbitrary module and compile it? > > E.g. off the top of my head, things that might be dangerous: > > * TemplateHaskell/QuasiQuotes -- obviousl

Re: [Haskell-cafe] Haskell Logo Macbook Decal

2013-10-01 Thread Jason Dagit
On Tue, Oct 1, 2013 at 3:50 PM, Kyle Hanson wrote: > I ordered mine! > > Does anyone know if there is any place where I could order pre-made > Haskell t-shirt that benefits haskell.org too? > I don't know where, but I just wanted to say thank you to both you and Ryan and everyone else who buys o

Re: [Haskell-cafe] Richard Bird and the fast nub function

2013-09-29 Thread Jason Dagit
On Sun, Sep 29, 2013 at 1:40 PM, Henning Thielemann < lemm...@henning-thielemann.de> wrote: > > In Richard Bird's "Functional Pearls in Algorithm Design" there is chapter > 10 "Removing duplicates" which is about a fast and sorting variant of > 'nub'. After reading the introduction of the chapter

Re: [Haskell-cafe] Poll & plea: State of GUI & graphics libraries in Haskell

2013-09-27 Thread Jason Dagit
On Thu, Sep 26, 2013 at 8:32 PM, Conal Elliott wrote: > I'm polling to see whether there are will and expertise to reboot graphics > and GUIs work in Haskell. I miss working on functional graphics and GUIs in > Haskell, as I've been blocked for several years (eight?) due to the absence > of low-l

Re: [Haskell-cafe] definition of the term "combinator"

2013-08-23 Thread Jason Dagit
On Fri, Aug 23, 2013 at 9:09 PM, damodar kulkarni wrote: > Hello, > The word "combinator" is used several times in the Haskell community. e.g. > parser combinator, combinator library etc. > > Is it exactly the same term that is used in the "combinatory logic" ? > A combinator is a higher-order fun

Re: [Haskell-cafe] Alternative name for return

2013-08-14 Thread Jason Dagit
On Wed, Aug 14, 2013 at 7:54 PM, Simon Peyton-Jones wrote: > | Indeed, I wished the 0-ary case would be more alike to the unary and > | binary case, cf. > | > | return f0 > | f1 <$> a1 > | f2 <$> a1 <*> a2 > | > | What is needed is a nice syntax for "idiom brackets". > > Indeed. I'

Re: [Haskell-cafe] Why GHC is written in Happy and not a monadic parser library?

2013-08-03 Thread Jason Dagit
On Sat, Aug 3, 2013 at 3:36 AM, Malcolm Wallace wrote: > > On 3 Aug 2013, at 02:20, Jason Dagit wrote: > >>> Hi! >>> Is there any specific reason why GHC is written in a parser GENERATOR >>> (Happy) and not in MONADIC PARSER COMBINATOR (like parsec)? >

Re: [Haskell-cafe] Why GHC is written in Happy and not a monadic parser library?

2013-08-02 Thread Jason Dagit
On Fri, Aug 2, 2013 at 5:49 PM, blackbox.dev.ml wrote: > Hi! > Is there any specific reason why GHC is written in a parser GENERATOR > (Happy) and not in MONADIC PARSER COMBINATOR (like parsec)? > > Is Happy faster / handles better errors / hase some great features or > anything else? One reason

Re: [Haskell-cafe] ordNub

2013-07-15 Thread Jason Dagit
On Sun, Jul 14, 2013 at 4:20 AM, Niklas Hambüchen wrote: > tldr: nub is abnormally slow, we shouldn't use it, but we do. > > > As you might know, Data.List.nub is O(n²). (*) > > As you might not know, almost *all* practical Haskell projects use it, > and that in places where an Ord instance is giv

Re: [Haskell-cafe] OS X ghci problem

2013-07-13 Thread Jason Dagit
On Sat, Jul 13, 2013 at 6:44 PM, Carter Schonwald wrote: > has anyone tried using ghci HEAD? If the problem is linker based... perhaps > ghci that uses the system Dylinker might resolve it? If someone gets brave and tries this I'd love to hear if it works. Although, that's too new for something w

Re: [Haskell-cafe] OS X ghci problem

2013-07-13 Thread Jason Dagit
On Sat, Jul 13, 2013 at 5:32 PM, Anthony Cowley wrote: > On Jul 13, 2013, at 8:04 PM, Jason Dagit wrote: > >> On Sat, Jul 13, 2013 at 4:39 PM, Mark Lentczner >> wrote: >>> Bizarre - this just happened to me today, too. Anyone? Did you figure out a >>> work a

Re: [Haskell-cafe] OS X ghci problem

2013-07-13 Thread Jason Dagit
On Sat, Jul 13, 2013 at 4:39 PM, Mark Lentczner wrote: > Bizarre - this just happened to me today, too. Anyone? Did you figure out a > work around? For the record, I'm trying to bring Euterpea up. After some digging, experimenting, asking around, and head scratching my best guesses are: * GHCi

Re: [Haskell-cafe] Netwire bouncing ball

2013-07-10 Thread Jason Dagit
On Wed, Jul 10, 2013 at 2:15 PM, Just wrote: > Hello, > > I'm trying to get a grasp of netwire by implementing a bouncing ball > simulation and I'm failing. > The ball starts from the ground with a given velocity and when hitting the > ground the wire inhibits successfully. Now I'm kinda stuck. I

Re: [Haskell-cafe] Why isn't hsc2hs functionality provided by ghc?

2013-06-04 Thread Jason Dagit
On Tue, Jun 4, 2013 at 8:45 PM, John Lato wrote: > On Wed, Jun 5, 2013 at 10:15 AM, Ivan Lazar Miljenovic > wrote: >> >> On 5 June 2013 12:02, silly wrote: >> > I was wondering today, why hasn't hsc2hs been merged with ghc so that >> > it would be possible to add a >> > >> > {-# LANGUAGE For

Re: [Haskell-cafe] Array, Vector, Bytestring

2013-06-03 Thread Jason Dagit
On Mon, Jun 3, 2013 at 7:45 PM, Clark Gaebel wrote: > How is this a problem? > > If you're representing text, use 'text'. > If you're representing a string of bytes, use 'bytestring'. > If you want an "array" of values, think c++ and use 'vector'. > If you want to mutate arrays, first, make sure y

Re: [Haskell-cafe] [haskell.org Google Summer of Code 2013] Approved Projects

2013-05-29 Thread Jason Dagit
On Wed, May 29, 2013 at 10:47 AM, Carter Schonwald wrote: > indeed, i'm the principal mentor for this project, though as mentioned > Ian-Woo will hopefully be helping out too. > > I'm going to *help* focus the project on being a tool thats not focused on > QT, though if something nice can be worke

Re: [Haskell-cafe] Parallel ghc --make

2013-05-15 Thread Jason Dagit
On Wed, May 15, 2013 at 6:36 PM, Clark Gaebel wrote: > It's also useful to note that the disk cache might do a surprisingly good > job at caching those .hi files for you. That, and a lot of people (like me!) > use SSDs, where the parallel compilation takes the vast majority of time. > > I'd be rea

Re: [Haskell-cafe] ghci: Difference in garbage collection etc. between REPL and function

2013-05-08 Thread Jason Dagit
On Wed, May 8, 2013 at 8:12 PM, Jason Dagit wrote: > On Wed, May 8, 2013 at 6:54 PM, Niklas Hambüchen wrote: >> I have an annoying bug in a C binding that can be triggered like this: >> >> >> handle <- open ... >> >> prep <- makePreparedStat

Re: [Haskell-cafe] ghci: Difference in garbage collection etc. between REPL and function

2013-05-08 Thread Jason Dagit
On Wed, May 8, 2013 at 6:54 PM, Niklas Hambüchen wrote: > I have an annoying bug in a C binding that can be triggered like this: > > > handle <- open ... > > prep <- makePreparedStatement handle "INSERT ..." > > performGC > > runStatement prep > > close handle > > If I run thes

Re: [Haskell-cafe] GPGPU

2013-05-04 Thread Jason Dagit
On Sat, May 4, 2013 at 2:16 PM, Anthony Cowley wrote: > Thanks to the nudge from Jason, the bitrot has now been scraped off. > The post is prettier, the code all works again, and the screenshot has > been restored. Nice! That's a very cool demo. Jason __

Re: [Haskell-cafe] GPGPU

2013-05-04 Thread Jason Dagit
On Sat, May 4, 2013 at 11:54 AM, Anthony Cowley wrote: > I wrote this some time ago. > > http://www.arcadianvisions.com/blog/?p=346 > > I know that soon after I wrote that, it worked with both OpenCL and gloss > from hackage, but there may be some bitrot at this point. Some of the links in the bl

Re: [Haskell-cafe] GPGPU

2013-05-04 Thread Jason Dagit
On Sat, May 4, 2013 at 3:00 AM, Christopher Howard wrote: > Has anybody on the list been playing around with OpenCL at all? I'm just > starting to look into it - need to get a newer Radeon card, I think - > but I'm strongly interested in GPGPU programming. This is about as far as I've made it: ht

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

2013-03-17 Thread Jason Dagit
On Sat, Mar 16, 2013 at 6:53 PM, Jesper Särnesjö wrote: > > To be clear, I think this isn't really an OpenGL problem, but rather > one related to FFI or event handling. If anyone could explain to me, > in general, how and why a call to a foreign function returning IO () > might cause different be

Re: [Haskell-cafe] Maintaining lambdabot

2013-03-15 Thread Jason Dagit
On Fri, Mar 15, 2013 at 4:31 PM, Jason Dagit wrote: > > > On Fri, Mar 15, 2013 at 3:30 PM, James Cook wrote: > >> On Mar 15, 2013, at 2:45 PM, Jason Dagit wrote: >> >> > I haven't been following the thread closely. Is there also a github? If >> so,

Re: [Haskell-cafe] Maintaining lambdabot

2013-03-15 Thread Jason Dagit
On Fri, Mar 15, 2013 at 3:30 PM, James Cook wrote: > On Mar 15, 2013, at 2:45 PM, Jason Dagit wrote: > > > I haven't been following the thread closely. Is there also a github? If > so, where? Some of us figured out a bug fix for the quotes plugin and I'll > send a pu

Re: [Haskell-cafe] Maintaining lambdabot

2013-03-15 Thread Jason Dagit
On Fri, Mar 15, 2013 at 9:19 AM, James Cook wrote: > On Mar 14, 2013, at 11:08 PM, Jason Dagit wrote: > > > My real reason for reviving this thread: Can I get a status update, > please? > > Sure. I don't have as much time as I'd like these days for open-source

Re: [Haskell-cafe] Maintaining lambdabot

2013-03-14 Thread Jason Dagit
On Wed, Feb 20, 2013 at 11:19 AM, Gwern Branwen wrote: > On Wed, Feb 20, 2013 at 1:35 PM, Jan Stolarek > wrote: > > Gwern, and what do you think about James' fork of lambdabot? It seems > that there was a lot of work > > put into it and that this is indeed a good starting point to continue > dev

Re: [Haskell-cafe] Open-source projects for beginning Haskell students?

2013-03-11 Thread Jason Dagit
On Mon, Mar 11, 2013 at 1:09 PM, Brent Yorgey wrote: > On Mon, Mar 11, 2013 at 11:50:38AM -0700, Ben wrote: > > > > On Mar 11, 2013, at 11:26 AM, Jason Dagit wrote: > > > > > Myself and several of my friends would find it useful to have a > plotting library tha

Re: [Haskell-cafe] Open-source projects for beginning Haskell students?

2013-03-11 Thread Jason Dagit
On Mon, Mar 11, 2013 at 8:48 AM, Brent Yorgey wrote: > Hi everyone, > > I am currently teaching a half-credit introductory Haskell class for > undergraduates. This is the third time I've taught it. Both of the > previous times, for their final project I gave them the option of > contributing to

[Haskell-cafe] Galois is hiring!

2013-03-01 Thread Jason Dagit
Galois is hiring! We're looking for functional programmers, formal methods practitioners, and project leads, with a variety of positions open at all professional experience levels. For more information on the job openings and Galois in general, see: http://corp.galois.com/careers I've written

Re: [Haskell-cafe] Maintaining lambdabot

2013-02-19 Thread Jason Dagit
On Tue, Feb 19, 2013 at 3:01 PM, James Cook wrote: > On Feb 19, 2013, at 2:36 PM, Jan Stolarek wrote: > > > Anyway, how would you feel about changes that I would like to make: > > - move all modules into Lambdabot. namespace > > - remove unlambda, brainfuck and show from the repo. They are on >

Re: [Haskell-cafe] Maintaining lambdabot

2013-02-18 Thread Jason Dagit
On Sun, Feb 17, 2013 at 8:53 PM, Cale Gibbard wrote: > On 17 February 2013 18:03, Jan Stolarek wrote: > > ... > > This changes would be quite invasive and code wouldn't be compatible > with the lambdabot repo on > > haskell.org. So before I start making any of them I would like to hear > from th

Re: [Haskell-cafe] ANN: Haskell bindings for the igraph C library

2013-01-22 Thread Jason Dagit
On Tue, Jan 22, 2013 at 3:20 PM, George Giorgidze wrote: > Hi Jason, > > > How does this compare with fgl? http://hackage.haskell.org/package/fgl > > A couple of months ago, I was working on a project where I had to do > some graph analysis. I encountered two problems with the fgl library: > Than

Re: [Haskell-cafe] An assembly DSL example.

2012-12-19 Thread Jason Dagit
On Wed, Dec 19, 2012 at 8:08 AM, Tom Hawkins wrote: > A few folks have asked me about building EDSLs in Haskell for assembly > programming, so I've posted an example of the approach we have had success > using at BAE Systems. > > It's a bit rough, so if anyone's motivated to polish it up, by all

Re: [Haskell-cafe] [Haskell] ANN: Haskell bindings for the igraph C library

2012-12-16 Thread Jason Dagit
On Sun, Dec 16, 2012 at 9:53 AM, Nils Schweinsberg wrote: > Hi Haskellers, dear igraph community, > > I am pleased to announce the release of our (inofficial) Haskell bindings > to the igraph C library. igraph is a powerfull library for creating and > manipulating directed, undirected and weighte

Re: [Haskell-cafe] How to start with GHC development?

2012-12-11 Thread Jason Dagit
On Tue, Dec 11, 2012 at 6:10 AM, Eric Rochester wrote: > I'm in the same boat, with just a little less reading. :) > > It seems to be that if we want to encourage participation in GHC > development, the first step is to lower the barrier of entry. > > One way to do that would be to have a page (w

Re: [Haskell-cafe] Best approach to avoid dependency hells

2012-12-05 Thread Jason Dagit
On Wed, Dec 5, 2012 at 10:52 AM, Ivan Perez wrote: > Hello everyone, > > I've spent the last couple of days fighting my way around a dependency > hell with my own libraries and packages. > > If I install them package by package (by hand), I'm very likely to hit > one of these conflicts that I'm ta

Re: [Haskell-cafe] Is it possible to have constant-space JSON decoding?

2012-12-04 Thread Jason Dagit
On Tue, Dec 4, 2012 at 9:37 PM, Johan Tibell wrote: > Hi Oleg, > > On Tue, Dec 4, 2012 at 9:13 PM, wrote: > > I am doing, for several months, constant-space processing of large XML > > files using iteratees. The file contains many XML elements (which are > > a bit complex than a number). An ele

Re: [Haskell-cafe] computation over containers, greatly simplified notation.

2012-11-30 Thread Jason Dagit
You might find this paper an interesting read: http://www.brics.dk/RS/01/10/ On Fri, Nov 30, 2012 at 4:43 PM, Takayuki Muranushi wrote: > Dear everyone, > > After a number of attempts [1] I'm starting to think that my initial > approach was ill-directed. > > After all, Functor, Applicative, Zip a

Re: [Haskell-cafe] Can a GC delay TCP connection formation?

2012-11-27 Thread Jason Dagit
On Tue, Nov 27, 2012 at 11:17 AM, Jason Dagit wrote: > > > On Tue, Nov 27, 2012 at 11:02 AM, Jeff Shaw wrote: > >> Hello Timothy and others, >> One of my clients hosts their HTTP clients in an Amazon cloud, so even >> when they turn on persistent HTTP connecti

Re: [Haskell-cafe] Can a GC delay TCP connection formation?

2012-11-27 Thread Jason Dagit
On Tue, Nov 27, 2012 at 11:02 AM, Jeff Shaw wrote: > Hello Timothy and others, > One of my clients hosts their HTTP clients in an Amazon cloud, so even > when they turn on persistent HTTP connections, they use many connections. > Usually they only end up sending one HTTP request per TCP connectio

Re: [Haskell-cafe] haskell.org committee: Call for nominations

2012-11-09 Thread Jason Dagit
Just a reminder to nominate yourself if you're interested. If you've been thinking about it but haven't contacted us yet then please just do it and contact us today! Thank, Jason On Fri, Nov 2, 2012 at 11:28 AM, Jason Dagit wrote: > Dear Haskellers, > > The second

[Haskell-cafe] ANN: OpenGL packages update

2012-11-04 Thread Jason Dagit
The updates include: * All of the newtypes in OpenGLRaw have been changed to type aliases (credit to Trevor Elliott and Mike Ledger) * OpenGLRaw's TypesInternal module has gone away * NVidia path rendering extensions have been added by "ozelis" on github This release changes OpenGLRaw to use

[Haskell-cafe] haskell.org committee: Call for nominations

2012-11-02 Thread Jason Dagit
Dear Haskellers, The second year of the haskell.org committee is drawing to a close and it is therefore time to seek replacements for those members whose term is expiring. This year one member has a term ending, Ganesh Sittampalam. Ganesh has been an excellent contributor and the rest of the comm

Re: [Haskell-cafe] [Security] Put haskell.org on https

2012-11-02 Thread Jason Dagit
Thanks Iavor et al. I agree. I'll see what we can do. We have budget for this so hopefully it will be a simple matter of finding people to implement the change. Jason On Fri, Nov 2, 2012 at 10:34 AM, Iavor Diatchki wrote: > Hello, > > I think that getting a certificate is a good idea. I think

Re: [Haskell-cafe] OpenGL library will not load into GHCi 7.6.1 on Win7 x86-64

2012-10-09 Thread Jason Dagit
On Tue, Oct 9, 2012 at 1:55 PM, Dan Haraj wrote: > This is a regression of some sort since the library operates fine within > GHCi for previous versions of GHC. I don't know whether it is a problem > with GHCi, the OpenGL library, or some third party. This is the error > encountered when a module

[Haskell-cafe] Galois is hiring!

2012-06-25 Thread Jason Dagit
We're looking for functional programmers, formal methods practitioners, and project leads, interested in either short term or permanent employment. For more information, see: http://corp.galois.com/careers Why Galois? At Galois, we believe in seeking out and solving important problems to make

Re: [Haskell-cafe] Heads up: importing the Cabal issue tracker to github next week

2012-05-22 Thread Jason Dagit
Thank you. I was trying to register an account on the trac today to file a bug report but the account registration seems to be broken. I'll wait to file my bug till I can use github's much nicer tracker. Thanks, Jason On Wed, May 16, 2012 at 8:45 PM, Bryan O'Sullivan wrote: > I am planning on

Re: [Haskell-cafe] hackage & hackage accounts

2012-05-15 Thread Jason Dagit
On Tue, May 15, 2012 at 12:11 PM, Dmitry Malikov wrote: > Good day. > > Recently, in irc://#haskell you can see very often replicas of people, who > are tired of waiting their hackage accounts. > After next release of any package from hackagebot, some depressed people > definitely comes out and st

Re: [Haskell-cafe] New in haskell for old-timers?

2012-03-30 Thread Jason Dagit
On Fri, Mar 30, 2012 at 1:05 PM, Mats Rauhala wrote: > On 11:57 Fri 30 Mar     , Brandon Allbery wrote: >> >> The legible C thing is probably jhc ( http://repetae.net/computer/jhc/ ). >>  It's GHC's *illegible* registerized C that is being phased out; the >> slightly-more-legible ANSI C mode used

Re: [Haskell-cafe] Google Summer of Code idea of project & application

2012-03-19 Thread Jason Dagit
On Mon, Mar 19, 2012 at 9:12 PM, Chris Smith wrote: > On Mon, Mar 19, 2012 at 7:52 PM, Richard O'Keefe wrote: >> As just one example, a recent thread concerned implementing >> lock-free containers.  I don't expect converting one of those >> to OCaml to be easy... > > If you translate to core firs

Re: [Haskell-cafe] [haskell-cafe] Question about 64bit target on Windows platform

2012-03-04 Thread Jason Dagit
I don't know if timeline has been established, but my understanding is that there is a need for this and that the right people are aware of it and looking into it. The GHC trac has a ticket for this: http://hackage.haskell.org/trac/ghc/ticket/1884 On Sun, Mar 4, 2012 at 9:59 PM, C K Kashyap wrot

Re: [Haskell-cafe] Haskell showcase in 5 minutes

2012-02-27 Thread Jason Dagit
On Mon, Feb 27, 2012 at 7:18 AM, Arnaud Bailly wrote: > Hello Cafe, > > I will be (re)presenting Haskell in a "Batlle Language" event Wednesday > evening: A fun and interactive contest where various programming language > champions try to attract as much followers as possible in 5 minutes. > > Hav

Re: [Haskell-cafe] FFI: Overhead of foreign unsafe imports

2012-02-26 Thread Jason Dagit
On Sun, Feb 26, 2012 at 10:36 AM, Yves Parès wrote: > Hello, > When I was using C code from Python, the overhead put on calling C code by > Python was significant. > To simplify, say I have on C-side two procedures f and g, I do all the stuff > to call them in a row from Python, well I'm better of

Re: [Haskell-cafe] Hackage 2 maintainership

2012-02-13 Thread Jason Dagit
On Mon, Feb 13, 2012 at 3:44 PM, Ben Gamari wrote: > Hey all, > > Those of you who follow the Haskell subreddit no doubt saw today's post > regarding the status of Hackage 2. As has been said many times in the > past, the primary blocker at this point to the adoption of Hackage 2 > appears to be t

Re: [Haskell-cafe] Poll: Have you heard of or used GHC External Core?

2012-02-13 Thread Jason Dagit
On Mon, Feb 13, 2012 at 1:24 PM, James Fisher wrote: > On Mon, Feb 13, 2012 at 9:01 PM, Jason Dagit wrote: >> >> Is this the same or different than what you get with the -fext-core >> command? > > > The very same. In that case, I'll fill out the survey, but

Re: [Haskell-cafe] Poll: Have you heard of or used GHC External Core?

2012-02-13 Thread Jason Dagit
On Mon, Feb 13, 2012 at 12:08 PM, James Fisher wrote: > Hi all: > > I'm conducting a poll on Haskellers.com to assess the community importance > of GHC External Core.  Here's the link: http://www.haskellers.com/poll/7 Is this the same or different than what you get with the -fext-core command? J

Re: [Haskell-cafe] Loading a texture in OpenGL

2012-02-06 Thread Jason Dagit
On Mon, Feb 6, 2012 at 12:00 PM, Clark Gaebel wrote: > Using the OpenGL package on Hackage, how do I load a texture from an array? The answer will depend on a few things: * Which OpenGL package you use, for example OpenGL vs. OpenGLRaw * What type of 'array' you use. In the case of the OpenG

[Haskell-cafe] ANN: Updated OpenGL libraries

2012-02-05 Thread Jason Dagit
Hello, I'm pleased to anounce a minor bug fix release of the OpenGL libraries. This release was prompted by issues and warnings when compiling with ghc-7.4.1. The following packages have been updated: * OpenGLRaw 1.2.0.0 * OpenGL 2.5.0.0 * GLURaw 1.2.0.0 * GLUT 2.3.0.0 Thanks goes out t

Re: [Haskell-cafe] Again, version conflicting problem with cabal-install

2012-02-03 Thread Jason Dagit
e: > Well, cabal-dev could not resolve the conflict of "the diamond". > Because the conflict is "depending different version at the SAME > time". > > On Fri, Feb 3, 2012 at 9:20 PM, Jason Dagit wrote: >> On Thu, Feb 2, 2012 at 9:54 PM, Magicloud Magiclouds &g

Re: [Haskell-cafe] C++ Parser?

2012-02-01 Thread Jason Dagit
On Wed, Feb 1, 2012 at 12:42 PM, Yin Wang wrote: > I have written a C++ parser in Scheme, with a Parsec-style parser > combinator library. It can parse a large portion of C++ and I use it > to do structural comparison between ASTs. I made some macros so that > the parser combinators look like the

Re: [Haskell-cafe] C++ Parser?

2012-01-24 Thread Jason Dagit
On Tue, Jan 24, 2012 at 8:40 AM, Christopher Brown wrote: > Hi Jason, > > Thanks very much for you thoughtful response. > > I am intrigued about the Happy route: as I have never really used Happy > before, am I right in thinking I could take the .gr grammar, feed it into > Happy to generate a pa

Re: [Haskell-cafe] C++ Parser?

2012-01-24 Thread Jason Dagit
On Tue, Jan 24, 2012 at 6:54 AM, Christopher Brown wrote: > Hi Everyone, > > Thanks for everyone's kind responses: very helpful so far! > > I fully appreciate and understand how difficult writing a C++ parser is. > However I may need one for our new Paraphrase project, where I may be > targeting

Re: [Haskell-cafe] C++ Parser?

2012-01-24 Thread Jason Dagit
On Tue, Jan 24, 2012 at 2:06 AM, Christopher Brown wrote: > Hi, > > I have stumbled across language-c on hackage and I was wondering if anyone is > aware if there exists a full C++ parser written in Haskell? I don't think one exists. I've heard it's quite difficult to get template parsing worki

Re: [Haskell-cafe] GLFW-0.5.0.0 is released

2012-01-21 Thread Jason Dagit
On Sat, Jan 21, 2012 at 4:32 AM, Paul Liu wrote: > There is now a new GLFW package on hackage with version number > 0.5.0.0. Congrats! [snip] > 4. There is an outstanding bug preventing GLFW programs to be invoked > from GHCi on OS X. One has to compile before running GLFW programs. Does it sti

Re: [Haskell-cafe] How to get Cabal to spit out a .a library suitable for linking into C/Objective-C

2012-01-16 Thread Jason Dagit
Did you figure out what you need to know? If not, I would suggest asking this same question but on StackOverflow (assuming you haven't already asked there). Jason On Mon, Dec 19, 2011 at 2:35 PM, David Pollak wrote: > Howdy, > > I'm trying to figure out how to get Cabal configured to compile a

Re: [Haskell-cafe] Haskell Summers of Code retrospective (updated for 2011)

2012-01-16 Thread Jason Dagit
On Sat, Dec 10, 2011 at 6:57 PM, Gwern Branwen wrote: > The Wheel turns, and months come and pass, leaving blog posts that > fade into 404s; a wind rose in Mountain View, whispering of the coming > Winter... > > Tonight I sat down and finally looked into the 2011 SoCs to see how > they turned out

Re: [Haskell-cafe] Code generation and optimisation for compiling Haskell

2012-01-12 Thread Jason Dagit
On Tue, Jan 10, 2012 at 9:25 AM, Steve Horne wrote: > Also, what papers should I read? Am I on the right lines with the ones I've > mentioned above? Thomas Schilling gave you a good response with papers so I will give you a different perspective on where to look. Most of the Haskell implementat

Re: [Haskell-cafe] OpenAL bindings?

2012-01-07 Thread Jason Dagit
On Sat, Jan 7, 2012 at 1:26 PM, Yitzchak Gale wrote: > Jason Dagit wrote: >> Looks like the repo [1] for the OpenAL bindings that Sven Panne >> created [2] is no longer available. I assume this is a result of The >> Great Server Outage of 2011 [3]. >> [1] http://darcs.

[Haskell-cafe] OpenAL bindings?

2012-01-06 Thread Jason Dagit
Hello, Looks like the repo [1] for the OpenAL bindings that Sven Panne created [2] is no longer available. I assume this is a result of The Great Server Outage of 2011 [3]. Do other bindings exist (I didn't see any on hackage, google, or the wiki [4])? I can import the source that is available o

Re: [Haskell-cafe] If you'd design a Haskell-like language, what would you do different?

2011-12-23 Thread Jason Dagit
On Tue, Dec 20, 2011 at 3:10 PM, Chris Wong wrote: > On Wed, Dec 21, 2011 at 10:53 AM, Matthew Farkas-Dyck > wrote: >> With GHC 7.0.3: >> >> $ cat test.hs >> class ℝ a where { >>  test :: a; >> }; >> >> (∈) :: Eq a => a -> [a] -> Bool; >> x ∈ (y:ys) = x == y || x ∈ ys; >> >> main = putStrLn "Two

Re: [Haskell-cafe] terminateProcess leaves zombie processes around

2011-12-07 Thread Jason Dagit
On Wed, Dec 7, 2011 at 7:19 AM, Brandon Allbery wrote: > On Wed, Dec 7, 2011 at 06:47, Dan Rosén wrote: >> >> I'm using Haskell to run a lot of instances of an Automated Thorem Prover, >> eprover. I have pasted a smaller version of my program at >> http://hpaste.org/54954. It runs eprover sequent

Re: [Haskell-cafe] Quickcheck research

2011-11-23 Thread Jason Dagit
On Tue, Nov 22, 2011 at 9:42 AM, wren ng thornton wrote: > On 11/22/11 6:09 AM, Macías López wrote: >> >> Hello: >> >> I'm a Master's student in Computer Science. I have to make a project >> involving some research, I'm very interested in Quickcheck and I wonder if >> there are some areas which ne

Re: [Haskell-cafe] Is SmallCheck maintained?

2011-11-17 Thread Jason Dagit
On Mon, Nov 14, 2011 at 9:54 AM, Roman Cheplyaka wrote: > Hi Cafe, > > Does anyone currently work on Test.SmallCheck? I recall this being an unfortunate problem from the first release. As I recall the author was interested in getting the concept out there but had no motivation (or was it interes

Re: [Haskell-cafe] A Mascot

2011-11-16 Thread Jason Dagit
You're quite the artist. I wish I could make stuff like this. Here are some more ideas (based on titles of papers about Haskell): What about making the lamb wear a hair shirt? http://research.microsoft.com/en-us/um/people/simonpj/papers/haskell-retrospective/ Or maybe it could be lazy with class

Re: [Haskell-cafe] Symbol collisions with -fhpc

2011-11-08 Thread Jason Dagit
On Tue, Nov 8, 2011 at 9:40 AM, Michael Orlitzky wrote: > Does anyone know what causes these? This used to work, like, a month > ago. It builds fine without the -fhpc. What has changed in that time? New Ghc? New updates from your OS? New code in your project? Because it builds fine without -fh

Re: [Haskell-cafe] zlib build failure on recent GHC

2011-11-07 Thread Jason Dagit
On Mon, Nov 7, 2011 at 8:17 AM, Johan Tibell wrote: > On Mon, Nov 7, 2011 at 7:53 AM, Ben Gamari wrote: >> >> With GHC 1ece7b27a11c6947f0ae3a11703e22b7065a6b6c zlib fails to build, >> apparently due to Safe Haskell (bug 5610 [1]). The error is specifically, >> >> $ cabal install zlib >> Resolving

Re: [Haskell-cafe] howto best use emacs + tiling WM (Xmonad,DWM)

2011-11-04 Thread Jason Dagit
On Fri, Nov 4, 2011 at 8:55 AM, kaffeepause73 wrote: > Hello, > > I'm using dwm which I really love (ev. consider switching to xmonad). > > However when I'm working with emacs (programming haskell) und dwm I feel, > I'm not as effecient as I eventually could be. -- I can have the shell in > one wi

Re: [Haskell-cafe] Hackage feature request: E-mail author when a package breaks

2011-11-01 Thread Jason Dagit
On Tue, Nov 1, 2011 at 2:45 AM, Max Bolingbroke wrote: > On 1 November 2011 09:00, Ketil Malde wrote: >> This is where it stranded the last time, IIRC.  That sentiment makes me >> a bit uneasy; so you are the official maintainer of a package on >> Hackage, but you do not want to hear about it whe

Re: [Haskell-cafe] blog software in Haskell?

2011-10-31 Thread Jason Dagit
On Mon, Oct 31, 2011 at 2:14 AM, Ketil Malde wrote: > > Hi, > > I just upgraded my server, and set up everything again.  Except > wordpress, as 1) I'm not too fond of its user interface, and 2) it's a > big pile of PHP, difficult to keep updated, and basically a disaster > waiting to happen (and i

Re: [Haskell-cafe] ANN: Haskell OpenGL package updates

2011-10-28 Thread Jason Dagit
On Fri, Oct 28, 2011 at 2:07 PM, Edward Kmett wrote: > Jason, > Thank you for taking ownership of HOpenGL! Thanks! > I would like to make a formal request for there to be some way to get access > to either > Graphics.Rendering.OpenGL.Raw.Core31.TypesInternal > or that > Graphics.Rendering.OpenGL

[Haskell-cafe] ANN: Haskell OpenGL package updates

2011-10-28 Thread Jason Dagit
Several months ago I announced my intent to take over maintainership of the Haskell OpenGL bindings and associated packages. Today I have pushed new minor revisions to hackage. I have updated the following packages: * OpenGL * OpenGLRaw * GLURaw * GLUT The change log is very minor for ea

Re: [Haskell-cafe] ANN: diagrams 0.4

2011-10-24 Thread Jason Dagit
On Sun, Oct 23, 2011 at 11:47 AM, Brent Yorgey wrote: > I am pleased to announce the release of version 0.4 of diagrams, a > full-featured framework and embedded domain-specific language for > declarative drawing. > > The last announcement was of the 0.1 release; there have been quite a > few chan

Re: [Haskell-cafe] ANN: OpenCL 1.0.1.3 package

2011-10-21 Thread Jason Dagit
e, I learn to fix >> 32/64 bits issues with c2hs, and test it on linux machines. >> * Tested on Linux + NVidia only. >> * Jason Dagit is helping with Windows, OSX testing in own fork, also the >> call-conv fork in github has changes to work on Windows >> Please, C

Re: [Haskell-cafe] ANN: OpenCL 1.0.1.3 package

2011-10-13 Thread Jason Dagit
e, I learn to fix >> 32/64 bits issues with c2hs, and test it on linux machines. >> * Tested on Linux + NVidia only. >> * Jason Dagit is helping with Windows, OSX testing in own fork, also the >> call-conv fork in github has changes to work on Windows >> Please, C

Re: [Haskell-cafe] ANN: hit a reimplementation of git storage in haskell.

2011-10-04 Thread Jason Dagit
On Tue, Oct 4, 2011 at 2:15 PM, Vincent Hanquez wrote: > Any comments welcome, Nice! Have you looked at Petr Rockai's hashed-storage? http://hackage.haskell.org/package/hashed-storage-0.5.8 Jason ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.or

Re: [Haskell-cafe] ANN: OpenCL 1.0.1.3 package

2011-10-04 Thread Jason Dagit
On Tue, Oct 4, 2011 at 12:54 AM, Luis Cabellos wrote: > I understand your point. I didn't know the problems with cross module > inlining that Haskell suffers. I learned the BSD3, I think is a good  and > I'll change it on github and I'll put in the next release. Oh cool. Thanks! I think that's

Re: [Haskell-cafe] ANN: OpenCL 1.0.1.3 package

2011-10-03 Thread Jason Dagit
t only because I > added more types to hide most of the alloc/free of the API, and hide the > enums using c2hs enums. > * The worst problem of the OpenCLRaw is the bad types it use, I learn to fix > 32/64 bits issues with c2hs, and test it on linux machines. > * Tested on Linux + NVid

Re: [Haskell-cafe] ANN: OpenCL 1.0.1.3 package

2011-10-03 Thread Jason Dagit
On Mon, Oct 3, 2011 at 9:04 AM, Jason Dagit wrote: > We could have a different version of the function for each return > type, clGetDeviceInfo_FPConfig, clGetDeviceInfo_AddressBits, etc. > It's a great naming convention but it has the property that someone > searching th

Re: [Haskell-cafe] Can't link OpenCL on Windows

2011-09-12 Thread Jason Dagit
Mystery solved. The OpenCLRaw bindings were set to use ccall but OpenCL uses stdcall. I've updated my branch of the bindings. Details on stackoverflow: http://stackoverflow.com/questions/7391634/cant-link-opencl-on-windows-with-ghc Jason On Mon, Sep 12, 2011 at 10:29 AM, Jason Dagit

[Haskell-cafe] Can't link OpenCL on Windows

2011-09-12 Thread Jason Dagit
Hello, I'm trying to get the OpenCLRaw bindings to a point where I can use them on windows. I've forked the the OpenCLRaw repo on github so I can make modifications as needed. My branch is here: https://github.com/dagit/OpenCLRaw I've been mostly working out of my "FunPtr" branch. The issue I'

Re: [Haskell-cafe] ANN: cabal-ghci 0.1

2011-09-09 Thread Jason Dagit
On Fri, Sep 9, 2011 at 2:44 PM, Etienne Laurin wrote: >>> Here is a helpful package I wrote to ease the development of projects >>> using cabal. >> >> Is :cabalset custom per project or could I put the same things in my ~/.ghci? > > Everytime I run :cabalset or cabal-ghci, it looks for a .cabal fi

Re: [Haskell-cafe] ANN: cabal-ghci 0.1

2011-09-09 Thread Jason Dagit
On Thu, Sep 8, 2011 at 11:06 PM, Etienne Laurin wrote: > Hello fellow hackers. > > Here is a helpful package I wrote to ease the development of projects > using cabal. > > It includes a :cabalset ghci command to set ghci options for your > project, and a cabal-ghci executable to launch ghci with t

Re: [Haskell-cafe] Trouble with Haddock

2011-08-29 Thread Jason Dagit
On Sun, Aug 28, 2011 at 6:37 AM, anonymous wrote: > First time using haddock. > I'm unable to include code examples in the module header. > Haddock fails with this error: > haddock module header parse failed: Cannot parse header > documentation paragraphs > > It's about 12 lines of code, which doe

Re: [Haskell-cafe] ping haskell.org timeout

2011-08-25 Thread Jason Dagit
On Thu, Aug 25, 2011 at 9:20 PM, Ketil Malde wrote: > Jason Dagit writes: > >> On Thu, Aug 25, 2011 at 2:39 PM, Greg Fitzgerald wrote: >>> "cabal update" hangs.  "ping haskell.org" times out.  But haskell.org and >>> hackage webpages are loading

Re: [Haskell-cafe] ping haskell.org timeout

2011-08-25 Thread Jason Dagit
On Thu, Aug 25, 2011 at 2:39 PM, Greg Fitzgerald wrote: > "cabal update" hangs.  "ping haskell.org" times out.  But haskell.org and > hackage webpages are loading just fine.  What's going on? Lots of servers turn off ICMP packet responses these days so ping isn't as reliable as it once was for de

Re: [Haskell-cafe] How to make callCC more dynamic

2011-08-24 Thread Jason Dagit
On Wed, Aug 24, 2011 at 9:19 AM, bob zhang wrote: > Hi, all > I thought the right type for ContT should be > newtype ContT m a = ContT {runContT :: forall r. (a-> m r) -> m r} > and > other control operators > shift :: Monad m => (forall r . (a-> ContT m r) -> ContT m r) -> ContT m a > reset :: Mo

Re: [Haskell-cafe] Question about data

2011-08-19 Thread Jason Dagit
On Fri, Aug 19, 2011 at 1:45 PM, Thomas DuBuisson wrote: > This is not a valid data declaration.  You can't have a "Float" field > without any constructor name and have it still of type And the reason why it accepts 'data MathExpr = Float', is because data constructors and types live in separate

Re: [Haskell-cafe] Compilation error in Chapter 5 of "Real World Haskell"

2011-08-18 Thread Jason Dagit
On Wed, Aug 17, 2011 at 10:37 AM, Paul Reiners wrote: > I'm trying to do the following from Chapter 5 of "Real World Haskell": > > Our choice of naming for the source file and function is deliberate. To > create an executable, ghc expects a module named Main that contains a > function named main.

Re: [Haskell-cafe] Please help me spot where space leak occur.

2011-07-27 Thread Jason Dagit
On Fri, Jul 22, 2011 at 1:54 AM, Olexander Kozlov wrote: > Jason, thank you for your help. The hint for using -s option is very > valuable. > It is good to see people answering questions about Haskell here on > haskell-cafe. stackoverflow is another good place to ask. > This is really matter. I

  1   2   3   4   5   6   7   >