[Haskell-cafe] Current heap size and other runtime statistics -- API for accessing in GHC?

2011-04-10 Thread Ryan Newton
Hi cafe, The rtsopts (-s etc) can provide some nice debugging information regarding memory management. And System.Mem.performGC can initiate garbage collection. But are there APIs for querying the current state of the heap? I've googled and come up dry. In this case I'm running benchmarks and

Re: [Haskell-cafe] AES on 32-bit system

2011-02-07 Thread Ryan Newton
Hi all, I released the intel-aes package which has support for AESNI (and as a fallback uses the same C code as AES, both with Thomas's Crypto.Classes.BlockCipher interface). But it has a long way to go to be portable. I'm afraid of exactly these sorts of compiler problems. For arguments sake,

Re: [Haskell-cafe] Cabal ignores ld-options? - 2011 remix

2011-01-31 Thread Ryan Newton
Oops, I guess I misinterpreted package description. It did sound a little dangerous ;-). What you suggested also worked. I'm in good shape now. Thanks again, -Ryan On Mon, Jan 31, 2011 at 11:24 AM, Duncan Coutts duncan.cou...@googlemail.com wrote: On Mon, 2011-01-31 at 09:52 -0500, Ryan

Re: [Haskell-cafe] Splittable random numbers

2011-01-31 Thread Ryan Newton
in Haskell loop] This is what Burton Smith originally thought, that AES based RNG would be pretty fast and even faster with hardware acceleration. -Ryan On Mon, Jan 31, 2011 at 1:25 AM, Ryan Newton new...@mit.edu wrote: Hi Cafe, I've included Gladman's efficient, portable C implementation

[Haskell-cafe] Cabal ignores ld-options? - 2011 remix

2011-01-30 Thread Ryan Newton
Hi cafe, I am trying to link a .a file built by a separate makefile into my library. GHC has no problem with it, but I need to convince cabal to do it for the package to be hackage-friendly. There's a thread about this back in 2007:

Re: [Haskell-cafe] Cabal ignores ld-options? - 2011 remix

2011-01-30 Thread Ryan Newton
/libintel_aes.so obj/x64/intel_aes.o obj/x64/iaesx64.o obj/x64/do_rdtsc.o On Sun, Jan 30, 2011 at 12:22 PM, Duncan Coutts duncan.cou...@googlemail.com wrote: On Sun, 2011-01-30 at 05:20 -0500, Ryan Newton wrote: I am trying to link a .a file built by a separate makefile into my library. GHC has

Re: [Haskell-cafe] Splittable random numbers

2011-01-30 Thread Ryan Newton
. -Ryan P.S. Checkout command: git clone git://github.com/rrnewton/intel-aes.git On Sat, Jan 29, 2011 at 8:52 AM, Ryan Newton rrnew...@gmail.com wrote: perhaps performance? Is this approach less robust with a faster, non-cryptographic RNG? Yes, I don't understand that either

Re: [Haskell-cafe] Splittable random numbers

2011-01-21 Thread Ryan Newton
Hi cafe, I want to add the ability to use AES-NI instructions on Intel architectures to GHC. Mainly I'd like to do splittable random number generators based on AES as was suggested at the outset of this email. (I met Burton Smith last week and this topic came up.) I was just reading the below

Re: [Haskell-cafe] Splittable random numbers

2011-01-21 Thread Ryan Newton
[3] http://hackage.haskell.org/package/cryptocipher On Fri, Jan 21, 2011 at 2:19 PM, Ryan Newton rrnew...@gmail.com wrote: Hi cafe, I want to add the ability to use AES-NI instructions on Intel architectures to GHC. Mainly I'd like to do splittable random number generators based

Re: [Haskell-cafe] Splittable random numbers

2011-01-21 Thread Ryan Newton
On Wed, Nov 10, 2010 at 11:33 AM, Lauri Alanko l...@iki.fi wrote: So a naive implementation of split would be: split g = (mkGen seed, g') where (seed, g') = random g Just to be clear, that is the same as Burton Smith's original proposal that Simon mentioned at the outset, right?

[Haskell-cafe] Opportunity: Spring semester internship on Haskell project at Intel

2010-11-15 Thread Ryan Newton
Dear Haskellers, We're looking for outstanding candidates for an internship in Spring 2011. The internship will be in a suburb of Boston (Hudson, MA). Graduate students and talented undergraduates are welcome to apply, but time is a bit short. We are a small research group run directly by the

[Haskell-cafe] Re: Opportunity: Spring semester internship on Haskell project at Intel

2010-11-15 Thread Ryan Newton
was corrupted, the Nikola project can be found here http://www.eecs.harvard.edu/%7Emainland/projects/nikola/. On Mon, Nov 15, 2010 at 11:02 AM, Ryan Newton rrnew...@gmail.com wrote: Dear Haskellers, We're looking for outstanding candidates for an internship in Spring 2011. The internship

Re: [Haskell-cafe] Haddock: patch to generate single-index page in addition to perl-letter indexes indices.

2010-10-24 Thread Ryan Newton
for mobile or otherwise low-bandwidth devices this can be a nice alternative. On 24 October 2010 04:41, Ryan Newton new...@mit.edu wrote: When I encounter a split-index (A-Z) page it can be quite frustrating if I don't know the first letter of what I'm searching for. I want to use my browser

Re: [Haskell-cafe] Why isn't there a cheaper split-in-two operation for Data.Set?

2010-10-19 Thread Ryan Newton
bertram.felgenha...@googlemail.com wrote: Ryan Newton wrote: Would there be anything wrong with a Data.Set simply chopping off half its (balanced) tree and returning two approximately balanced partitions ... cleave :: Set a - (Set a, Set a) cleave Tip = (Tip, Tip) cleave (Bin _ x l r

[Haskell-cafe] Installing ghc on NFS ... stripping and upx'ing executables, but what about .a/.so libs

2010-10-14 Thread Ryan Newton
This gets the ghc executable itself from 42mb down to 5.6mb, which helps a lot on cruddy NFS installations. For example the libHSghc-*, which are pretty huge (49-137mb). Are these libraries that are used only by GHC for compilation? (Actually, I seem to be able to compile simple files without

[Haskell-cafe] Cobbled together a version of Haskell Platform 2010.2 that works for GHC 7.1

2010-10-14 Thread Ryan Newton
Well, it's not 2010.2 anymore because I had to upgrade a few packages ;-), but if you want to try out some of the new GHC 7 features this can get you a working cabal-install. Download here: http://parfunk.blogspot.com/2010/10/hacking-together-working-version-of.html Apologies if this is

[Haskell-cafe] Why isn't there a cheaper split-in-two operation for Data.Set?

2010-09-24 Thread Ryan Newton
Would there be anything wrong with a Data.Set simply chopping off half its (balanced) tree and returning two approximately balanced partitions -- i.e. Data.Set.split without the pivot argument? Even though it can't quite be constant-time (still need rebalancing) it could still be cheaper than

[Haskell-cafe] Why isn't there a cheaper split-in-two operation for Data.Set?

2010-09-22 Thread Ryan Newton
Would there be anything wrong with a Data.Set simply chopping off half its (balanced) tree and returning two approximately balanced partitions -- i.e. Data.Set.split without the pivot argument? Even though it can't quite be constant-time (still need rebalancing) it could still be cheaper than

Re: [Haskell-cafe] CnC Haskell

2010-09-02 Thread Ryan Newton
Belated update: The haskell-cnc distribution (if you grab it from darcs) now has a front-end that parses the graph description files. http://hackage.haskell.org/package/haskell-cnc For any readers who haven't seen this before -- CnC is a parallel programming model that includes both a

[Haskell-cafe] Page rank and GHC docs directory organization

2010-07-22 Thread Ryan Newton
GHC docs seem to have the problem that newer versions only gradually overtake older ones in page rank, resulting in the effect that if one uses Google to find library documentation, they may accidentally look at an old version. For example, if I google Data.Data Haskell the first link brings me

[Haskell-cafe] Tricks with GMap -- question about conflicts w/ indexed type families

2010-06-04 Thread Ryan Newton
GMaps -- families of map implementations indexed by the key type -- are an example on the wiki:   http://www.haskell.org/haskellwiki/GHC/Type_families I've been using something like this myself.  It sure would be nice to have a fully developed version on Hackage, and I may try to submit this

[Haskell-cafe] Simplest reference for how to build GHC head + get it running w/ cabal/haskell-platform?

2010-06-03 Thread Ryan Newton
What's the easiest reference for how to build GHC head and get it up and running with cabal/haskell-platform? I simply installed 6.12 + haskell-platform then built ghc-6.13.xx and rebuilt only the packages I needed with cabal install --reinstall. Perhaps this is not the recommended way. Indeed,

<    1   2