[Haskell-cafe] help understanding zlib space leak

2013-05-05 Thread diego souza
Dear haskellers, I'd like assistance figuring out a strange space leak using zlib package. To make it easier to reproduce I've come up with the following snippet that pretty much resumes up the problem I'm trying to solve: -- omitting imports and function signatures encode = compress .

Re: [Haskell-cafe] help understanding zlib space leak

2013-05-05 Thread diego souza
Sorry, I should've removed the pid number from the output. The following should be correct: $ sudo dd if=/dev/sda bs=4K count=2048K | ./test +RTS -M1M -s /dev/null ... 8589934592 bytes (8.6 GB) copied, 243.525 s, 35.3 MB/s 41,942,119,192

Re: [Haskell-cafe] howto best use emacs + tiling WM (Xmonad,DWM)

2011-11-10 Thread Diego Souza
A little delayed, but might be useful. I personally use icicles. I found the M-* great for narrowing results down. I've tried anything and ido also, but icicles ended up winning, for my taste at least. A side note, speedbar actually *does* works for bufffers. Simply type *b* on the speedbar and

Re: [Haskell-cafe] Hackage feature request: E-mail author when a package breaks

2011-11-01 Thread Diego Souza
The perl community has something really interesting for quite long time: http://wiki.cpantesters.org/wiki/HomePage Or more specifically: http://matrix.cpantesters.org/?dist=DBI The idea is simple: there are many different platforms that would be to expensive for one to support. So they ask the

Re: [Haskell] getting started

2011-09-28 Thread Diego Souza
You may also enjoy reading: http://learnyouahaskell.com/ It is also freely available online. ~dsouza On Wed, Sep 28, 2011 at 02:56:46AM -0700, haskell wrote: i am new to haskell can you tell me the softwares to install in haskell i have install hugs emacs but when i write any code it gives

Re: [Haskell-cafe] How to use http-enumerator with hoauth?

2011-02-16 Thread Diego Souza
: On 02/15/2011 05:49 PM, Diego Souza wrote: Hi, thanks for the feedbacks. They sound very reasonable. Going back in time, the first version was in fact a pure library. However, at some point I changed this as I thought it would make it easier to use, which might have been a mistake of mine

Re: [Haskell-cafe] How to use http-enumerator with hoauth?

2011-02-16 Thread Diego Souza
definitely take a look on this! Thanks, On Wed, Feb 16, 2011 at 8:33 AM, Vincent Hanquez t...@snarc.org wrote: On Tue, Feb 15, 2011 at 11:49:16PM -0200, Diego Souza wrote: Hi, thanks for the feedbacks. They sound very reasonable. Going back in time, the first version was in fact a pure library

Re: [Haskell-cafe] How to use http-enumerator with hoauth?

2011-02-16 Thread Diego Souza
Thanks! I'll merge it tonight :-) On Wed, Feb 16, 2011 at 3:33 PM, Jeremy Fitzhardinge jer...@goop.org wrote: On 02/16/2011 06:00 AM, Diego Souza wrote: I was thinking in separating the core and http functions in order to be able to provide implementation for http-enumerator without breaking

Re: [Haskell-cafe] How to use http-enumerator with hoauth?

2011-02-15 Thread Diego Souza
Hi, thanks for the feedbacks. They sound very reasonable. Going back in time, the first version was in fact a pure library. However, at some point I changed this as I thought it would make it easier to use, which might have been a mistake of mine. Back then http-enumerator wasn't available and

Re: [Haskell-cafe] Defining a type depending on the word size of platform

2011-01-02 Thread Diego Souza
Hi, maybe you have already considered this and dropped it out for whenever reasons. Anyways, what if you stick with Int or Data.Word.Word types and use Data.Bits.bitSize or maxBound to check in runtime what the word size is. It might be easier than using CPP extension. ~dsouza On Sun, Jan 2,

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

2010-12-21 Thread Diego Souza
...@gregorycollins.netwrote: Pointers are mapped to StablePtrs using *drumroll* a hash table, so you can give up on getting acceptable performance out of this combination IMO. G On Mon, Dec 20, 2010 at 5:06 PM, Diego Souza dso...@bitforest.org wrote: Hello Haskellers, I'm playing a bit

[Haskell-cafe] Data.Judy and StablePtr

2010-12-20 Thread Diego Souza
Hello Haskellers, I'm playing a bit with Data.Judy. However, I noticed that using StablePtr incurs in some performance problems, I don't have any numbers but as a example use Int and ByteString as values and you can notice the difference without any benchmarking tool with the example that comes

Re: [Haskell] letter?

2010-12-18 Thread Diego Souza
$ whois might give us a clue: Domain ID:D495475-LROR Domain Name:HASKELL.ORG Created On:12-Dec-1996 05:00:00 UTC Last Updated On:17-Dec-2010 16:46:40 UTC Expiration Date:11-Dec-2013 05:00:00 UTC Sponsoring Registrar:Network Solutions LLC (R63-LROR) Status:CLIENT TRANSFER PROHIBITED

Re: [Haskell-cafe] DNS problems at haskell.org?

2010-12-18 Thread Diego Souza
The whois still says it is registered to Galois, Inc. Then, hopefully, it is just a DNS problem. Guys, if you that are responsible for managing haskell.org need a hand with sysadmin tasks I volunteer to work. I don't have lots of spare time, but I do have some. Just let me know. Thanks, On Fri,

Re: [Haskell-cafe] packaging a cgi binary using cabal

2010-09-23 Thread Diego Souza
Well, if you want you might use images inline as well: http://en.wikipedia.org/wiki/Data_URI_scheme#Advantages From my experience, this is supported by all major browser, including IE. Regards, ~dsouza On Thu, Sep 23, 2010 at 9:03 AM, Joachim Breitner m...@joachim-breitner.dewrote: Hi, Am

[Haskell] ANN: hoauth v0.3.1

2010-09-22 Thread Diego Souza
Hi All, I'm pleased to announce hoauth-0.3.1. The major change in this version is error handling. Instead of using fail, you may now provide your own error handling function. Unfortunately I've made changes that make this version incompatible with previous ones. Although I believe updating to

[Haskell] Re: ANN: iyql - interactive yql

2010-09-09 Thread Diego Souza
Oh, forget to send the links: cabal pkg: http://hackage.haskell.org/package/iyql source: http://github.com/dsouza/iyql Thanks! On Wed, Sep 8, 2010 at 11:27 PM, Diego Souza dso...@bitforest.org wrote: Hi All, I'm pleased to announce iyql, an interactive CLI for YQL [ http

[Haskell] ANN: iyql - interactive yql

2010-09-08 Thread Diego Souza
Hi All, I'm pleased to announce iyql, an interactive CLI for YQL [ http://developer.yahoo.com/yql/console]. This version provides the first release, which allows you perform all queries supported by YQL [with the sole exception of parenthesis in WHERE clause]. Among other things, completion and

[Haskell-cafe] Refactoring of OAuth Library - Need Review

2010-03-28 Thread Diego Souza
Hi, I've done a complete refactoring of oauth library. This new version is incompatible (in terms of interface) with the previous one. An example of use is available here: http://projects.bitforest.org/hoauth/dist/doc/html/hoauth/Network-OAuth.html Probably the major change is that, along the

[Haskell-cafe] Re: Refactoring of OAuth Library - Need Review

2010-03-28 Thread Diego Souza
Wrong link. This is the right one: http://projects.bitforest.org/hoauth/dist/doc/html/hoauth/Network-OAuth-Consumer.html ~dsouza On Sun, Mar 28, 2010 at 2:59 PM, Diego Souza dso...@bitforest.org wrote: Hi, I've done a complete refactoring of oauth library. This new version is incompatible

[Haskell-cafe] Cabal pre-compiled packages

2010-02-27 Thread Diego Souza
Hi, currently when one install a cabal package it compiles it and then install generated binaries. I wonder whether or not it would be useful to have pre-compiled binaries as many package managers usually do (e.g. apt). I often think that would save some time on the expense of a busier hackage

Re: [Haskell-cafe] why these two are not equivalent?

2009-09-14 Thread Diego Souza
On Sun, Sep 13, 2009 at 09:57:50PM -0700, Iavor Diatchki wrote: (argh, sorry about that, I pressed something and gmail sent my unfinished email!) On Sun, Sep 13, 2009 at 9:54 PM, Iavor Diatchki iavor.diatc...@gmail.com wrote: Hi, It seems that the problem is the site is using GHC 6.6.1,

Re: [Haskell-cafe] why these two are not equivalent?

2009-09-13 Thread Diego Souza
On Sun, Sep 13, 2009 at 11:34:16AM +0200, Max Rabkin wrote: That is part of the contract of toAscList (the Asc stands for ascending order), but because of the way Map is implemented, the result of toList is also sorted. Cool. It is good to know that toAscList and toList would produce the same

[Haskell-cafe] why these two are not equivalent?

2009-09-12 Thread Diego Souza
Hi, I was trying to solve a simple problem in SPOJ, however, after two weeks trying almost everything I could think of, I was still getting WrongAnswer. Then I decided to do the same thing in C++ and I really got puzzled when I got ACcepted. I tried to understand what was different without

Re: [Haskell-cafe] why these two are not equivalent?

2009-09-12 Thread Diego Souza
Looks like the output should be sorted. The C++ version does this with the iterator over mapstring, int implicitly. I don't spot where your haskell version sorts the output. There could be other problems, that's just what I can notice in 2 minutes of looking. Good luck! Jason, I

Re: [Haskell-cafe] Question about Lazy.IO

2009-09-01 Thread Diego Souza
I'm sure I'm not alone when I say I'd like to see the longer, more technical response. No, you aren't. Please `flood in' :-) -- ~dsouza yahoo!im: paravinicius gpg key fingerprint: 71B8 CE21 3A6E F894 5B1B 9ECE F88E 067F E891 651E ___

Re: [Haskell-cafe] oauth in haskell - reviewers?

2009-08-25 Thread Diego Souza
I've found [obviously] a huge thread about licensing on haskell-c...@. After reading [most] of it, I realized the best thing to do is change the license and start using BSD3. -- ~dsouza yahoo!im: paravinicius gpg key fingerprint: 71B8 CE21 3A6E F894 5B1B 9ECE F88E 067F E891 651E

[Haskell] ANNOUNCE: OAuth library in haskell

2009-08-24 Thread Diego Souza
Dear Haskellers, hoauth is a library which helps you to deal with oauth protocol. Currently it supports only consumer side applications, but there are plans to add service providers support in near future. The source code can be found at [darcs]: http://projects.bitforest.org/hoauth/ and now in

[Haskell-cafe] ANNOUNCE: OAuth library in haskell

2009-08-24 Thread Diego Souza
Dear Haskellers, hoauth is a library which helps you to deal with oauth protocol. Currently it supports only consumer side applications, but there are plans to add service providers support in near future. The source code can be found at [darcs]: http://projects.bitforest.org/hoauth/ and now in

Re: [Haskell-cafe] oauth in haskell - reviewers?

2009-08-24 Thread Diego Souza
Hi Don, no, not really, I completely missed that point. But if that is the case, I presume there is no difference in using other licenses, like BSD3. Is that the case? Thanks, On Mon, Aug 24, 2009 at 02:24:09PM -0700, Don Stewart wrote: I notice hoauth is packaged as LGPL. Since we use static

Re: [Haskell-cafe] oauth in haskell - reviewers?

2009-08-23 Thread Diego Souza
Hi Alex, - In the Token datatype, you can automatically create the accessor functions (oath_token, etc.) by using named fields: I though about that too and I was not sure about what to do. The reason I didn't use it is because I don't export the value constructors of Token type, that is why I

[Haskell-cafe] oauth in haskell - reviewers?

2009-08-22 Thread Diego Souza
Hi all, I wrote a small library in haskell do deal with oauth authentication. It turns out it is my first library in haskell as well. As I'm beginner in haskell, I'm asking for a review of someone more experienced/proficient before even daring to create a cabal pkg and dist it to hackage. :-)

[Haskell-cafe] How To Make It Faster?

2009-06-10 Thread Diego Souza
Hi, I come up with the following solution for this easy spoj problem (warning!): problem: https://www.spoj.pl/problems/ARITH2/ solution: http://hpaste.org/fastcgi/hpaste.fcgi/view?id=5720#a5720 I'd like to make it run faster, if possible. What should I do to identify the bottlenecks and once I

Re: [Haskell-cafe] Haskell progr ammers in São Carlos - SP - Brazil?

2009-05-19 Thread Diego Souza
Not exactly São Carlos: São Paulo - SP. On Tue, May 19, 2009 at 09:28:55PM -0300, Maurí­cio wrote: Anybody else around here? Best, Maurício ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org