Re: [Haskell-cafe] Clarifying a mis-understanding about regions (and iteratees)

2012-02-23 Thread Yves Parès
Hi, so there are different regions libraries? Is there a shootout comparing them, possibly also with ResourceT from conduit (which has also been implemented in a stand-alone package http://hackage.haskell.org/package/resource-simple-0.1 by Robin Banks), for I take it it tries to respond to the

Re: [Haskell-cafe] getAddrInfo: does not exist

2012-02-23 Thread iquiw
I suppose you need to specify addrSocketType (usually Stream or Datagram) for defaultHints. Although it seems it is not required on recent versions of FreeBSD (= 8.x?), I think it is better to specify addrSocketType always. # sorry, I forgot CC to haskell-cafe. On Wed, Feb 22, 2012 at 8:26 PM,

Re: [Haskell-cafe] Clarifying a mis-understanding about regions (and iteratees)

2012-02-23 Thread John Lato
. ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe -- next part -- An HTML attachment was scrubbed... URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20120223/b14ad2b2/attachment.htm

[Haskell-cafe] Haskell compilers targeting VMs

2012-02-23 Thread ARJANEN Loïc Jean David
Hello, Does any one knows of an Haskell compiler targeting the JVM ? And of one targeting the .Net virtual machine ? Regards, ARJANEN Loïc ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] getAddrInfo: does not exist

2012-02-23 Thread Alexander Vasiliev
Thank you. I have specified addrSocketType. And now it works. 23 февраля 2012 г. 13:17 пользователь iquiw iku.iw...@gmail.com написал: I suppose you need to specify addrSocketType (usually Stream or Datagram) for defaultHints. Although it seems it is not required on recent versions of

Re: [Haskell-cafe] Haskell compilers targeting VMs

2012-02-23 Thread Jurriën Stutterheim
The UHC can compile to JVM[1, 2], but the backend is far from production-ready. Also, I don't believe anyone is working on the backend currently. Jurriën [1] http://www.cs.uu.nl/wiki/bin/view/Ehc/Documentation [2] http://www.cs.uu.nl/groups/ST/Projects/ehc/ehc-jazy-doc.pdf On 23 Feb 2012, at

[Haskell-cafe] ANN: cabal-file-th-0.2.2

2012-02-23 Thread Simon Michael
I have uploaded a new version of cabal-file-th which bumps the Cabal upper bound to avoid difficulties with GHC 7.4. Best - Simon ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Haskell compilers targeting VMs

2012-02-23 Thread Tom Murphy
There are some substantial technical challenges: http://www.haskell.org/haskellwiki/GHC:FAQ#Why_isn.27t_GHC_available_for_.NET_or_on_the_JVM.3F Not that it can't be done, but there's nothing ready yet. Tom (IRC: amindfv) On 2/23/12, ARJANEN Loïc Jean David arjanen.l...@gmail.com wrote:

Re: [Haskell-cafe] ANN: network-socket-options 0.1

2012-02-23 Thread Joey Adams
On Wed, Feb 22, 2012 at 10:23 PM, Johan Tibell johan.tib...@gmail.com wrote: But the network package doesn't try to let you work with raw file descriptors elsewhere (e.g. send and recv.) I'm not saying that functions on Fds aren't useful, they are, just that the network package is the wrong

Re: [Haskell-cafe] Haskell compilers targeting VMs

2012-02-23 Thread Daniel Peebles
A more subtle issue is that there's some sort of memory leak that arises when you can't instruct the GC to follow projection functions of data types. I believe the GHC heap representation has a built-in notion of these forwarding closures and the GC follows them when possible, but most VM GCs are

[Haskell-cafe] Using multiplate to get free variables from a syntax tree

2012-02-23 Thread Matt Brown
Hi all, I'm reading the haskellwiki article on multiplate. Is it possible to modify the getVariablesPlate example to return the free variables? One idea I had is to store an environment in a reader monad, and use local to update the environment at a let expression. Couldn't figure it out,

Re: [Haskell-cafe] ANN: generic-deepseq 1.0.0.0

2012-02-23 Thread Johan Tibell
2012/2/23 Maxime Henrion mhenr...@gmail.com: According to criterion, the performance of the old generic-deepseq code was 6 to 7 times worse than that of the deepseq package. After switching the class function to rnf, it got on par, if not better than the deepseq package. I'm saying if not,

Re: [Haskell-cafe] ANN: generic-deepseq 1.0.0.0

2012-02-23 Thread Bas van Dijk
On 23 February 2012 22:09, Maxime Henrion mhenr...@gmail.com wrote: On Sun, 2012-02-19 at 21:06 +0100, Bas van Dijk wrote: On 19 February 2012 18:11, Maxime Henrion mhenr...@gmail.com wrote: I'm guilty of not having preserved the rnf :: a - () function as the class function though, it's a

Re: [Haskell-cafe] ANN: generic-deepseq 1.0.0.0

2012-02-23 Thread Maxime Henrion
On Thu, 2012-02-23 at 23:24 +0100, Bas van Dijk wrote: On 23 February 2012 22:09, Maxime Henrion mhenr...@gmail.com wrote: On Sun, 2012-02-19 at 21:06 +0100, Bas van Dijk wrote: On 19 February 2012 18:11, Maxime Henrion mhenr...@gmail.com wrote: I'm guilty of not having preserved the rnf

Re: [Haskell-cafe] ANN: generic-deepseq 1.0.0.0

2012-02-23 Thread Maxime Henrion
On Thu, 2012-02-23 at 23:45 +0100, Maxime Henrion wrote: On Thu, 2012-02-23 at 23:24 +0100, Bas van Dijk wrote: * Why do you have the instance: instance GDeepSeq V1 where grnf _ = () The only way to construct values of a void type is using ⊥. And I would expect that rnf ⊥ = ⊥, not

Re: [Haskell-cafe] ANN: network-socket-options 0.1

2012-02-23 Thread Conrad Parker
On 24 February 2012 01:01, Joey Adams joeyadams3.14...@gmail.com wrote: On Wed, Feb 22, 2012 at 10:23 PM, Johan Tibell johan.tib...@gmail.com wrote: But the network package doesn't try to let you work with raw file descriptors elsewhere (e.g. send and recv.) I'm not saying that functions on

[Haskell-cafe] Data.IntMap union complexity

2012-02-23 Thread Clark Gaebel
Looking at IntMap's left-biased 'union' function [1], I noticed that the complexity is O(n+m) where n is the size of the left map, and m is the size of the right map. Since insertion [2] is O(min(n, W)) [ where W is the number of bits in an Int ], wouldn't it be more efficient to just fold

Re: [Haskell-cafe] Data.IntMap union complexity

2012-02-23 Thread 山本和彦
Hello, Looking at IntMap's left-biased 'union' function [1], I noticed that the complexity is O(n+m) where n is the size of the left map, and m is the size of the right map. Since insertion [2] is O(min(n, W)) [ where W is the number of bits in an Int ], wouldn't it be more efficient to

[Haskell-cafe] Haskell compilers targeting VMs

2012-02-23 Thread Carlton Mills
  LLVM has a .net and JVM code generator. I don't think it is production ready yet. GHC can generate code via LLVM. So in theory one could run on either VM. However, see the Why isn't GHC available ... link below. The GC and library integration would require lot's of work. Good senior project

[Haskell-cafe] SURVEY: hledger, shelltestrunner, rss2irc, FunGEn usage 2012

2012-02-23 Thread Simon Michael
Hey all, I'm gathering usage data on my main FOSS projects, to help me prioritize and steer them. I've prepared a short survey, 10 optional questions that should take 1-5 minutes per project. If you use any of these projects and/or would like them to continue, you can help a lot by adding your

Re: [Haskell-cafe] Data.IntMap union complexity

2012-02-23 Thread wren ng thornton
On 2/23/12 9:16 PM, Clark Gaebel wrote: Looking at IntMap's left-biased 'union' function [1], I noticed that the complexity is O(n+m) where n is the size of the left map, and m is the size of the right map. Since insertion [2] is O(min(n, W)) [ where W is the number of bits in an Int ],

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

2012-02-23 Thread Matias Hernandez
I though it might work without it, but I get the error I mentioned: cabal: Error: some packages failed to install: network-2.3.0.10 failed during the configure step. The exception was: ExitFailure 1 Well, I'll try with msys. Thanks for your time! ___

[Haskell-cafe] Hackage documentation down?

2012-02-23 Thread wren ng thornton
Hello all, I posted a minor update to unix-bytestring a few days ago in order to deal with the Num not implying Eq thing in GHC 7.4, but it looks like the documentation still hasn't been made (nor the built-on field). Are the Hackage builders down intentionally since the recent crash, or

Re: [Haskell-cafe] Data.IntMap union complexity

2012-02-23 Thread Clark Gaebel
The situation I encounted this is doing a batch update of a map. Is there an easy way to do that? I'm doing something like adding 20-or-so elements to an existing map of a few thousand. On Thu, Feb 23, 2012 at 10:13 PM, wren ng thornton w...@freegeek.orgwrote: On 2/23/12 9:16 PM, Clark Gaebel

Re: [Haskell-cafe] Data.IntMap union complexity

2012-02-23 Thread wren ng thornton
On 2/23/12 10:22 PM, Clark Gaebel wrote: The situation I encounted this is doing a batch update of a map. Is there an easy way to do that? I'm doing something like adding 20-or-so elements to an existing map of a few thousand. The O(m+n) of the merging functions is actually on the order of the

Re: [Haskell-cafe] Streaming to JuicyPixels

2012-02-23 Thread Myles C. Maxfield
So I started working on moving JuicyPixels to a streaming interface, and have some observations. This is going to be a pretty major change, touching pretty much every function, and the end result will end up looking very close to the code that I have already written. I'm not nearly as close to the

Re: [Haskell-cafe] ANN: generic-deepseq 1.0.0.0

2012-02-23 Thread José Pedro Magalhães
Hi, 2012/2/23 Maxime Henrion mhenr...@gmail.com * Why do you have the instance: instance GDeepSeq V1 where grnf _ = () The only way to construct values of a void type is using ⊥. And I would expect that rnf ⊥ = ⊥, not (). I think the best thing is to just remove the V1 instance.