FFI and LLVM

2011-03-30 Thread Louis Wasserman
gluing those together. Louis Wasserman wasserman.lo...@gmail.com http://profiles.google.com/wasserman.louis ___ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-users

Re: Casting + eta reduction

2010-07-13 Thread Louis Wasserman
of GeneralizedNewtypeDeriving instances, so long as we could write them out for ourselves. Louis Wasserman wasserman.lo...@gmail.com http://profiles.google.com/wasserman.louis On Tue, Jul 13, 2010 at 9:09 AM, Simon Peyton-Jones simo...@microsoft.comwrote: It compiles to lift f d = f (d `cast

Re: Casting + eta reduction

2010-07-13 Thread Louis Wasserman
` (...) which would reduce my overhead significantly. Louis Wasserman wasserman.lo...@gmail.com http://profiles.google.com/wasserman.louis On Tue, Jul 13, 2010 at 10:06 AM, Louis Wasserman wasserman.lo...@gmail.com wrote: Mmmm, let's give a slightly different example: foo :: Foo - Int foo (Foo

Casting + eta reduction

2010-07-08 Thread Louis Wasserman
directly casts the class dictionary. The implication would be that that GeneralizedNewtypeDeriving gives more efficient instances than you could *possibly* get if you wrote them by hand, which is very sad. Louis Wasserman wasserman.lo...@gmail.com http://profiles.google.com/wasserman.louis

Casts, and allocation

2010-07-02 Thread Louis Wasserman
with associated types, so I can't do that. How difficult would it be to identify and rewrite these, when they appear in non-recursive lets? (I'm actually experimenting with implementing the change myself, but I've never hacked GHC before, so we'll see how it goes...) Louis Wasserman wasserman.lo

Encountered absent arg

2010-04-06 Thread Louis Wasserman
, which is one of my biggest sources of angst!) Looking at ghc-core, my code appears to *always* give the exception Oops! Entered absent arg ww_s9eC{v} [lid] predmain:Data.Algebra.Ring.Ring{tc r2tU} c{tv a8Os} [tv] Is this typical? Where should I send this? Louis Wasserman wasserman.lo

Re: Proposal: priority queues in containers

2010-03-21 Thread Louis Wasserman
binomial heap implementation. Louis Wasserman wasserman.lo...@gmail.com http://profiles.google.com/wasserman.louis ___ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-users

Re: Libraries Digest, Vol 79, Issue 31

2010-03-19 Thread Louis Wasserman
will priority queues. If I'm going to split off a separate package for priority queues, it'll be because I've been convinced that it ought to be separated from containers, period -- not just because people think containers should be broken up, and this is a good place to start. Meh. Louis

Re: Proposal: priority queues in containers

2010-03-18 Thread Louis Wasserman
send out those tests ASAP. Louis Wasserman wasserman.lo...@gmail.com http://profiles.google.com/wasserman.louis ___ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-users

Re: Proposal: priority queues in containers

2010-03-18 Thread Louis Wasserman
passes -- is in the code.haskell.org directory.) Louis Wasserman ___ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-users

Re: Proposal: priority queues in containers

2010-03-18 Thread Louis Wasserman
Okay, let me ask the following question: Would anybody besides me be heartbroken if priority queues *weren't* put into containers, but were instead put into the Platform? Louis Wasserman wasserman.lo...@gmail.com http://profiles.google.com/wasserman.louis On Thu, Mar 18, 2010 at 6:50 PM

Re: Feedback request: priority queues in containers

2010-03-16 Thread Louis Wasserman
-identical method signatures. Louis Wasserman wasserman.lo...@gmail.com http://profiles.google.com/wasserman.louis On Tue, Mar 16, 2010 at 11:10 AM, Tyson Whitehead twhiteh...@gmail.comwrote: On March 16, 2010 09:29:06 Louis Wasserman wrote: I'd like to request some more feedback

Re: Feedback request: priority queues in containers

2010-03-16 Thread Louis Wasserman
that we retain Foldable. The most important reason is that we don't lose any invariants as a result of a fold, and the second reason is that reexporting functions named foldr and foldl would be awkward. Making this change now. Louis Wasserman wasserman.lo...@gmail.com http

Re: Feedback request: priority queues in containers

2010-03-16 Thread Louis Wasserman
the optimized binomial heap. I'm not sure whether or not I uploaded that benchmark, though. I'll do that at some point today, just to keep everyone happy. Louis Wasserman wasserman.lo...@gmail.com http://profiles.google.com/wasserman.louis ___ Glasgow-haskell

Re: Feedback request: priority queues in containers

2010-03-16 Thread Louis Wasserman
for heapsorting 25000 Ints: Binomial: 0.000 3.240 2.180 4.000 8.001 PSQ:8.001 13.241 2.882 12.001 24.002 I'm really not okay with that kind of performance loss for added functionality that not everyone needs. Louis Wasserman wasserman.lo...@gmail.com http://profiles.google.com

Re: Feedback request: priority queues in containers

2010-03-16 Thread Louis Wasserman
I suspect the following might be faster: data BinomForest2 a = Empty | NonEmpty a [BinomTree2 a] data BinomTree2 a = BinomTree2 a [BinomTree2 a] This eliminates the Skip constructor, which contributes only to the nested type guarantee. Ehehehe. This is something I'm

halp! trying to build with LLVM

2010-03-05 Thread Louis Wasserman
' utils/ghc-cabal/ghc-cabal.hs:357:27: Not in scope: `programOverrideArgs' make[1]: *** [utils/ghc-cabal/dist/build/tmp/ghc-cabal] Error 1 make: *** [all] Error 2 Halp! Louis Wasserman wasserman.lo...@gmail.com http://profiles.google.com/wasserman.louis

Coinductive proofs of type class instances

2009-10-28 Thread Louis Wasserman
. That might even be fine, though I haven't worked it out. For this particular example, though, (Foo a (F a)) is equivalent to (F a ~ b, Foo a b). This approach actually, I think, works out some coinductive issues, if we apply this approach to issues besides type equality constraints. Louis Wasserman

Re: Unpacking multi-type constructors

2009-07-22 Thread Louis Wasserman
, but currently has no effect, and as a result, I would expect that implementing this proposal wouldn't cause problems in old programs and could be useful in new ones. I think I'm making sense. Would anyone else care to chime in? Louis Wasserman wasserman.lo...@gmail.com On Tue, Jul 21, 2009 at 6:38

Unpacking multi-type constructors

2009-07-20 Thread Louis Wasserman
that currently takes care of {-# UNPACK #-} pragmas, so I could -- for instance -- figure out whether or not there's another reason that this idea isn't in place already? Louis Wasserman wasserman.lo...@gmail.com ___ Glasgow-haskell-users mailing list