[Haskell-cafe] A universal data store interface

2012-02-13 Thread Sergiu Ivanov
Hello, I am interested in applying for GSoC-2012 with the Haskell community. (I think I've told that to quite a number of people already, sorry for the duplicate.) I'm currently digging my way towards http://hackage.haskell.org/trac/ghc/ticket/4213 . However, instead of focusing on a single

Re: [Haskell-cafe] ANN: stm-conduit-0.2.1

2012-02-13 Thread John Lato
Message: 6 Date: Sun, 12 Feb 2012 01:47:40 -0500 From: wren ng thornton w...@freegeek.org Subject: Re: [Haskell-cafe] ANN: stm-conduit-0.2.1 To: Haskell Cafe haskell-cafe@haskell.org Message-ID: 4f37608c.3090...@freegeek.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed On

[Haskell-cafe] [ANNOUNCE] fb package, bindings to Facebook's API

2012-02-13 Thread Felipe Almeida Lessa
Hello, everyone! I'm pleased to finally announce the fb package, a Haskell-only package that provides bindings to Facebook's API. This package is sponsored by my employer, which will soon enough be able to become the copyright holder of all of our open source contributions.

[Haskell-cafe] hmatrix under ghci on x86_64

2012-02-13 Thread Tom Doris
I'm using ghci + hmatrix and a few other packages as a Haskell based replacement for Matlab, everything works well so far in terms of available functionality. However, I have encountered an issue when running in ghci on x86_64 systems - calls into functions that in turn call gsl functions will

[Haskell-cafe] How to increase performance using concurrency for sequential producer-consumer problem

2012-02-13 Thread Roel van Dijk
Hello, I have a program which I believe can benefit from concurrency. But I am wondering if the mechanisms I need already exist somewhere on Hackage. Here is a sketch of my program, in literate Haskell: module Problem where import Control.Monad ( forM_ ) The producer produces values. It

Re: [Haskell-cafe] Stable pointers: use of cast to/from Ptr

2012-02-13 Thread Donn Cave
Quoth =?ISO-8859-1?Q?Yves_Par=E8s?= yves.pa...@gmail.com, You mean I have to use a type like StablePtr (IORef Stuff)? Because there I can only peek (deRefStablePtr) the pointer, not poke it. I take it I should return to C a StablePtr to the new value if I don't want to use IORefs... Yes ...

Re: [Haskell-cafe] network-2.3.0.10 compiled for ghc 7.4.1 windows

2012-02-13 Thread Johan Tibell
I've merged and pushed the changes to the stable branch on GitHub. If someone could verify that it works fine on Windows, I'll make another release. In addition to running whatever program you're interested in, also run: cabal clean autoreconf cabal configure --enable-tests cabal build cabal

Re: [Haskell-cafe] network-2.3.0.10 compiled for ghc 7.4.1 windows

2012-02-13 Thread Holger Reinhardt
Did as requested and everything seems to work fine. Test suite also passes: Test Cases Total Passed 10 10 Failed 0 0 Total 10 10 Test suite simple: PASS 2012/2/13 Johan Tibell johan.tib...@gmail.com I've merged and pushed the changes to the stable

[Haskell-cafe] ANNOUNCE: Registration open for DHD = UHac, April 20 - 22, Utrecht

2012-02-13 Thread Sean Leather
We are happy to open registration to all. If you're interested in checking out some neat talks or hacking on cool Haskell projects, reserve your spot today! http://www.haskell.org/haskellwiki/DHD_UHac We are still looking for speakers for the Dutch HUG Day. Please consider sharing your latest

Re: [Haskell-cafe] network-2.3.0.10 compiled for ghc 7.4.1 windows

2012-02-13 Thread Johan Tibell
Version 2.3.0.11 released. On Mon, Feb 13, 2012 at 9:58 AM, Holger Reinhardt hreinha...@gmail.comwrote: Did as requested and everything seems to work fine. Test suite also passes: Test Cases Total Passed 10 10 Failed 0 0 Total 10 10 Test suite

Re: [Haskell-cafe] Cannot understand liftM2

2012-02-13 Thread Richard Adams
Dear Ivan, A great explanation you have provided! It is very clear. Thank you so much! (You Haskell folks are so willing to help.) Wish there was something I knew that would be useful to you. Thank you. Sincerely, Richard E. Adams Applications Developer Las Vegas Valley Water District

Re: [Haskell-cafe] How to increase performance using concurrency for sequential producer-consumer problem

2012-02-13 Thread Clark Gaebel
Conduits [1] can help solve this problem, and recently I added a package [2] onto Hackage to get exactly the type of concurrency that you're looking for. [1] http://hackage.haskell.org/package/conduit-0.2.1 [2] http://hackage.haskell.org/package/stm-conduit On Mon, Feb 13, 2012 at 10:12 AM, Roel

Re: [Haskell-cafe] network-2.3.0.10 compiled for ghc 7.4.1 windows

2012-02-13 Thread Johan Tibell
Resending as the last message got held for moderation: On Mon, Feb 13, 2012 at 10:18 AM, Johan Tibell johan.tib...@gmail.comwrote: Version 2.3.0.11 released. ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org

[Haskell-cafe] xattr takeover

2012-02-13 Thread Deian Stefan
Hello, I've been trying to get in touch with the maintainer (CC'd) about the xattr package for about a month. There are quite a few memory leaks (among other issues) for which I have a patch (see [1]). I would like to push the new version to Hackage, but the etiquette for taking over a package is

[Haskell-cafe] Subject: A universal data store interface

2012-02-13 Thread Greg Weber
Hi Sergiu, Thanks you for your interest in that proposal. I rushed it off a year ago. Since then we have made a lot of improvements to Persistent and the library forms a basic building block for most Yesod users and other Haskellers. Persistent offers a level of type-safety and convenience not

Re: [Haskell-cafe] Happstack-state in non-happstack production apps

2012-02-13 Thread Tom Murphy
Could someone with more knowledge of the project please update http://www.haskell.org/haskellwiki/Web/Databases_and_Persistence, to reflect the move from happstack-state to acid-state? Thanks, Tom On 2/11/12, dag.odenh...@gmail.com dag.odenh...@gmail.com wrote: On 10 February 2012 23:09,

Re: [Haskell-cafe] Subject: A universal data store interface

2012-02-13 Thread Tom Murphy
With respect, I don't think that Persistent is a natural choice as the go-to tool for Haskell users, simply because it requires knowledge of a lot of Yesod-EDSL syntax. The set of users with persistent data needs seems a very different set than that of those who are familiar with Yesod,

Re: [Haskell-cafe] Subject: A universal data store interface

2012-02-13 Thread Michael Snoyman
Actually, Persistent is fully usable without any special syntax, DSLs, or Template Haskell. In fact, Persistent itself has no template-haskell dependencies, specifically so that it can be built on ghc-iphone. Additionally, the Persistent DSL syntax is completely separate from any other Yesod DSL

Re: [Haskell-cafe] Subject: A universal data store interface

2012-02-13 Thread Tom Murphy
It seems that all tutorials and resources for Persistent use Template Haskell along with several Yesod specifics. But, I could be wrong, or new tutorials could be written. Tom On 2/13/12, Michael Snoyman mich...@snoyman.com wrote: Actually, Persistent is fully usable without any special

Re: [Haskell-cafe] Happstack-state in non-happstack production apps

2012-02-13 Thread dag.odenh...@gmail.com
On 13 February 2012 20:19, Tom Murphy amin...@gmail.com wrote: Could someone with more knowledge of the project please update http://www.haskell.org/haskellwiki/Web/Databases_and_Persistence, to reflect the move from happstack-state to acid-state? Good idea; I added acid-state to that page

Re: [Haskell-cafe] Subject: A universal data store interface

2012-02-13 Thread Greg Weber
Persistent is a database abstraction layer with no dependencies on Yesod. Those that need a persistence layer have the same needs to interface with the database in a type-safe way, regardless of whether their program presents a web interface. Have you tried using Persistent? We have never heard a

Re: [Haskell-cafe] Subject: A universal data store interface

2012-02-13 Thread Paul R
I have quiet a lot of experience in the business of web services strongly backed by data stores, in a company that allowed me to apply a technologies such as RubyOnRails, DataMapper, PostgreSQL, Redis, Riak, HappStack and Snap. Greg, with no offense intended, I will share with the café a

Re: [Haskell-cafe] Subject: A universal data store interface

2012-02-13 Thread Sergiu Ivanov
On Mon, Feb 13, 2012 at 9:01 PM, Greg Weber g...@gregweber.info wrote: Thanks you for your interest in that proposal. I rushed it off a year ago. Since then we have made a lot of improvements to Persistent and the library forms a basic building block for most Yesod users and other Haskellers.

Re: [Haskell-cafe] Subject: A universal data store interface

2012-02-13 Thread Tom Murphy
On 2/13/12, Paul R paul.r...@gmail.com wrote: [...] Abstraction over high level data stores is one of the worst idea in software engineering. The most proeminent example is probably PostgreSQL, which is an incredibly strong product with high SQL power. But as soon as you access it through

Re: [Haskell-cafe] Subject: A universal data store interface

2012-02-13 Thread Sergiu Ivanov
On Mon, Feb 13, 2012 at 9:53 PM, Paul R paul.r...@gmail.com wrote: So Sergiu, my POV is that universal data stores is at best a glue targeting small projects, so that they can be hacked quickly. They offer a set of features that, by design, is the greatest common divisor of the backends,

Re: [Haskell-cafe] Subject: A universal data store interface

2012-02-13 Thread Paul R
For one, I am adverse to DSL based on quasi-quotation. Not because I find the syntax hard - to be honnest it is often the opposite, with DSL designed with ease of use in mind - but because of the volatile nature of languages without specification, be them basic DSL. It is quiet hard to settle on a

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

2012-02-13 Thread James Fisher
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 Thanks, James Fisher ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org

Re: [Haskell-cafe] Subject: A universal data store interface

2012-02-13 Thread Tom Murphy
On 2/13/12, Sergiu Ivanov unlimitedscol...@gmail.com wrote: [...] a stable, flexible, and easy-to-work-with, already existing storage interface should allow Haskell programmers to focus less on IO and more on the purely functional logic. +1 - Very exciting! Tom

Re: [Haskell-cafe] Subject: A universal data store interface

2012-02-13 Thread Paul R
The most proeminent example is probably PostgreSQL, which is an incredibly strong product with high SQL power. But as soon as you access it through the ActiveRecord or Persistent API, it gets turned into a very limited store, with the SQL power of SQLITE or MongoDB. Tom Limited /= Worst,

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

2012-02-13 Thread James Fisher
To clarify and expand, the motivation behind this poll is that in a ticket on the External Core feature of GHChttp://hackage.haskell.org/trac/ghc/ticket/5844, SPJ wrote: I wonder who uses External Core? I'm working on that ticket and an answer to that question would be useful. In particular, the

Re: [Haskell-cafe] Subject: A universal data store interface

2012-02-13 Thread Michael Snoyman
You make it sound like your options are use the crippled abstraction layer or use the full-powered database layer. You're leaving out two very important points: 1. There's a reason the abstraction layer exists: it can be clumsy to go directly to the full-powered database for simple stuff. 2. You

Re: [Haskell-cafe] Subject: A universal data store interface

2012-02-13 Thread Greg Weber
Paul, I appreciate your experience and you might find it interesting that I have come to similar conclusions from my own experience! As Tom commented though, just because something is limited does not mean it is bad for every project. There are many small scale projects that do just fine with

[Haskell-cafe] Usefulness of abstracting data storage, WAS: A universal data store interface

2012-02-13 Thread Tom Murphy
Mailing list thread split! The GSoC seems like it should have its own list thread, so I'm moving this other discussion: On 2/13/12, Paul R paul.r...@gmail.com wrote: The most proeminent example is probably PostgreSQL, which is an incredibly strong product with high SQL power. But as soon as you

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 jameshfis...@gmail.com 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

Re: [Haskell-cafe] Google Summer of Code 2012 Announced

2012-02-13 Thread Heinrich Apfelmus
Johan Tibell wrote: Here's a heads-up that this year's Google of Code is kicking off. My experience from the last few years is that we can maximize the output we get from GSoC by being proactive and writing down semi-detailed explanations of what kind of projects we'd like to see, instead of

Re: [Haskell-cafe] Subject: A universal data store interface

2012-02-13 Thread Paul R
Hello Michael, From Persistent documentation : Persistent follows the guiding principles of type safety and concise, declarative syntax. Some other nice features are: * Database-agnostic. There is first class support for PostgreSQL, SQLite and MongoDB, with experimental CouchDB and

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

2012-02-13 Thread James Fisher
On Mon, Feb 13, 2012 at 9:01 PM, Jason Dagit dag...@gmail.com wrote: Is this the same or different than what you get with the -fext-core command? The very same. ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org

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 jameshfis...@gmail.com wrote: On Mon, Feb 13, 2012 at 9:01 PM, Jason Dagit dag...@gmail.com 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 let me

Re: [Haskell-cafe] xattr takeover

2012-02-13 Thread Ketil Malde
Deian Stefan haskell-c...@deian.net writes: I've been trying to get in touch with the maintainer (CC'd) about the xattr package for about a month. There are quite a few memory leaks (among other issues) for which I have a patch (see [1]). I would like to push the new version to Hackage, but

Re: [Haskell-cafe] Google Summer of Code 2012 Announced

2012-02-13 Thread Johan Tibell
On Mon, Feb 13, 2012 at 1:10 PM, Heinrich Apfelmus apfel...@quantentunnel.de wrote: What's the time frame for project proposals? I have two ideas in my head that I think are unusually cool. To make a successful SOC project, they need a bit of preparation on my part, though, so I'm wondering

Re: [Haskell-cafe] Google Summer of Code 2012 Announced

2012-02-13 Thread Sergiu Ivanov
Hello, On Mon, Feb 13, 2012 at 11:10 PM, Heinrich Apfelmus apfel...@quantentunnel.de wrote: What's the time frame for project proposals? I have two ideas in my head that I think are unusually cool. To make a successful SOC project, they need a bit of preparation on my part, though, so I'm

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

2012-02-13 Thread Roman Cheplyaka
* James Fisher jameshfis...@gmail.com [2012-02-13 21:24:26+] On Mon, Feb 13, 2012 at 9:01 PM, Jason Dagit dag...@gmail.com wrote: Is this the same or different than what you get with the -fext-core command? The very same. Oh. I usually use -ddump-simpl. Are they different for the

Re: [Haskell-cafe] Subject: A universal data store interface

2012-02-13 Thread Greg Weber
This proposal is vague and we would need to work with you to narrow things down a bit. Yes, that would be cool :-) Since I'm not familiar with Persistence at all (unfortunately :-( ), do you have some suggestions for me to start with? I've found this http://www.yesodweb.com/book/persistent

Re: [Haskell-cafe] Subject: A universal data store interface

2012-02-13 Thread Bardur Arantsson
On 02/13/2012 09:36 PM, Michael Snoyman wrote: You make it sound like your options are use the crippled abstraction layer or use the full-powered database layer. You're leaving out two very important points: 1. There's a reason the abstraction layer exists: it can be clumsy to go directly to

[Haskell-cafe] How do I get official feedback (ratings) on my GSoC proposal?

2012-02-13 Thread Greg Weber
Other than changing the status myself, how do I get a priority attached to my GSoC proposal? ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] How do I get official feedback (ratings) on my GSoC proposal?

2012-02-13 Thread Johan Tibell
On Mon, Feb 13, 2012 at 3:20 PM, Greg Weber g...@gregweber.info wrote: Other than changing the status myself, how do I get a priority attached to my GSoC proposal? What priorities are you referring to? -- Johan ___ Haskell-Cafe mailing list

[Haskell-cafe] Hackage 2 maintainership

2012-02-13 Thread Ben Gamari
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 the lack of an administrator. It seems to me this is a poor

Re: [Haskell-cafe] How do I get official feedback (ratings) on my GSoC proposal?

2012-02-13 Thread Greg Weber
http://hackage.haskell.org/trac/summer-of-code/report/1 There is a column 'Priority'. And there are now several unrated proposals. On Mon, Feb 13, 2012 at 3:40 PM, Johan Tibell johan.tib...@gmail.com wrote: On Mon, Feb 13, 2012 at 3:20 PM, Greg Weber g...@gregweber.info wrote: Other than

Re: [Haskell-cafe] Hackage 2 maintainership

2012-02-13 Thread Jeremy Shaw
Awesome! I am willing to assist with any Happstack related technical problems or questions that arise in trying to get this deployed. - jeremy On Mon, Feb 13, 2012 at 5:44 PM, Ben Gamari bgamari.f...@gmail.com wrote: Hey all, Those of you who follow the Haskell subreddit no doubt saw

Re: [Haskell-cafe] How do I get official feedback (ratings) on my GSoC proposal?

2012-02-13 Thread Thomas Schilling
It's usually the (potential) mentors who do the rating. I know we did that two years ago; can't remember last year, though. On 13 February 2012 23:45, Greg Weber g...@gregweber.info wrote: http://hackage.haskell.org/trac/summer-of-code/report/1 There is a column 'Priority'. And there are now

Re: [Haskell-cafe] How do I get official feedback (ratings) on my GSoC proposal?

2012-02-13 Thread Johan Tibell
Yes. I rated some myself and left a motivation for my rating and waited for someone to disagree. :) In general I was just trying to help students out by pushing down proposals that (in my experience) where too hard to complete in a summer or that were too narrow to benefit a larger portion of the

Re: [Haskell-cafe] Hackage 2 maintainership

2012-02-13 Thread Jason Dagit
On Mon, Feb 13, 2012 at 3:44 PM, Ben Gamari bgamari.f...@gmail.com 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

Re: [Haskell-cafe] Hackage 2 maintainership

2012-02-13 Thread Ross Paterson
On Mon, Feb 13, 2012 at 11:44:18PM +, Ben Gamari wrote: 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 the lack

Re: [Haskell-cafe] Hackage 2 maintainership

2012-02-13 Thread Casey McCann
On 02/13/2012 06:44 PM, Ben Gamari wrote: I currently have a running installation on my personal machine and things seem to be working as they should. On the whole, installation was quite trivial, so it seems likely that the project is indeed at a point where it can take real use (although a

Re: [Haskell-cafe] Hackage 2 maintainership

2012-02-13 Thread Duncan Coutts
Hi Ben, On 13 February 2012 23:44, Ben Gamari bgamari.f...@gmail.com 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

Re: [Haskell-cafe] Hackage 2 maintainership

2012-02-13 Thread Duncan Coutts
On 14 February 2012 01:53, Duncan Coutts duncan.cou...@googlemail.com wrote: Hi Ben, On 13 February 2012 23:44, Ben Gamari bgamari.f...@gmail.com 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

Re: [Haskell-cafe] Hackage 2 maintainership

2012-02-13 Thread Antoine Latter
On Mon, Feb 13, 2012 at 5:44 PM, Ben Gamari bgamari.f...@gmail.com 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

Re: [Haskell-cafe] Hackage 2 maintainership

2012-02-13 Thread Antoine Latter
On Mon, Feb 13, 2012 at 10:17 PM, Antoine Latter aslat...@gmail.com wrote: On Mon, Feb 13, 2012 at 5:44 PM, Ben Gamari bgamari.f...@gmail.com 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

Re: [Haskell-cafe] How to increase performance using concurrency for sequential producer-consumer problem

2012-02-13 Thread Mario Blažević
On 12-02-13 10:12 AM, Roel van Dijk wrote: Hello, I have a program which I believe can benefit from concurrency. But I am wondering if the mechanisms I need already exist somewhere on Hackage. You can try monad-coroutine. Here is an incomplete transcription of your code: import