[Haskell-cafe] "Best" FRP package for newbie

2012-02-16 Thread Arnaud Bailly
Hello, I am interested in exploring more in depth FRP. I had a look at the wiki page and started to explore "reactive" which looked promising at first glance and backed by quite a few articles and tutorials, but 1) it did not install properly on my haskell platform and 2) from the mailing-list arch

Re: [Haskell-cafe] "Good" Java book? (not off-topic)

2012-02-16 Thread Christoph Breitkopf
How about recommending a Scala book instead of Java? That would teach a functional mindset, and on stepping back to Java, they'd just have a different syntax for types, and some missing stuff. On the Java side, I own "A Little Java, a Few Patterns" by Friedmann and Felleisen. This would certainly

[Haskell-cafe] Command Line Tools for Xcode

2012-02-16 Thread Lyndon Maydwell
Hi Café. Has anyone read the news at http://kennethreitz.com/xcode-gcc-and-homebrew.html? It looks like Apple is going to support a minimalist command-line based toolchain for Xcode called "Command Line Tools for Xcode" based on the OSX-GCC-Installer project. Would Haskell support this rather t

Re: [Haskell-cafe] Haskell implementation of a database?

2012-02-16 Thread Aristid Breitkreuz
Are you looking for something like acid-state? Aristid Am 17.02.2012 07:57 schrieb "Vasili I. Galchin" : > Hello, > > I have been looking through Hackage database for a Haskell > implementation of a database(not a binding) but couldn't find anything. > Probably it was under my nose?? > > Va

[Haskell-cafe] Haskell implementation of a database?

2012-02-16 Thread Vasili I. Galchin
Hello, I have been looking through Hackage database for a Haskell implementation of a database(not a binding) but couldn't find anything. Probably it was under my nose?? Vasili ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.hask

Re: [Haskell-cafe] "Good" Java book? (not off-topic)

2012-02-16 Thread Simon Hengel
> Is there any book on Java that approaches the language in a way > that doesn't make programmers impervious to FP and Haskell? Two standard books are "Effective Java (EJ)" and "Java Concurrency in Practice (JCIP)". They aren't introductory; but I think they are a good idea if you want to use Jav

[Haskell-cafe] "Good" Java book? (not off-topic)

2012-02-16 Thread Ivan Perez
Hi, cafe, I find myself in the unusual position of having to recommend a few books on Java to people who want to use it professionally. As the people demanding this live in Burundi, I can't really say "Learn Haskell". Odds are they won't find a job there if they don't use mainstream languages. Is

Re: [Haskell-cafe] Compressed Data.Map for more efficient RAM usage?

2012-02-16 Thread Antoine Latter
On Thu, Feb 16, 2012 at 4:29 PM, Johan Tibell wrote: > On Thu, Feb 16, 2012 at 2:03 PM, Antoine Latter wrote: >> You could have a re-implemented HashMap which would un-pack the >> payload's ByteString constructor into the leaves of the HashMap type >> itself. >> >> Then you would save on both the

Re: [Haskell-cafe] Compressed Data.Map for more efficient RAM usage?

2012-02-16 Thread Johan Tibell
On Thu, Feb 16, 2012 at 2:03 PM, Antoine Latter wrote: > You could have a re-implemented HashMap which would un-pack the > payload's ByteString constructor into the leaves of the HashMap type > itself. > > Then you would save on both the keys and the values. Note that ByteString has a high per-va

Re: [Haskell-cafe] Compressed Data.Map for more efficient RAM usage?

2012-02-16 Thread Johan Tibell
On Thu, Feb 16, 2012 at 1:51 PM, Jeremy Shaw wrote: > Sometimes we  want to store very large collection types in RAM -- such as a > Data.Map or Data.IxSet. > > It seems like we could trade-off some speed for space savings by compressing > the values in RAM. Not knowing the actual data you want to

Re: [Haskell-cafe] Compressed Data.Map for more efficient RAM usage?

2012-02-16 Thread Antoine Latter
On Thu, Feb 16, 2012 at 3:51 PM, Jeremy Shaw wrote: > Sometimes we  want to store very large collection types in RAM -- such as a > Data.Map or Data.IxSet. > > It seems like we could trade-off some speed for space savings by compressing > the values in RAM. > > Lemmih has previously created compac

[Haskell-cafe] Compressed Data.Map for more efficient RAM usage?

2012-02-16 Thread Jeremy Shaw
Sometimes we want to store very large collection types in RAM -- such as a Data.Map or Data.IxSet. It seems like we could trade-off some speed for space savings by compressing the values in RAM. Lemmih has previously created compact-map: http://hackage.haskell.org/package/compact-map which mi

Re: [Haskell-cafe] Monadic bind fixity: do vs (>>)

2012-02-16 Thread Ryan Ingram
The desugaring is simpler with the current setup: do { e } => e do { let p = e; STMTS } => let p = e in (do { STMTS }) do { e; STMTS } => e >> (do { STMTS }) do { p <- e; STMTS } => e >>= \x -> case x of { p -> (do { STMTS }) ; _ -> fail "pattern match failure" } [x is a fresh varia

Re: [Haskell-cafe] [Haskell] ANNOUNCE: system-filepath 0.4.5 and system-fileio 0.3.4

2012-02-16 Thread John Meacham
On Thu, Feb 16, 2012 at 1:20 PM, Ian Lynagh wrote: > I've now implemented this in GHC. For now, the syntax is: > > type    {-# CTYPE "some C type" #-} Foo = ... > newtype {-# CTYPE "some C type" #-} Foo = ... > data    {-# CTYPE "some C type" #-} Foo = ... > > The magic for (Ptr a) is built in to

Re: [Haskell-cafe] [Haskell] ANNOUNCE: system-filepath 0.4.5 and system-fileio 0.3.4

2012-02-16 Thread Ian Lynagh
On Thu, Feb 09, 2012 at 11:40:28AM -0800, John Meacham wrote: > On Thu, Feb 9, 2012 at 11:23 AM, Ian Lynagh wrote: > > On Thu, Feb 09, 2012 at 04:52:16AM -0800, John Meacham wrote: > >> > >> Since CSigSet has "sigset_t" associated with it, 'Ptr CSigSet' ends up > >> turning > >> into 'sigset_t *'

Re: [Haskell-cafe] Transactional memory going mainstream with Intel Haswell

2012-02-16 Thread Ryan Ingram
It seems like it would still be useful for *optimizing* the implementation of STM in Haskell; in particular, small transactions seem like a great way to implement lock-free data structures by handling the non-composability of compare-and-swap. So while you wouldn't implement "atomically a" by "XBE

[Haskell-cafe] GSoc-2012: Lock-free Data Structures

2012-02-16 Thread Sergiu Ivanov
Hello, On Thu, Feb 16, 2012 at 5:40 AM, Ryan Newton wrote: > I'm interested in mentoring any projects related to concurrent data > structure implementation.  Is it too late to propose new projects? > >  http://parfunk.blogspot.com/2012/02/potential-gsoc-haskell-lock-free-data.html This project i

Re: [Haskell-cafe] [haskell-cafe] Some reflections on Haskell

2012-02-16 Thread A.M.
On 16/02/2012, at 12:21 PM, Christoph Breitkopf wrote: > > Apart from the IDE matter, I'd also would like to see some sort of rating > system on Hackage, or at least some support to choose between the available > packages. Indicators might be popularity, actively maintained, age, ... Many > p

Re: [Haskell-cafe] [haskell-cafe] Some reflections on Haskell

2012-02-16 Thread Christoph Breitkopf
Since people are mentioning how great the Haskell type system is for refactoring, here's one of those "wow, that's really great" experiences I just had hacking on some Java code in Eclipse. I wanted to remove duplicate code, so I selected one of the duplications and used Refactor->Extract method.

Re: [Haskell-cafe] Behavior of -threaded in GHC 7.4.1?

2012-02-16 Thread Michael Craig
Got this figured out, so I thought I'd update the list: The problem was a call to `addFinalizer` on a `Socket` value, where data Socket a = Socket { _socket :: Ptr () , _sockLive :: IORef Bool } Under 7.4.1 with -threaded, the finalizer was being run prematurely. I'm not clear on

[Haskell-cafe] New GSoC on Concurrent Data Structures -- was: How do I get official feedback (ratings) on my GSoC proposal?

2012-02-16 Thread Ryan Newton
Neat, thanks Johan! (I had no idea it was so easy to post to Reddit.) I also put the proposed project on the trac: http://hackage.haskell.org/trac/summer-of-code/ticket/1608 So feel free to contact me, interested students! Cheers, -Ryan On Thu, Feb 16, 2012 at 12:51 AM, Johan Tibell wr

Re: [Haskell-cafe] Vim plugin for ghc-mod

2012-02-16 Thread Vincent Hanquez
On 02/16/2012 08:21 PM, Magnus Therning wrote: On Thu, Feb 16, 2012 at 09:51, Kazu Yamamoto wrote: Hello, eagletmt implemented a Vim plugin for ghc-mod: https://github.com/eagletmt/ghcmod-vim Happy Haskell programming on Vim! Thank you for pointing this out on the list. My Vim setu

Re: [Haskell-cafe] Undocumented cost-centres (.\) using auto-all, and SCC pragma not being honored

2012-02-16 Thread Dan Maftei
On Wed, Feb 15, 2012 at 9:51 PM, Thomas Schilling wrote: > On 15 February 2012 16:17, Dan Maftei wrote: > > > > 1 When profiling my code with -auto-all, my .prof file names some > sub-expressions with a backslash. Cf. below. What are these? > > > > e_step > > e_step.ewords > > e_

Re: [Haskell-cafe] Vim plugin for ghc-mod

2012-02-16 Thread Magnus Therning
On Thu, Feb 16, 2012 at 09:51, Kazu Yamamoto wrote: > Hello, > > eagletmt implemented a Vim plugin for ghc-mod: > >        https://github.com/eagletmt/ghcmod-vim > > Happy Haskell programming on Vim! Thank you for pointing this out on the list. My Vim setup has now improved by a few 100%, thanks

Re: [Haskell-cafe] Test suite sections of cabal

2012-02-16 Thread Felipe Almeida Lessa
On Thu, Feb 16, 2012 at 7:24 AM, Kazu Yamamoto wrote: > Do you mean that if we separate directories for src and test, > build-depends of test-suite works, and if we don't separate, it does > not work? If we have separate directories, then you can "build-depends: own-package". This means that on

Re: [Haskell-cafe] Test suite sections of cabal

2012-02-16 Thread 山本和彦
>> 2) build-dependency >> >>  I need to repeat all build-dependency of a library section to >>  a test suite section. Specifying the library itself to >>  build-dependency of a test suite section does not work. >>  This violates the DRY philosophy. > > You may specify the same library as a depende

Re: [Haskell-cafe] Vim plugin for ghc-mod

2012-02-16 Thread Nicolas Wu
On 16 February 2012 08:51, Kazu Yamamoto wrote: > eagletmt implemented a Vim plugin for ghc-mod: > >        https://github.com/eagletmt/ghcmod-vim > > Happy Haskell programming on Vim! Note that there's also support for ghc-mod using [syntastic][1] for vim, which is well supported for Haskell and

Re: [Haskell-cafe] Test suite sections of cabal

2012-02-16 Thread Felipe Almeida Lessa
On Thu, Feb 16, 2012 at 12:56 AM, Kazu Yamamoto wrote: > 2) build-dependency > >  I need to repeat all build-dependency of a library section to >  a test suite section. Specifying the library itself to >  build-dependency of a test suite section does not work. >  This violates the DRY philosophy.

[Haskell-cafe] Vim plugin for ghc-mod

2012-02-16 Thread 山本和彦
Hello, eagletmt implemented a Vim plugin for ghc-mod: https://github.com/eagletmt/ghcmod-vim Happy Haskell programming on Vim! --Kazu ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Haskell-Cafe Tag (was: Optimizations and parallel execution in the IO for a small spellchecker)

2012-02-16 Thread David Virebayre
Le 15 février 2012 21:32, JP Moresmau a écrit : > OK, thanks all, I can stop worrying being an uncouth Frenchman, then... Not that I post a lot, but you had me worried for a while, too. David. ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org htt