
I've started to run out of memory when linking certain packages. The culprits at the moment are crypto-api (Crypto.CPoly) and Agda-executable. A bit of searching revealed that adding ghc-options: -dynamic to the Agda-executable .cabal could allow me to link that package. And it worked. crypto-api is a library package, so I some similar trick isn't really a possibility there :( Is there anything I can do about this? System: Linux (ArchLinux) GHC version: 7.0.3 /M -- Magnus Therning OpenPGP: 0xAB4DFBA4 email: magnus@therning.org jabber: magnus@therning.org twitter: magthe http://therning.org/magnus Most software today is very much like an Egyptian pyramid with millions of bricks piled on top of each other, with no structural integrity, but just done by brute force and thousands of slaves. -- Alan Kay

On Wed, Dec 21, 2011 at 4:06 AM, Magnus Therning
I've started to run out of memory when linking certain packages. The culprits at the moment are crypto-api (Crypto.CPoly) and Agda-executable. [snip] crypto-api is a library package, so I some similar trick isn't really a possibility there :( Is there anything I can do about this?
That module is something I really hate, since every time I develop something that uses any form of HTTP there's a package that indirectly pulls crypto-api. Since there are many times where I use cabal-dev or virthual-env, the party begins! So I guess you could e-mail crypto-api's maintainer and express your dissatisfaction? crypto-api is meant to be a core package in Haskell's cryptography world, this situation is far from ideal. Cheers, -- Felipe.

On Wed, Dec 21, 2011 at 10:00, Felipe Almeida Lessa
On Wed, Dec 21, 2011 at 4:06 AM, Magnus Therning
wrote: I've started to run out of memory when linking certain packages. The culprits at the moment are crypto-api (Crypto.CPoly) and Agda-executable. [snip] crypto-api is a library package, so I some similar trick isn't really a possibility there :( Is there anything I can do about this?
That module is something I really hate, since every time I develop something that uses any form of HTTP there's a package that indirectly pulls crypto-api. Since there are many times where I use cabal-dev or virthual-env, the party begins!
So I guess you could e-mail crypto-api's maintainer and express your dissatisfaction? crypto-api is meant to be a core package in Haskell's cryptography world, this situation is far from ideal.
Sure, I can do that, but it would be even better to express dissatisfaction and suggest a way to fix it. I don't have any idea of what's going on though. Anyone with deeper knowledge? /M -- Magnus Therning OpenPGP: 0xAB4DFBA4 email: magnus@therning.org jabber: magnus@therning.org twitter: magthe http://therning.org/magnus

On Wed, Dec 21, 2011 at 8:18 AM, Magnus Therning
Sure, I can do that, but it would be even better to express dissatisfaction and suggest a way to fix it. I don't have any idea of what's going on though. Anyone with deeper knowledge?
The problem with that module is cpolysArr. An idea is to put that array in another module with NOINLINE and GHC_OPTIONS -O0. Didn't test it, though. Cheers, -- Felipe.
participants (2)
-
Felipe Almeida Lessa
-
Magnus Therning