Re: [Haskell-cafe] ANN: hp2html, a tool for viewing GHC heap-profiles

2012-02-21 Thread Johan Tibell
On Tue, Feb 21, 2012 at 7:36 PM, Iavor Diatchki iavor.diatc...@gmail.com wrote: Hello, I made a new version of `hp2html` (0.2), which shows the legend by default (take a look at at the attached screen shot).  If the legend is in the way, you can turn it off (and on) by clicking on the button

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

2012-02-22 Thread Johan Tibell
Hi Conrad and Joey, On Tue, Feb 21, 2012 at 4:36 PM, Conrad Parker con...@metadecks.org wrote: awesome! I've prepared some patches for network to add this module and its tests, in this branch: https://github.com/kfish/network/tree/options I didn't modify any other modules, perhaps

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

2012-02-22 Thread Johan Tibell
Hi, On Wed, Feb 22, 2012 at 10:43 AM, Joey Adams joeyadams3.14...@gmail.com wrote: I know it's a bit ugly, but not having it makes it hard to work with unmanaged sockets (e.g. those buried under Handles).  If the functions take a managed Socket, you'd have to say something like:    

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,

[Haskell-cafe] Fwd: Now Accepting Applications for Mentoring Organizations for GSoC 2012

2012-02-28 Thread Johan Tibell
Hi all, Anyone interested in acting as an admin for haskell.org this year? I'm afraid I won't have time. It's not that much work (filling in some information, sending out some emails, making sure things happen in time.) -- Forwarded message -- From: Carol Smith car...@google.com

Re: [Haskell-cafe] Fwd: Now Accepting Applications for Mentoring Organizations for GSoC 2012

2012-02-29 Thread Johan Tibell
On Wed, Feb 29, 2012 at 6:29 AM, Ryan Newton rrnew...@gmail.com wrote: Is there any official way that mentors should sign up to become part of the org? For one thing I heard a rumor that bigger orgs look better from Google's end. Once haskell.org is registered as an organization you need

Re: [Haskell-cafe] Fwd: Now Accepting Applications for Mentoring Organizations for GSoC 2012

2012-03-01 Thread Johan Tibell
On Thu, Mar 1, 2012 at 12:54 PM, Ganesh Sittampalam gan...@earth.li wrote: FYI, Edward Kmett has volunteered to do it again. That's great since he's the most experienced GSoC admin we have. :) There's still room for a replacement for me. I had a few people show interest so far.

Re: [Haskell-cafe] Fwd: Now Accepting Applications for Mentoring Organizations for GSoC 2012

2012-03-01 Thread Johan Tibell
On Thu, Mar 1, 2012 at 1:42 PM, Ganesh Sittampalam gan...@earth.li wrote: On 01/03/2012 21:37, Johan Tibell wrote: On Thu, Mar 1, 2012 at 12:54 PM, Ganesh Sittampalam gan...@earth.li mailto:gan...@earth.li wrote: FYI, Edward Kmett has volunteered to do it again. That's great

Re: [Haskell-cafe] using mutable data structures in pure functions

2012-03-11 Thread Johan Tibell
On Sun, Mar 11, 2012 at 8:38 PM, E R pc88m...@gmail.com wrote: 1. leave it to the compiler to find these kinds of opportunities 2. just use the immutable data structures - after all they are just as good (at least asymptotically) 3. you don't want to use mutable data structures because of

[Haskell-cafe] Prettier pretty-printing of data types?

2012-03-13 Thread Johan Tibell
Hi all, The derived Show instance is useful, but I sometimes wish for something that's easier to read for big data types. Does anyone have an implementation of show that draws things in a hierarchical manner? Example: Given data Tree a = Leaf | Bin Int a (Tree a) (Tree a) and value =

Re: [Haskell-cafe] using mutable data structures in pure functions

2012-03-14 Thread Johan Tibell
On Wed, Mar 14, 2012 at 5:50 PM, wren ng thornton w...@freegeek.org wrote: Do note, however, that in certain cases the ST approach can be much slower than the obvious immutable approach (i.e., the State monad--- especially when implemented directly via argument passing, rather than using the

[Haskell-cafe] A new home for haskell-mode

2012-03-14 Thread Johan Tibell
Hi all, After a discussion with Philip Weaver and a few other interested parties in the community we've moved Philip's repo from https://github.com/pheaver/haskell-mode to the new official location at: https://github.com/haskell/haskell-mode You can file bugs/feature requests at:

Re: [Haskell-cafe] Too much inlining on text package

2012-03-16 Thread Johan Tibell
I suggest you file a bug. :) https://github.com/bos/text/issues -- Johan ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Too much inlining on text package

2012-03-16 Thread Johan Tibell
On Fri, Mar 16, 2012 at 3:48 PM, Aleksey Khudyakov alexey.sklad...@gmail.com wrote: On 17.03.2012 02:24, Johan Tibell wrote: I suggest you file a bug. :) I'm way too lazy for that. Also I don't want to steal joy of reporting a bug from people who actually suffer from it I meant you

Re: [Haskell-cafe] A GSoC Proposal

2012-03-17 Thread Johan Tibell
On Sat, Mar 17, 2012 at 8:21 AM, Kit Barnes k...@ninjalith.com wrote: I have a proposal for a GSoC project that I wish to undertake. Is this a good place for me to begin discussing it? Yes! -- Johan ___ Haskell-Cafe mailing list

[Haskell-cafe] CFT -- Haskell Implementors' Workshop 2012

2012-04-17 Thread Johan Tibell
Augustsson (Standard Chartered Bank) * Manuel M T Chakravarty (University of New South Wales) * Gregory Collins - co-chair (Google) * Simon Marlow (Microsoft Research) * David Terei(Stanford University) * Johan Tibell - co-chair(Google

Re: [Haskell-cafe] Is protocol-buffers package maintainer reachable?

2012-04-23 Thread Johan Tibell
On Mon, Apr 23, 2012 at 7:53 AM, Max Rabkin max.rab...@gmail.com wrote: On Mon, Apr 23, 2012 at 15:01, Paul Graphov grap...@gmail.com wrote: And what should I do if he is unreachable? My feeling is that if you are willing to take it on, you should ask this list if anybody objects to your

Re: [Haskell-cafe] No email verification token from trac.haskell.org

2012-04-23 Thread Johan Tibell
On Mon, Apr 23, 2012 at 7:42 AM, Niklas Broberg niklas.brob...@gmail.com wrote: Hi all, I have problems with my trac for haskell-src-exts. When I log in, I am asked to verify my email address, but no verification token is ever sent to my email address. And before I verify my address, I'm not

[Haskell-cafe] ANN: containers-0.5.0.0

2012-05-03 Thread Johan Tibell
in the strict and lazy APIs are the same, so you can still use the same container in a mixed manner, if needed. Contributors to this release: Milan Straka Johan Tibell Joachim Breitner Edward Z. Yang Herbert Valerio Riedel Matt West Max Bolingbroke Cheers, The containers maintainers

Re: [Haskell-cafe] Haskell and arrays

2012-05-04 Thread Johan Tibell
Hi Morten, If speed is really important I would go with the vector package. It has a more modern API and better performance. -- Johan ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] attoparsec double precision, quickCheck and aeson

2012-06-05 Thread Johan Tibell
On Tue, Jun 5, 2012 at 9:12 AM, Warren Harris warrensomeb...@gmail.com wrote: which helps in many cases, but for some the parsing seems bi-stable, alternating between two imprecise double values and causing the test to fail. You want to perform your test as d1 - d2 epsilon where epsilon

Re: [Haskell-cafe] attoparsec double precision, quickCheck and aeson

2012-06-05 Thread Johan Tibell
On Tue, Jun 5, 2012 at 9:51 AM, Warren Harris warrensomeb...@gmail.com wrote: On Jun 5, 2012, at 9:38 AM, Johan Tibell wrote: You want to perform your test as    d1 - d2 epsilon What's the best way to do this though, since aeson's Value type already provides instance Eq? I guess I can

Re: [Haskell-cafe] attoparsec double precision, quickCheck and aeson

2012-06-05 Thread Johan Tibell
On Tue, Jun 5, 2012 at 10:51 AM, Bryan O'Sullivan b...@serpentine.com wrote: If you need the full precision, use rational instead. The double parser is there because parsing floating point numbers is often a bottleneck, and double intentionally trades speed for precision. Relevant code in

Re: [Haskell-cafe] Introducing FP Complete

2012-06-05 Thread Johan Tibell
Welcome to the community Bartosz. -- Johan ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] High memory usage with 1.4 Million records?

2012-06-08 Thread Johan Tibell
Hi Andrew, On Thu, Jun 7, 2012 at 5:39 PM, Andrew Myers asm...@gmail.com wrote: Hi Cafe, I'm working on inspecting some data that I'm trying to represent as records in Haskell and seeing about twice the memory footprint than I was expecting.  I've got roughly 1.4 million records in a CSV file

Re: [Haskell-cafe] High memory usage with 1.4 Million records?

2012-06-11 Thread Johan Tibell
On Fri, Jun 8, 2012 at 1:40 PM, Johan Tibell johan.tib...@gmail.com wrote: GHC used to complain when you use UNPACK with something that can't be unpacked, but that warning seems to have been (accidentally) removed in 7.4.1. Turns out the warning is only on if you compile with -O or higher

[Haskell-cafe] Haskell Implementors' Workshop 2012, Second CFT

2012-06-19 Thread Johan Tibell
Augustsson (Standard Chartered Bank) * Manuel M T Chakravarty (University of New South Wales) * Gregory Collins - co-chair (Google) * Simon Marlow (Microsoft Research) * David Terei(Stanford University) * Johan Tibell - co-chair(Google

Re: [Haskell-cafe] Cannot System,Timeout.timeout Network.accept

2012-06-21 Thread Johan Tibell
Some functions in the network package are: NOTE: blocking on Windows unless you compile with -threaded (see GHC ticket #1129) This note does appear next to 'accept', but could you try to compile with -threaded and see if that makes a difference? -- Johan

[Haskell-cafe] Haskell Implementors' Workshop talk proposals due in one week!

2012-07-03 Thread Johan Tibell
Augustsson (Standard Chartered Bank) * Manuel M T Chakravarty (University of New South Wales) * Gregory Collins - co-chair (Google) * Simon Marlow (Microsoft Research) * David Terei(Stanford University) * Johan Tibell - co-chair(Google

Re: [Haskell-cafe] Haskell Implementors' Workshop talk proposals due in one week!

2012-07-09 Thread Johan Tibell
Reminder. The deadline is end-of-day this Tuesday. On Tue, Jul 3, 2012 at 7:17 AM, Johan Tibell johan.tib...@gmail.com wrote: Call for Talks ACM SIGPLAN Haskell Implementors' Workshop http://haskell.org/haskellwiki/HaskellImplementorsWorkshop

[Haskell-cafe] Haskell Implementors' Workshop 2012: Call for Participation

2012-08-01 Thread Johan Tibell
-Chairs: Gregory Collins, Google Johan Tibell, Google * Program Committee: Lennart Augustsson, Standard Chartered Bank Manuel M T Chakravarty, University of New South Wales Simon Marlow, Microsoft Research David Terei, Stanford University

Re: [Haskell-cafe] Possible bug in Criterion or Statistics package

2012-08-07 Thread Johan Tibell
Hi Till, This would make an excellent bug report at: https://github.com/bos/criterion/issues Cheers, Johan ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] MIN_VERSION_base

2012-08-09 Thread Johan Tibell
On Thu, Aug 9, 2012 at 8:50 PM, Kazu Yamamoto k...@iij.ad.jp wrote: Hello, The stable branch of the network library includes the following code: #if !(MIN_VERSION_base(4,6,0)) I cannot compile the stable branch with HP 2011.4.0.0 on Linux 2: Preprocessing library

Re: [Haskell-cafe] Hackage is down?

2012-08-11 Thread Johan Tibell
+Malcom On Sat, Aug 11, 2012 at 11:31 AM, hanjoosten han.joos...@atos.net wrote: Hi, Hackage seems to be down. Is there anyone out here who knows how to get it online again? Thanks! -- View this message in context: http://haskell.1045720.n5.nabble.com/Hackage-is-down-tp5715912.html

Re: [Haskell-cafe] Platform Versioning Policy: upper bounds are not our friends

2012-08-15 Thread Johan Tibell
On Wed, Aug 15, 2012 at 12:38 PM, Bryan O'Sullivan b...@serpentine.com wrote: I propose that the sense of the recommendation around upper bounds in the PVP be reversed: upper bounds should be specified only when there is a known problem with a new version of a depended-upon package. This

Re: [Haskell-cafe] Platform Versioning Policy: upper bounds are not our friends

2012-08-15 Thread Johan Tibell
On Wed, Aug 15, 2012 at 1:02 PM, Brandon Allbery allber...@gmail.com wrote: So we are certain that the rounds of failures that led to their being *added* will never happen again? It would be useful to have some examples of these. I'm not sure we had any when we wrote the policy (but Duncan

Re: [Haskell-cafe] Cabal Test-suites + custom preprocessors

2012-08-26 Thread Johan Tibell
On Sun, Aug 26, 2012 at 12:40 PM, Iain Nicol i...@thenicols.net wrote: Hi café, I am successfully using a custom preprocessor to build my main executable. In particular, I am using UUAGC to preprocess .ag files into .hs files. My Setup.hs file uses 'uuagcLibUserHook' from the package

Re: [Haskell-cafe] Cabal Test-suites + custom preprocessors

2012-08-26 Thread Johan Tibell
On Sun, Aug 26, 2012 at 1:03 PM, Iain Nicol i...@thenicols.net wrote: Johan Tibell wrote: On Sun, Aug 26, 2012 at 12:40 PM, Iain Nicol i...@thenicols.net wrote: Does anybody know if Cabal actually supports using custom preprocessors for building a test-suite? If so, is 'buildHook' still

Re: [Haskell-cafe] ANNOUNCE: persistent-vector-0.1.0.1

2012-08-29 Thread Johan Tibell
On Wed, Aug 29, 2012 at 10:13 AM, Alberto G. Corona agocor...@gmail.com wrote: Where the persistent part of the name comes from?. It can be serialized/deserialized from a persistent storage automatically or on demand? Persistent have two meanings unfortunately. In functional programming it's

Re: [Haskell-cafe] performance issues with popCount

2012-09-06 Thread Johan Tibell
Hi Harald, On Thu, Sep 6, 2012 at 9:46 AM, Harald Bögeholz b...@ct.de wrote: Anyway, I tried this version popCount :: Integer - Int popCount = go 0 where go c 0 = c go c w = go (c+1) (w .. (w - 1)) and profiling showed that my program spent 80 % of its time counting

Re: [Haskell-cafe] performance issues with popCount

2012-09-07 Thread Johan Tibell
On Fri, Sep 7, 2012 at 4:54 AM, Nicolas Trangez nico...@incubaid.com wrote: On Thu, 2012-09-06 at 12:07 -0700, Johan Tibell wrote: Have a look at the popCount implementation for e.g. Int, which are written in C and called through the FFI: https://github.com/ghc/packages-ghc-prim/blob/master

Re: [Haskell-cafe] Destructive updates to plain ADTs

2012-09-09 Thread Johan Tibell
On Sun, Sep 9, 2012 at 1:46 AM, Milan Straka f...@ucw.cz wrote: Hi all, is there any way to perform a destructive update on a plain ADT? Imagine I have a simple data Tree a = Nil | Node a (Tree a) (Tree a) I would like to be able to modify right subtree of an existing tree. I can do that

Re: [Haskell-cafe] Destructive updates to plain ADTs

2012-09-09 Thread Johan Tibell
On Sun, Sep 9, 2012 at 2:19 AM, MigMit miguelim...@yandex.ru wrote: Why modify it instead of creating the new one and let the previous tree get garbage collected? You can avoid a bunch of copying and allocation by modifying the nodes in-place. See

Re: [Haskell-cafe] How to implement nested loops with tail recursion?

2012-09-19 Thread Johan Tibell
On Wed, Sep 19, 2012 at 7:24 PM, sdiy...@sjtu.edu.cn wrote: main = do let f 0 acc = return acc f n acc = do v - return 1 f (n-1) (v+acc) f 100 100 = print Try this main = do let

Re: [Haskell-cafe] How to implement nested loops with tail recursion?

2012-09-19 Thread Johan Tibell
On Wed, Sep 19, 2012 at 8:00 PM, sdiy...@sjtu.edu.cn wrote: So how do I force IO actions whose results are discarded (including IO ()) to be strict? In your particular case it looks like you want Data.IORef.modifyIORef'. If your version of GHC doesn't include it you can write it like so: --

Re: [Haskell-cafe] 64-bit vs 32-bit haskell platform on Mac: misleading notice on Platform website?

2012-09-26 Thread Johan Tibell
Hi, On Wed, Sep 26, 2012 at 7:44 AM, Carter Schonwald carter.schonw...@gmail.com wrote: To the best of my knowledge there is absolutely no reason to use the 32bit haskell on OS X (aside from memory usage optimization cases which likely do not matter to the *typical* user), and the community

Re: [Haskell-cafe] 64-bit vs 32-bit haskell platform on Mac: misleading notice on Platform website?

2012-09-26 Thread Johan Tibell
Adding Mark who's the release manager for the platform (and also the maintainer of the OS X builds). On Wed, Sep 26, 2012 at 11:57 AM, Erik Hesselink hessel...@gmail.com wrote: On Wed, Sep 26, 2012 at 10:58 AM, Johan Tibell johan.tib...@gmail.com wrote: On Wed, Sep 26, 2012 at 7:44 AM, Carter

[Haskell-cafe] ANN: cabal-install-1.16.0 (and Cabal-1.16.0.1)

2012-10-03 Thread Johan Tibell
On the behalf of the many contributors to cabal, I'm proud to present cabal-install-1.16.0. This release contains almost a year worth of patches. Highlights include: * Parallel installs (cabal install -j) * Several improvements to the dependency solver. * Lots of bugfixes We're also

Re: [Haskell-cafe] ANN: cabal-install-1.16.0 (and Cabal-1.16.0.1)

2012-10-03 Thread Johan Tibell
On Wed, Oct 3, 2012 at 6:21 PM, José Lopes jose.lo...@ist.utl.pt wrote: Hello, I just tried to upgrade cabal-install using an older version and it yields the following error: Distribution/Client/JobControl.hs:63:6: Not in scope: `mask' We tested on GHC 7.0.4, 7.4.1, and 7.6.1. If you need

Re: [Haskell-cafe] total Data.Map.! function

2012-10-03 Thread Johan Tibell
Hi, On Wed, Oct 3, 2012 at 7:52 PM, Henning Thielemann lemm...@henning-thielemann.de wrote: I wondered whether there is a brilliant typing technique that makes Data.Map.! a total function. That is, is it possible to give (!) a type, such that m!k expects a proof that the key k is actually

Re: [Haskell-cafe] ANN: cabal-install-1.16.0 (and Cabal-1.16.0.1)

2012-10-03 Thread Johan Tibell
On Wed, Oct 3, 2012 at 9:15 PM, Austin Seipp mad@gmail.com wrote: Just a heads up: on Ubuntu 12.04 with GHC 7.4.1 out of apt (no haskell-platform,) using the bootstrap.sh script fails, because the constraints for CABAL_VER_REGEXP are too lax: $ sh ./bootstrap.sh Checking installed

Re: [Haskell-cafe] ANN: cabal-install-1.16.0 (and Cabal-1.16.0.1)

2012-10-03 Thread Johan Tibell
On Wed, Oct 3, 2012 at 5:42 PM, Ivan Lazar Miljenovic ivan.miljeno...@gmail.com wrote: On Oct 4, 2012 2:08 AM, Johan Tibell johan.tib...@gmail.com wrote: On the behalf of the many contributors to cabal, I'm proud to present cabal-install-1.16.0. Why the sudden change in versioning scheme

Re: [Haskell-cafe] ANN: cabal-install-1.16.0 (and Cabal-1.16.0.1)

2012-10-04 Thread Johan Tibell
On Thu, Oct 4, 2012 at 7:11 PM, Tim Docker t...@dockerz.net wrote: Does this new release included the sandbox functions discussed in this blog post: http://blog.johantibell.com/2012/08/you-can-soon-play-in-cabal-sandbox.html ? It doesn't. The sandbox feature requires a little UI work still.

Re: [Haskell-cafe] Panic loading network on windows (GHC 7.6.1)

2012-10-05 Thread Johan Tibell
On Fri, Oct 5, 2012 at 5:31 PM, JP Moresmau jpmores...@gmail.com wrote: Hello, I've installed Cabal and cabal-install 1.16 (which required network) on a new GHC 7.6.1 install and everything went well, except now when building a package requiring network I get: Loading package network-2.4.0.1

Re: [Haskell-cafe] 64-bit vs 32-bit haskell platform on Mac: misleading notice on Platform website?

2012-10-08 Thread Johan Tibell
On Mon, Oct 8, 2012 at 3:28 AM, Christiaan Baaij christiaan.ba...@gmail.com wrote: Hi, I finally found another OS X mountain lion install and can confirm the behaviour I described earlier: 32-bit: compiled code works, interpreted code works 64-bit: compiled code works, interpreted code

Re: [Haskell-cafe] ANN: cabal-install-1.16.0 (and Cabal-1.16.0.1)

2012-10-08 Thread Johan Tibell
Hi, I'll make a bugfix release for cabal-install and Cabal in a few days to include fixes to issues people found so far. If everyone who had some problem related to the latest release could please post it here so I can make sure that we include a fix for them. If you've already reported it

Re: [Haskell-cafe] problem with cabal-install-1.16.0 and Cabal-1.16.0.1 on Haskell Platform for OS X

2012-10-09 Thread Johan Tibell
Hi, Thanks for the detailed problem description. I've CCed Mark Lentczner, who designed the directory layout for the Haskell Platform on OS X. Hopefully he'll be able to tell you what to do. On Tue, Oct 9, 2012 at 8:31 AM, Derrell Piper d...@electric-loft.org wrote: Hi, New Haskell user here.

[Haskell-cafe] cabal-install-1.16.0.2

2012-10-15 Thread Johan Tibell
Hi all, I've created bug fix release candidates for Cabal and cabal-install to address the bugs found after the release. If everyone could take some time to try them out, especially those who had issues with the previous releases. To install the release candidates run: cabal install

Re: [Haskell-cafe] cabal-install-1.16.0.2

2012-10-15 Thread Johan Tibell
On Mon, Oct 15, 2012 at 7:16 PM, Johan Tibell johan.tib...@gmail.com wrote: Hi all, I've created bug fix release candidates for Cabal and cabal-install to address the bugs found after the release. Here's the list of fixed bugs: Fixed since cabal-install-1.16.0: * Fix installing from custom

[Haskell-cafe] ANN: Cabal-1.16.0.2 and cabal-install-1.16.0.1

2012-10-24 Thread Johan Tibell
Hi, On behalf of the cabal contributors, I'm proud to announce bugfix releases of Cabal and cabal-install. Here's a complete list of changes since the last release: Since Cabal-1.16.0.1: * Bump Cabal version number to 1.16.0.2 * Fixed warnings on the generated Paths module. The warnings are

Re: [Haskell-cafe] [ANNOUNCE] hashable-generics

2012-11-04 Thread Johan Tibell
On Sun, Nov 4, 2012 at 8:35 AM, Clark Gaebel cgae...@uwaterloo.ca wrote: @dag: I would love for this to be merged into Data.Hashable, and I think it would make a lot of people's lives easier, and prevent them from writing bad hash functions accidentally. Couldn't we do it using GHC's

Re: [Haskell-cafe] Defining a Strict language pragma

2012-11-05 Thread Johan Tibell
On Mon, Nov 5, 2012 at 3:28 PM, Iustin Pop iu...@k1024.org wrote: Did you mean here it's still possible to define _lazy_ arguments? The duality of !/~ makes sense, indeed. Yes, it would be nice to still make arguments explicitly lazy, using ~. ___

Re: [Haskell-cafe] Does anyone know where George Pollard is?

2012-11-07 Thread Johan Tibell
On Wed, Nov 7, 2012 at 9:03 PM, Myles C. Maxfield myles.maxfi...@gmail.comwrote: Does anyone know where he is? If not, is there an accepted practice to resolve this situation? Should I upload my own 'idna2' package. Generally we try to contact the maintainer (and give him/her enough time to

Re: [Haskell-cafe] Motion to unify all the string data types

2012-11-09 Thread Johan Tibell
Hi Andrew, On Fri, Nov 9, 2012 at 6:15 PM, Andrew Pennebaker andrew.penneba...@gmail.com wrote: Frequently when I'm coding in Haskell, the crux of my problem is converting between all the stupid string formats. You've got String, ByteString, Lazy ByteString, Text, [Word], and on and on...

Re: [Haskell-cafe] Taking over ghc-core

2012-11-10 Thread Johan Tibell
On Saturday, November 10, 2012, Shachaf Ben-Kiki wrote: With Don Stewart's blessing (https://twitter.com/donsbot/status/267060717843279872), I'll be taking over maintainership of ghc-core, which hasn't been updated since 2010. I'll release a version with support for GHC 7.6 later today.

Re: [Haskell-cafe] Motion to unify all the string data types

2012-11-10 Thread Johan Tibell
On Fri, Nov 9, 2012 at 10:22 PM, Roman Cheplyaka r...@ro-che.info wrote: * Johan Tibell johan.tib...@gmail.com [2012-11-09 19:00:04-0800] As a community we should primary use strict ByteStrings and Texts. There are uses for the lazy variants (i.e. they are sometimes more efficient

Re: [Haskell-cafe] How to determine correct dependency versions for a library?

2012-11-12 Thread Johan Tibell
On Mon, Nov 12, 2012 at 1:06 AM, Erik Hesselink hessel...@gmail.com wrote: tl;dr: Breakages without upper bounds are annoying and hard to solve for package consumers. With upper bounds, and especially with sandboxes, breakage is almost non-existent. I don't see how things break with upper

Re: [Haskell-cafe] How to determine correct dependency versions for a library?

2012-11-14 Thread Johan Tibell
On Wed, Nov 14, 2012 at 1:01 PM, Tobias Müller trop...@bluewin.ch wrote: Clark Gaebel cgae...@uwaterloo.ca wrote: To prevent this, I think the PVP should specify that if dependencies get a major version bump, the package itself should bump its major version (preferably the B field). No,

Re: [Haskell-cafe] Automation of external library installation in haskell package.

2012-11-18 Thread Johan Tibell
Hi, On Sun, Nov 18, 2012 at 11:51 AM, Maksymilian Owsianny maksymilian.owsia...@gmail.com wrote: However, the problem with hackage not being able to build the package, and therefore generate documentation, remains. So conversely my question would be if there is any way to get around this?

Re: [Haskell-cafe] Cabal failures...

2012-11-19 Thread Johan Tibell
Hi Greg, On Mon, Nov 19, 2012 at 1:25 PM, Gregory Guthrie guth...@mum.edu wrote: I follow the Cabal-messes threads with some interest, since that is the hardest area for me since starting to use Haskell. Probably 40-60% of all package install fail for some mysterious reason, with threats that

Re: [Haskell-cafe] Cabal failures...

2012-11-19 Thread Johan Tibell
On Mon, Nov 19, 2012 at 2:55 PM, Greg Fitzgerald gari...@gmail.com wrote: cabal install -v cabal-install Not sure if you're running into this one, but a configuration that wasn't working for me: 1) Install Haskell Platform 2) Install GHC 7.6.1 3) cabal install cabal-install As I

Re: [Haskell-cafe] cabal install...

2012-11-20 Thread Johan Tibell
On Tue, Nov 20, 2012 at 1:10 PM, Gregory Guthrie guth...@mum.edu wrote: Hmm, Now when I tried to run Leksah, I get not only some broken packages (which I can avoid for my current project), but: ** ** command line: cannot satisfy -package-id

Re: [Haskell-cafe] Cabal failures...

2012-11-20 Thread Johan Tibell
On Tue, Nov 20, 2012 at 5:14 PM, Albert Y. C. Lai tre...@vex.net wrote: On 12-11-20 05:37 PM, Gregory Guthrie wrote: No; the first sentence says that someone else had reported that testing on Windows was hard to do because of (a perceived) lack of access to Windows by Haskell developers...

Re: [Haskell-cafe] Cabal failures...

2012-11-20 Thread Johan Tibell
On Tue, Nov 20, 2012 at 5:34 PM, Albert Y. C. Lai tre...@vex.net wrote: This counter-argument is flawed. Why limit oneself to one's own household? (Garage? Basement?) Get out more! Visit a friend. Talk to an internet cafe owner for a special deal to run one's own programs. Rent virtual machine

Re: [Haskell-cafe] Common function names for '(.) . (.)', '(.) . (.) . (.)' ...?

2012-11-21 Thread Johan Tibell
On Wed, Nov 21, 2012 at 9:48 AM, MigMit miguelim...@yandex.ru wrote: Tits? This is not appropriate for this mailing lists, please take it elsewhere. I suggest http://www.reddit.com/r/ruby ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org

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

2012-11-27 Thread Johan Tibell
Kazu and Andreas, could this be IO manager related? On Monday, November 26, 2012, Jeff Shaw wrote: Hello, I've run into an issue that makes me think that when the GHC GC runs while a Snap or Warp HTTP server is serving connections, the GC prevents or delays TCP connections from forming. My

Re: [Haskell-cafe] To my boss: The code is cool, but it is about 100 times slower than the old one...

2012-11-29 Thread Johan Tibell
Hi Felix, On Thu, Nov 29, 2012 at 10:09 AM, Fixie Fixie fixie.fi...@rocketmail.com wrote: The problem seems to be connected to lazy loading, which makes my programs so slow that I really can not show them to anyone. I have tried all tricks in the books, like !, seq, non-lazy datatypes... My

Re: [Haskell-cafe] To my boss: The code is cool, but it is about 100 times slower than the old one...

2012-11-29 Thread Johan Tibell
Ack, it seems like you're running into one of these bugs (all now fixed, but I don't know in which GHC version): http://hackage.haskell.org/trac/ghc/search?q=doubleFromInteger ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org

Re: [Haskell-cafe] To my boss: The code is cool, but it is about 100 times slower than the old one...

2012-11-29 Thread Johan Tibell
On Thu, Nov 29, 2012 at 1:00 PM, Fixie Fixie fixie.fi...@rocketmail.com wrote: The program seems to take around 6 seconds on my linux-box, while the c version goes for 0.06 sekcond. That is really some regression bug :-) Anyone with a more recent version thatn 7.4.1? On 7.4.2: $ time

Re: [Haskell-cafe] To my boss: The code is cool, but it is about 100 times slower than the old one...

2012-11-29 Thread Johan Tibell
On Thu, Nov 29, 2012 at 1:23 PM, Fixie Fixie fixie.fi...@rocketmail.com wrote: That's really an argument for upgrading to 7.4.2 :-) Another reason for doing things with haskell is this mailing list. FYI I'm still looking into this issue as I'm not 100% happy with the code GHC generates.

Re: [Haskell-cafe] Vedr: To my boss: The code is cool, but it is about 100 times slower than the old one...

2012-11-29 Thread Johan Tibell
On Thu, Nov 29, 2012 at 1:32 PM, Daniel Fischer daniel.is.fisc...@googlemail.com wrote: We have an unpleasant regression in comparison to 7.2.* and the 7.4.* were slower than 7.6.1 is, but it's all okay here (not that it wouldn't be nice to have it faster still). Are you on a 32-bit system?

Re: [Haskell-cafe] Vedr: To my boss: The code is cool, but it is about 100 times slower than the old one...

2012-11-29 Thread Johan Tibell
On Thu, Nov 29, 2012 at 1:40 PM, Johan Tibell johan.tib...@gmail.com wrote: This version works around the Word-Double conversion bug and shows good performance: I'd also like to point out that I've removed lots of bang patterns that weren't needed. This program runs fine without any bang

Re: [Haskell-cafe] Vedr: To my boss: The code is cool, but it is about 100 times slower than the old one...

2012-11-29 Thread Johan Tibell
On Thu, Nov 29, 2012 at 2:02 PM, Johan Tibell johan.tib...@gmail.com wrote: On Thu, Nov 29, 2012 at 2:01 PM, Daniel Fischer daniel.is.fisc...@googlemail.com wrote: On Donnerstag, 29. November 2012, 13:40:42, Johan Tibell wrote: word2Double :: Word - Double word2Double (W# w) = D# (int2Double

Re: [Haskell-cafe] RFC: Changes to Travis CI's Haskell support

2012-12-03 Thread Johan Tibell
On Mon, Dec 3, 2012 at 1:04 AM, Simon Hengel s...@typeful.net wrote: I think the right thing to do is: install: - cabal install --only-dependencies --enable-tests script: - cabal configure --enable-tests cabal build cabal test Please let me know if you think there

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

2012-12-04 Thread Johan Tibell
Hi Oleg, On Tue, Dec 4, 2012 at 9:13 PM, o...@okmij.org 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 element can be processed independently. After the

Re: [Haskell-cafe] The end of an era, and the dawn of a new one

2012-12-05 Thread Johan Tibell
On Wed, Dec 5, 2012 at 12:37 PM, David Terei davidte...@gmail.com wrote: I have always considered the LLVM code generator my responsibility and will continue to do so. I don't seem to find the time to make improvements to it but make sure to keep it bug free and working with the latest LLVM

[Haskell-cafe] How is default method signatures supposed to be used together with Generics

2012-12-11 Thread Johan Tibell
Hi, I noticed that you're not required to export the types mentioned in the default method signature. For example, you could have: default hashWithSalt :: (Generic a, GHashable (Rep a)) = Int - a - Int hashWithSalt salt = ghashWithSalt salt . from and not export the GHashable class.

Re: [Haskell-cafe] How is default method signatures supposed to be used together with Generics

2012-12-12 Thread Johan Tibell
On Tue, Dec 11, 2012 at 9:31 PM, dag.odenh...@gmail.com dag.odenh...@gmail.com wrote: The practice seems to be to not export it, but maybe it would be a better practice to export it. That way it can work without DefaultSignatures too, and if you use the generic-deriving package it could work

Re: [Haskell-cafe] containers license issue

2012-12-12 Thread Johan Tibell
On Wed, Dec 12, 2012 at 10:40 AM, Clark Gaebel cgae...@uwaterloo.ca wrote: I just did a quick derivation from http://graphics.stanford.edu/~seander/bithacks.html#RoundUpPowerOf2 to get the highest bit mask, and did not reference FXT nor the containers implementation. Here is my code:

Re: [Haskell-cafe] containers license issue

2012-12-12 Thread Johan Tibell
On Wed, Dec 12, 2012 at 12:09 PM, Clark Gaebel cgae...@uwaterloo.ca wrote: Possibly. I tend to trust GHC's strictness analyzer until proven otherwise, though. Feel free to optimize as necessary. The GHC strictness analyzer will have no troubles with this. Since the return type is Word64,

Re: [Haskell-cafe] containers license issue

2012-12-12 Thread Johan Tibell
On Wed, Dec 12, 2012 at 12:18 PM, Dmitry Kulagin dmitry.kula...@gmail.com wrote: Clark, Johan, thank you! That looks like perfect solution to the problem. Clean-room reimplementation merged and released as 0.5.2.0. ___ Haskell-Cafe mailing list

Re: [Haskell-cafe] containers license issue

2012-12-12 Thread Johan Tibell
On Wed, Dec 12, 2012 at 5:38 PM, Michael Orlitzky mich...@orlitzky.com wrote: On 12/12/2012 08:15 PM, Johan Tibell wrote: On Wed, Dec 12, 2012 at 12:18 PM, Dmitry Kulagin dmitry.kula...@gmail.com wrote: Clark, Johan, thank you! That looks like perfect solution to the problem. Clean-room

Re: [Haskell-cafe] Example programs with ample use of deepseq?

2013-01-07 Thread Johan Tibell
On Mon, Jan 7, 2013 at 4:06 AM, Joachim Breitner m...@joachim-breitner.de wrote: I’m wondering if the use of deepseq to avoid unwanted lazyness might be a too large hammer in some use cases. Therefore, I’m looking for real world programs with ample use of deepseq, and ideally easy ways to test

Re: [Haskell-cafe] Space leaks in function that uses Data.Vector.Mutable

2013-01-23 Thread Johan Tibell
Hi! You have to look outside the place function, which is strict enough. I would look for a call to unsafeWrite that doesn't evaluate it's argument before writing it into the vector. Perhaps you're doing something like: MV.unsafeWrite (i + 1, ...) Since tuples are lazy the i + 1 will be

Re: [Haskell-cafe] Mac os x (Intel, 10.6.8) problem compiling yesod-core-1.1.7.1

2013-01-28 Thread Johan Tibell
Adding Bryan, who wrote this code. On Mon, Jan 28, 2013 at 1:23 AM, jean-christophe mincke jeanchristophe.min...@gmail.com wrote: Hello GHC version : 7.4.2 When I do a cabal-dev instal yesod-core, I get the following error: Loading package blaze-builder-conduit-0.5.0.3 ... linking ...

Re: [Haskell-cafe] Heads up: planned removal of String instances from HTTP package

2013-01-29 Thread Johan Tibell
On Tue, Jan 29, 2013 at 2:15 PM, Ganesh Sittampalam gan...@earth.li wrote: tl;dr: I'm planning on removing the String instances from the HTTP package. This is likely to break code. Obviously it will involve a major version bump. The basic reason is that this instance is rather broken in

Re: [Haskell-cafe] Handling exceptions or gracefully releasing resources

2013-01-29 Thread Johan Tibell
Hi, The pattern is essentially the same as in imperative languages; every allocation should involve a finally clause that deallocates the resource. On Tue, Jan 29, 2013 at 2:59 PM, Thiago Negri evoh...@gmail.com wrote: Should I put `Control.Exception.finally` on every single line of my

Re: [Haskell-cafe] Substantial (1:10??) system dependencies of runtime performance??

2013-02-02 Thread Johan Tibell
On Sat, Feb 2, 2013 at 5:14 PM, Ozgun Ataman ozata...@gmail.com wrote: If you are doing row-by-row transformations, I would recommend giving a try to my csv-conduit or csv-enumerator packages on Hackage. They were designed with constant space operation in mind, which may help you here. If

Re: [Haskell-cafe] cabal-dev add-source

2013-02-08 Thread Johan Tibell
On Fri, Feb 8, 2013 at 9:53 AM, Blake Rain blake.r...@gmail.com wrote: You need to call cabal-dev add-source on P1 again to copy over the sdist, then do a cabal-dev install. See notes under Using a sandbox-local Hackage on

Re: [Haskell-cafe] cabal-dev add-source

2013-02-08 Thread Johan Tibell
On Fri, Feb 8, 2013 at 10:07 AM, JP Moresmau jpmores...@gmail.com wrote: Johan, thanks, that brings me to a point that I wanted to raise. I'm playing with cabal-dev because users have asked me to add support for it in EclipseFP (so projects could have their own sandbox and have dependencies

<    1   2   3   4   5   6   >