Re: [Haskell-cafe] Package compatibility (SemVer, PVP, ECT)

2013-09-13 Thread Gregory Collins
On Fri, Sep 13, 2013 at 5:25 AM, Thiago Negri evoh...@gmail.com wrote: Is PVP the one that every package on Hackage should use? Yes. G -- Gregory Collins g...@gregorycollins.net ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http

Re: [Haskell-cafe] Unexpected behaviour with send and send-buffer setting

2013-09-03 Thread Gregory Collins
into the GHC IO manager with threadWaitWrite, which registers interest in the file descriptor using epoll() and blocks the calling Haskell thread until the socket is writable. G -- Gregory Collins g...@gregorycollins.net ___ Haskell-Cafe mailing list Haskell

Re: [Haskell-cafe] Non-deterministic behaviour of aeson's parser

2013-06-10 Thread Gregory Collins
in a linker error Loading package hashable-1.2.0.7 ... linking ... ghc: /home/feuerbach/tmp/aeson/.cabal-sandbox/lib/i386-linux-ghc-7.6.3/hashable-1.2.0.7/libHShashable-1.2.0.7.a: unknown symbol `hashable_siphash24_sse2' ghc: unable to load package `hashable-1.2.0.7' Roman * Gregory Collins

Re: [Haskell-cafe] [Hackathon] ANN: ZuriHac 2013 FP Afternoon with keynote by Simon Marlow

2013-06-10 Thread Gregory Collins
/listinfo/haskell-cafe -- Gregory Collins g...@gregorycollins.net ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Different answers on different machines

2013-06-02 Thread Gregory Collins
and ran it on each machine. On the Dell I get: Odds are good it's integer overflow. Change Int to Integer or Int64 and retry. G -- Gregory Collins g...@gregorycollins.net ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org

Re: [Haskell-cafe] mapFst and mapSnd

2013-05-28 Thread Gregory Collins
) *** (*5) $ (20,30) (23,150) mapFst :: (a - b) - (a,c) - (b,c) mapFst f = mapPair f id mapSnd :: (b - c) - (a,b) - (a,c) mapSnd = mapPair id That's Control.Arrow.{first, second}: ghci first (+10) (1,1) (11,1) ghci second (+10) (1,1) (1,11) G -- Gregory Collins g

Re: [Haskell-cafe] Non-deterministic behaviour of aeson's parser

2013-05-18 Thread Gregory Collins
://www.haskell.org/mailman/listinfo/haskell-cafe -- Gregory Collins g...@gregorycollins.net ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Backward compatibility

2013-05-03 Thread Gregory Collins
boy for why we have the motto avoid success at all costs. You have two options: stay on GHC 6.x (the bits didn't get deleted from the internet), and if that isn't practical, fix Wash (or pay someone to do it if you don't know how) and get on with your life. G -- Gregory Collins g

Re: [Haskell-cafe] Optimizing queries in Haskell

2013-04-15 Thread Gregory Collins
-cafe -- Gregory Collins g...@gregorycollins.net ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] my take at knucleotide

2013-03-24 Thread Gregory Collins
newTable = H.new ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe -- Gregory Collins g...@gregorycollins.net ___ Haskell-Cafe mailing list Haskell

Re: [Haskell-cafe] Streaming bytes and performance

2013-03-18 Thread Gregory Collins
of bytes. PS. My main lang is C++ over 10 years and I only learn Haskell :) __**_ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/**mailman/listinfo/haskell-cafehttp://www.haskell.org/mailman/listinfo/haskell-cafe -- Gregory

Re: [Haskell-cafe] File I/O benchmark help (conduit, io-streams and Handle)

2013-03-08 Thread Gregory Collins
On Fri, Mar 8, 2013 at 9:36 AM, Gregory Collins g...@gregorycollins.netwrote: I presume you did some Handle debugging? ...and here I mean benchmarking of course. -- Gregory Collins g...@gregorycollins.net ___ Haskell-Cafe mailing list Haskell-Cafe

Re: [Haskell-cafe] File I/O benchmark help (conduit, io-streams and Handle)

2013-03-08 Thread Gregory Collins
Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe -- Gregory Collins g...@gregorycollins.net ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] File I/O benchmark help (conduit, io-streams and Handle)

2013-03-08 Thread Gregory Collins
On Fri, Mar 8, 2013 at 9:48 AM, John Lato jwl...@gmail.com wrote: For comparison, on my system I get $ time cp input.dat output.dat real 0m0.004s user 0m0.000s sys 0m0.000s Does your workstation have an SSD? Michael's using a spinning disk. -- Gregory Collins g...@gregorycollins.net

Re: [Haskell-cafe] File I/O benchmark help (conduit, io-streams and Handle)

2013-03-08 Thread Gregory Collins
version. G On Fri, Mar 8, 2013 at 10:13 AM, Alexander Kjeldaas alexander.kjeld...@gmail.com wrote: On Fri, Mar 8, 2013 at 9:53 AM, Gregory Collins g...@gregorycollins.netwrote: On Fri, Mar 8, 2013 at 9:48 AM, John Lato jwl...@gmail.com wrote: For comparison, on my system I get

[Haskell-cafe] ANNOUNCE: io-streams 1.0.0.0

2013-03-05 Thread Gregory Collins
-streams Cheers, G -- Gregory Collins g...@gregorycollins.net ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] How does one create an input handle bound to a string instead of a file?

2013-02-27 Thread Gregory Collins
. There are several libraries that purport to provide better interfaces for doing IO in Haskell, like conduit, pipes, enumerator, and my own io-streams library (http://github.com/snapframework/io-streams, soon to be released). You could try one of those. G -- Gregory Collins g...@gregorycollins.net

Re: [Haskell-cafe] How does one create an input handle bound to a string instead of a file?

2013-02-27 Thread Gregory Collins
/archive/base/4.2.0.1/doc/html/GHC-IO-BufferedIO.html On Feb 27, 2013 10:52 PM, Gregory Collins g...@gregorycollins.net wrote: On Wed, Feb 27, 2013 at 9:38 PM, John D. Ramsdell ramsde...@gmail.comwrote: How does one create a value of type System.IO.Handle for reading that takes its input from

Re: [Haskell-cafe] Text.JSON and utf8

2013-02-11 Thread Gregory Collins
-cafehttp://www.haskell.org/mailman/listinfo/haskell-cafe -- Gregory Collins g...@gregorycollins.net ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

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

2012-11-27 Thread Gregory Collins
, such as -H and -c, and haven't found anything to help. I'm using GHC 7.4.1. Thanks, Jeff ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe -- Gregory Collins g...@gregorycollins.net

Re: [Haskell-cafe] Problem with benchmarking FFI calls with Criterion

2012-11-27 Thread Gregory Collins
___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe -- Gregory Collins g

Re: [Haskell-cafe] Blocking IO FIFOs

2012-10-21 Thread Gregory Collins
On Sun, Oct 21, 2012 at 1:25 PM, Jason Dusek jason.du...@gmail.com wrote: Sadly, I can not do Posix IO on handles or read a ByteString from a Posix FD. Try the unix-bytestring package. G -- Gregory Collins g...@gregorycollins.net ___ Haskell-Cafe

Re: [Haskell-cafe] poor performance when generating random text

2012-10-17 Thread Gregory Collins
list Haskell-Cafe@haskell.org http://www.haskell.org/**mailman/listinfo/haskell-cafehttp://www.haskell.org/mailman/listinfo/haskell-cafe -- Gregory Collins g...@gregorycollins.net ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http

Re: [Haskell-cafe] I would like a clarification about Enumerators and Iteratees, please :)

2012-10-16 Thread Gregory Collins
? Which of the two are more performant? Bye and thanks, A. ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe -- Gregory Collins g...@gregorycollins.net

Re: [Haskell-cafe] Using CatchIO on StateT

2012-10-12 Thread Gregory Collins
. G -- Gregory Collins g...@gregorycollins.net ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Long pauses / idle time in a Haskell TCP server

2012-10-08 Thread Gregory Collins
, but a fair number of requests are much slower, 38-40 milli-secs, making the mean latency and throughput quite bad. You might get more information from running threadscope on your program. G -- Gregory Collins g...@gregorycollins.net ___ Haskell-Cafe

Re: [Haskell-cafe] Data.Text UTF-8 question

2012-08-31 Thread Gregory Collins
Data.Text.Encoding.decodeUtf8With which allows you to replicate this. It's likely, however, that your input text is in some other encoding like ISO-8859-1. Use the text-icu package ( http://hackage.haskell.org/package/text-icu) to decode these. G -- Gregory Collins g...@gregorycollins.net

Re: [Haskell-cafe] OS-independent auto-monitoring of a program to do things depending on resource usage at runtime

2012-08-28 Thread Gregory Collins
| http://www.joachim-breitner.de/ ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe -- Gregory Collins g...@gregorycollins.net ___ Haskell-Cafe

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

2012-08-20 Thread Gregory Collins
find it hard to stay on the treadmill? Things could be a lot worse. I guarantee you that our friends in the Standard ML community are not having this discussion. :-) G -- Gregory Collins g...@gregorycollins.net ___ Haskell-Cafe mailing list Haskell

Re: [Haskell-cafe] pattern matching vs if-then-else

2012-08-12 Thread Gregory Collins
This part of the conditional can be written more succinctly as: all (== test_lcv) [init_lcv, update_lcv, update_lcv'] Re: the if statement, you can also use guard syntax. G -- Gregory Collins g...@gregorycollins.net ___ Haskell-Cafe mailing list Haskell-Cafe

Re: [Haskell-cafe] Fwd: hackage compile failure with QuickCheck 2.5

2012-07-18 Thread Gregory Collins
. ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe -- Gregory Collins g...@gregorycollins.net ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell

Re: [Haskell-cafe] How do people still not understand what FP is about? What are we doing wrong?

2012-06-18 Thread Gregory Collins
, as it is deeply offensive to many and unfairly marginalizes the differently-abled. G -- Gregory Collins g...@gregorycollins.net ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Data.Binary hanging when used with socket - feature?

2012-06-17 Thread Gregory Collins
should be trivial. G -- Gregory Collins g...@gregorycollins.net ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] ByteString.getContents fails for files 2GB on OS X

2012-06-08 Thread Gregory Collins
@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe -- Gregory Collins g...@gregorycollins.net

Re: [Haskell-cafe] thread killed

2012-04-05 Thread Gregory Collins
+haskell-cafe, oops On Thu, Apr 5, 2012 at 11:04 AM, Gregory Collins g...@gregorycollins.netwrote: On Wed, Apr 4, 2012 at 10:09 PM, tsuraan tsur...@gmail.com wrote: It's hard to rule Snap timeouts out; try building snap-core with the -fdebug flag and running your app with DEBUG=1, you'll

Re: [Haskell-cafe] thread killed

2012-04-04 Thread Gregory Collins
and running your app with DEBUG=1, you'll get a spew of debugging output from Snap on stderr. G -- Gregory Collins g...@gregorycollins.net ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] GSoC proposal: Units for GHC

2012-04-04 Thread Gregory Collins
-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/**mailman/listinfo/haskell-cafehttp://www.haskell.org/mailman/listinfo/haskell-cafe -- Gregory Collins g...@gregorycollins.net ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http

Re: [Haskell-cafe] A Modest Records Proposal

2012-04-01 Thread Gregory Collins
-users mailing list glasgow-haskell-us...@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-users ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe -- Gregory Collins

Re: [Haskell-cafe] Google Summer of Code - Lock-free data structures

2012-03-29 Thread Gregory Collins
structures we want to store arbitrary pointers (hence casArray#). This is true, although using bits-atomic does a function call (i.e the calls are not inlined), which would be pretty bad for performance. G -- Gregory Collins g...@gregorycollins.net

Re: [Haskell-cafe] Google Summer of Code - Lock-free data structures

2012-03-20 Thread Gregory Collins
:: MutableByteArray# s - Int# - Word# - Word# - State# s - (# State# s, Int#, Word#) and equivalents for Word32. Word64, Int16, Int32, Int64. G -- Gregory Collins g...@gregorycollins.net ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http

Re: [Haskell-cafe] Google Summer of Code - Lock-free data structures

2012-03-19 Thread Gregory Collins
://www.haskell.org/mailman/listinfo/haskell-cafe -- Gregory Collins g...@gregorycollins.net ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Question about concurrency, threads and GC

2012-03-03 Thread Gregory Collins
/blob/master/src/Snap/Chat/ChatRoom.hs G -- Gregory Collins g...@gregorycollins.net ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Question about concurrency, threads and GC

2012-03-03 Thread Gregory Collins
anymore about the implementation details, once and for all. It's hard to know which abstraction might be sufficiently magical to allow you to skip caring about the implementation details; personally I think stm is pretty magical already :) G -- Gregory Collins g...@gregorycollins.net

Re: [Haskell-cafe] strict version of Haskell - does it exist?

2012-01-31 Thread Gregory Collins
bit harder. In domains where you care a lot about operational semantics (like parallel and concurrent programming, where it's absolutely critical), programmers necessarily require a lot more experience and knowledge in order to be effective in Haskell. G -- Gregory Collins g...@gregorycollins.net

Re: [Haskell-cafe] Conduit versions of wai and warp?

2012-01-19 Thread Gregory Collins
-- Gregory Collins g...@gregorycollins.net ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] too many open files using snap

2012-01-08 Thread Gregory Collins
message. Memory profiling should help you find the leak. G -- Gregory Collins g...@gregorycollins.net ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] too many open files using snap

2012-01-08 Thread Gregory Collins
config? I'm using the default value. CLOSE_WAIT indicates that the other side has closed its side of the connection and the OS is waiting for you to close() the socket. At this point I'd start looking at your database layer. G -- Gregory Collins g...@gregorycollins.net

Re: [Haskell-cafe] too many open files using snap

2012-01-08 Thread Gregory Collins
, of course. G -- Gregory Collins g...@gregorycollins.net ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Package documentation complaints -- and a suggestion

2011-10-25 Thread Gregory Collins
to cajole people into it -- if Hackage 2 puts stable packages on a different / better list, there's your social pressure. Right now the stability flag in the .cabal file, as you pointed out, is almost completely content-free. G -- Gregory Collins g...@gregorycollins.net

Re: [Haskell-cafe] Package documentation complaints -- and a suggestion

2011-10-24 Thread Gregory Collins
for tackling these kinds of policy issues, because it would probably allow you to e.g. filter the package list by stability. G -- Gregory Collins g...@gregorycollins.net ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman

Re: [Haskell-cafe] proper way to generate a random data in criterion

2011-10-19 Thread Gregory Collins
. This would show up in the criterion output as an unusually large outlier. G -- Gregory Collins g...@gregorycollins.net ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] proper way to generate a random data in criterion

2011-10-19 Thread Gregory Collins
deepseq, and thus the whole list is forced. See https://gist.github.com/1299380 for a short counterexample. G -- Gregory Collins g...@gregorycollins.net ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo

Re: [Haskell-cafe] Waiting on input with `hWaitForInput' or `threadWaitRead'

2011-10-18 Thread Gregory Collins
to leverage GHC's internal async I/O but I'm not sure how to do it. Maybe: forkIO two threads, one for the read end, one for the write end? I would use a loop over lazy I/O, also. G -- Gregory Collins g...@gregorycollins.net ___ Haskell-Cafe mailing list

Re: [Haskell-cafe] hello Haskell

2011-10-18 Thread Gregory Collins
On Tue, Oct 18, 2011 at 9:23 AM, R J rj248...@hotmail.com wrote: hey Haskell check it out http://www.fastnews10i.com OK, who has the ban hammer? G -- Gregory Collins g...@gregorycollins.net ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http

Re: [Haskell-cafe] Will changing associativity of enumerator's ($=) affect anyone? (also: enumerator mailing list)

2011-10-16 Thread Gregory Collins
On Sat, Oct 15, 2011 at 6:40 PM, Michael Snoyman mich...@snoyman.com wrote: I'm strongly in favor of this change, the current associativity has caused me to litter some code with a few too many parentheses. Strong +1 for me as well, for the same reason. G -- Gregory Collins g

Re: [Haskell-cafe] SMP parallelism increasing GC time dramatically

2011-10-10 Thread Gregory Collins
memory and I'm using fairly hefty machines (e.g one with 48 cores and 128GB of RAM) and so perhaps the default/heuristic settings aren't optimal. Increasing -A and -H in the RTS options should help with this. G -- Gregory Collins g...@gregorycollins.net

Re: [Haskell-cafe] Enumeratee that generates data

2011-09-04 Thread Gregory Collins
with a Chan to shuttle data between them, I think it's probably the best way of doing it. G -- Gregory Collins g...@gregorycollins.net ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Enumeratee that generates data

2011-09-04 Thread Gregory Collins
of them, so I think, assuming I'm understanding you correctly, that this would make a lot of sense. I think that's roughly what I had in mind, yes. G -- Gregory Collins g...@gregorycollins.net ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http

Re: [Haskell-cafe] Decompressing and http-enumerator

2011-08-29 Thread Gregory Collins
is correctly following the spec by decompressing. If you decide to implement a workaround for this, the only reasonable thing I can think of is adding a ignoreContentEncoding knob the user can twiddle to violate spec. G -- Gregory Collins g...@gregorycollins.net

Re: [Haskell-cafe] Decompressing and http-enumerator

2011-08-29 Thread Gregory Collins
On Mon, Aug 29, 2011 at 4:28 PM, Herbert Valerio Riedel h...@gnu.org wrote: On Mon, 2011-08-29 at 13:21 +0200, Gregory Collins wrote: A web server should not be setting Content-encoding: gzip on a .tar.gz file. Why not? From RFC2616 compliant servers I'd expect a .tar.gz file to have

Re: [Haskell-cafe] ANN: cabal-dev 0.8

2011-07-19 Thread Gregory Collins
and HPC test coverage reports, it's really useful. G -- Gregory Collins g...@gregorycollins.net ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] attoparsec and vectors

2011-06-29 Thread Gregory Collins
On Wed, Jun 29, 2011 at 4:16 AM, Roman Leshchinskiy r...@cse.unsw.edu.au wrote: Gregory Collins wrote: For an example of a similar technique (minus the freezing part), I did a similar thing in the hashtables library: You might be interested in 'grow' :-) I would be, except to save a couple

Re: [Haskell-cafe] attoparsec and vectors

2011-06-28 Thread Gregory Collins
in the hashtables library: https://github.com/gregorycollins/hashtables/blob/master/src/Data/HashTable/Internal/Linear/Bucket.hs#L45 It's unlikely to be worth the extra effort except for extremely performance-critical code. G -- Gregory Collins g...@gregorycollins.net

Re: [Haskell-cafe] Homework help - calculator function

2011-06-22 Thread Gregory Collins
to get help, you should a) demonstrate that you've made an effort to solve the problem on your own, b) explain where you've gotten stuck and what it is you don't understand about how to move forward. G -- Gregory Collins g...@gregorycollins.net

Re: [Haskell-cafe] Text report tools?

2011-06-20 Thread Gregory Collins
by templates or DSL would help. Thanks! ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe -- Gregory Collins g...@gregorycollins.net ___ Haskell

[Haskell-cafe] Announcing: hashtables-1.0.0.0

2011-06-11 Thread Gregory Collins
://gregorycollins.net/posts/2011/06/11/announcing-hashtables Although I’ve made substantial efforts to test this code prior to release, it is a version 1.0. Please send bug reports to the hashtables github issues page: https://github.com/gregorycollins/hashtables/issues. Thanks! G -- Gregory Collins g

Re: [Haskell-cafe] Cons of -XUndecidableInstances

2011-06-06 Thread Gregory Collins
-- Gregory Collins g...@gregorycollins.net ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] How to install GhC on a Mac without registering?

2011-06-05 Thread Gregory Collins
mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe -- Gregory Collins g...@gregorycollins.net ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Attoparsec concatenating combinator

2011-06-03 Thread Gregory Collins
into it consecutively as a special case. The blaze-builder might work for this also, this is exactly the problem it's designed for. G -- Gregory Collins g...@gregorycollins.net ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org

Re: [Haskell-cafe] Efficient object identity (aka symbols as data)

2011-05-26 Thread Gregory Collins
and on which some extra information can be hung. How would I organize something like this in Haskell? Thanks. ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe -- Gregory Collins g

Re: [Haskell-cafe] Server hosting

2011-05-07 Thread Gregory Collins
? ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe -- Gregory Collins g...@gregorycollins.net ___ Haskell-Cafe mailing list Haskell-Cafe

Re: [Haskell-cafe] Server hosting

2011-05-07 Thread Gregory Collins
On Sat, May 7, 2011 at 12:38 PM, Andrew Coppin andrewcop...@btinternet.com wrote: On 07/05/2011 09:10 AM, Gregory Collins wrote: Linode. Can't recommend them highly enough. If Linode is really the cheapest that the Internet has to offer, I'm going to need to find a job that pays

Re: [Haskell-cafe] ANNOUNCE: iterIO-0.1 - iteratee-based IO with pipe operators

2011-05-06 Thread Gregory Collins
you go into a little bit of detail about the mechanism behind this? Thanks! G -- Gregory Collins g...@gregorycollins.net ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] fishing for ST mutable Vector examples

2011-04-24 Thread Gregory Collins
___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe -- Gregory Collins g...@gregorycollins.net ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman

Re: [Haskell-cafe] Killing threads in foreign calls.

2011-04-18 Thread Gregory Collins
use PQSocket() to get the underlying socket file descriptor, and call ThreadWaitRead/ThreadWaitWrite to use the system event dispatcher (epoll() or select()) to efficiently multiplex. G -- Gregory Collins g...@gregorycollins.net ___ Haskell-Cafe mailing

Re: [Haskell-cafe] RFC: Extendable and Easy-To-Use Logger (HLogger)

2011-04-13 Thread Gregory Collins
use case whether you wanted to optimize for throughput or for latency to secondary storage. I just know from experience that for high-throughput server applications, writing each message to disk is going to introduce unacceptable context-switching overhead. G -- Gregory Collins g

Re: [Haskell-cafe] RFC: Extendable and Easy-To-Use Logger (HLogger)

2011-04-12 Thread Gregory Collins
than once every N seconds. Is the ease-of-use goal contradicting making this library useful in more complex applications? Easy to use and high performance don't have to be contradictory, but you shouldn't neglect the latter. G -- Gregory Collins g...@gregorycollins.net

Re: [Haskell-cafe] Foreign function performance: monadic vs pure

2011-04-11 Thread Gregory Collins
version, are you also producing a linked list containing all of the values? Because that's what mapM does. Your test is mostly measuring the cost of allocating and filling ~3 million machine words on the heap. Try mapM_ instead. G -- Gregory Collins g...@gregorycollins.net

Re: [Haskell-cafe] Stateful iteratees

2011-04-07 Thread Gregory Collins
trivial with the second variant, but    seems very difficult with the first one, if it's possible at all. Why can't you use #1 and do this when you call run_? G -- Gregory Collins g...@gregorycollins.net ___ Haskell-Cafe mailing list Haskell-Cafe

Re: [Haskell-cafe] Stateful iteratees

2011-04-07 Thread Gregory Collins
, brown fox , jumped , over the lazy , dog ] - G. -- Gregory Collins g...@gregorycollins.net ___ Haskell-Cafe

Re: [Haskell-cafe] 'Progress bar' enumeratee

2011-04-06 Thread Gregory Collins
-- Gregory Collins g...@gregorycollins.net ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] BlockedIndefinitelyOnMVar exception

2011-03-31 Thread Gregory Collins
list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe -- Gregory Collins g...@gregorycollins.net ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] object oriented technique

2011-03-30 Thread Gregory Collins
I'm not sure I understood what you meant by You don't need to write more typeclass instances this way. Sorry, I misspoke -- they're equivalent. Personally I find the existential easier to read. G -- Gregory Collins g...@gregorycollins.net ___ Haskell

Re: [Haskell-cafe] ANNOUNCE: enumerator 0.4.8

2011-03-29 Thread Gregory Collins
On Mar 29, 2011 10:42 AM, o...@okmij.org wrote: I'm keen to hear of the example that seem to require Iteratee's allocating additional resources. I'd really like to see if any of such cases can be cast it terms of regions, implemented via iterated Iteratee transformers. Hello Oleg, The

Re: [Haskell-cafe] ANNOUNCE: enumerator 0.4.8

2011-03-26 Thread Gregory Collins
-match against another constructor in mainline code, hurting performance -- or is there some other reasonable way to deal with it? G -- Gregory Collins g...@gregorycollins.net ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org

Re: [Haskell-cafe] threading question for ghc 7.0.2

2011-03-24 Thread Gregory Collins
to dealing with an issue in multithreading, and you may not be doing yourself any favours in the long-term by piling on workarounds to get back the semantics you actually want. G -- Gregory Collins g...@gregorycollins.net ___ Haskell-Cafe mailing list

Re: [Haskell-cafe] Linking errors when compiling projects with the ncurses-0.2 library

2011-03-05 Thread Gregory Collins
GHC installer, or rebuild your libraries with 32-bit support. G -- Gregory Collins g...@gregorycollins.net ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] How to daemonize a threaded Haskell program?

2011-03-05 Thread Gregory Collins
(warning, DJ Bernstein code :) ) G -- Gregory Collins g...@gregorycollins.net ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Haskell platform installation failure on OS X 10.6.6 (intel)

2011-02-25 Thread Gregory Collins
to *not* install it... You need a system development toolchain (compiler, assembler, linker, etc) to run GHC. Could you please point me to the ticket you opened? I was not able to google it. http://hackage.haskell.org/trac/ghc/ticket/3470 G -- Gregory Collins g...@gregorycollins.net

Re: [Haskell-cafe] Haskell platform installation failure on OS X 10.6.6 (intel)

2011-02-24 Thread Gregory Collins
Senior Software Engineer, Mirantis Inc. http://www.mirantis.com/ ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe -- Gregory Collins g...@gregorycollins.net

Re: [Haskell-cafe] ANN: unordered-containers - a new, faster hashing-based containers library

2011-02-23 Thread Gregory Collins
, some preliminary benchmarks: https://gist.github.com/826935 It's probably a month or two away from a releasable state, but my work-in-progress is substantially faster (4-6X) than Data.Hashtable for inserts and lookups. G -- Gregory Collins g...@gregorycollins.net

Re: [Haskell-cafe] ANN: unordered-containers - a new, faster hashing-based containers library

2011-02-23 Thread Gregory Collins
On Wed, Feb 23, 2011 at 3:49 PM, Max Bolingbroke batterseapo...@hotmail.com wrote: On 23 February 2011 12:05, Gregory Collins g...@gregorycollins.net wrote: I've been working on one lately, some preliminary benchmarks:    https://gist.github.com/826935 It's probably a month or two away from

Re: [Haskell-cafe] Releasing head of lazy ByteString

2011-02-20 Thread Gregory Collins
, so I'll see if I run into any trouble. It's sane but it's fiddly and error-prone, which is why a lot of people tend to be using iteratees (using either the iteratee or enumerator packages) for this kind of thing these days. G -- Gregory Collins g...@gregorycollins.net

[Haskell-cafe] Snap 0.4 Released!

2011-02-06 Thread Gregory Collins
. - Added catchFinishWith function. - Changed cookie interface to expose cookies in the response as a map for easier manipulation. As always, please let us know if you find any issues with the release. Thanks! -- Gregory Collins g...@gregorycollins.net

Re: [Haskell-cafe] Where is the CABAL file for haskell-platform 2010.2.0.0?

2011-01-21 Thread Gregory Collins
says)? Will the CABAL file for 2010.2.0.0 not be available *at all* after 2011.x.0.0 is released? http://code.haskell.org/haskell-platform/ is a darcs repository. Why don't you look in the history? G -- Gregory Collins g...@gregorycollins.net

Re: [Haskell-cafe] UTF-8 BOM

2011-01-05 Thread Gregory Collins
Use the text library instead? On Jan 5, 2011 2:09 AM, Tony Morris tonymor...@gmail.com wrote: I am reading files with System.IO.readFile. Some of these files start with a UTF-8 Byte Order Marker (0xef 0xbb 0xbf). For some functions that process this String, this causes choking so I drop the

Re: [Haskell-cafe] Type System vs Test Driven Development

2011-01-05 Thread Gregory Collins
this up. Highly recommended, even if it is a (blech) Java program. Testing is one of the few areas where I think our software engineering tooling is on par with or exceeds that which is available in other languages. G -- Gregory Collins g...@gregorycollins.net

Re: [Haskell-cafe] global, modifiable variable for debugging

2010-12-27 Thread Gregory Collins
. Is a better way to get this behavior ? Thanks, Brian ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe -- Gregory Collins g...@gregorycollins.net

Re: [Haskell-cafe] Data.Judy and StablePtr

2010-12-20 Thread Gregory Collins
/mailman/listinfo/haskell-cafe -- Gregory Collins g...@gregorycollins.net ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

[Haskell-cafe] Snap 0.3 Released!

2010-12-20 Thread Gregory Collins
grabbed by variable capture using route are also now URL-decoded. - Under the hood: snap server backend mechanism has been improved/factored out, making it possible to listen to two or more ports using different backends at once (e.g. SSL and non-SSL). Thanks, G -- Gregory Collins g

  1   2   3   >