rampion

Washington, DC

del.icio.us/rampion

Age: 35

Mathematician, programmer, and researcher; with interests in algorithmic design, software engineering theory, and massively parallel computing. I'm also a keyboard junkie and an aspiring language nerd.

1h
answered Isn't this a double traversal?
2d
revised do..while(0) function-like C macro wrapper in c2hs
deleted 45 characters in body
2d
comment do..while(0) function-like C macro wrapper in c2hs
OP probably just wants int c_testF1(int x) { TestF1(c); }.
Apr
20
answered Making a typeclass, cannot deduce from context
Apr
20
revised How can I tie a pattern to specific items in a data structure?
added 306 characters in body
Apr
20
comment How can I tie a pattern to specific items in a data structure?
this does future-proof against completely changing the implementation of DateDefinition (to something like data DateDefinition = DateDefinition { secondsSinceEpoch :: Integer }), since your fields can always be ported to normal functions.
Apr
20
answered How can I tie a pattern to specific items in a data structure?
Apr
20
comment Making a typeclass, cannot deduce from context
So maybe toStatus :: ToJSON a => a -> Either (Int, String) JSON?
Apr
18
accepted /dev/tty opens in nailgun-server terminal
Apr
18
comment Generating all the combinations of a set of boolean variables in Haskell
Rein Henrichs: Thanks, fixed
Apr
18
revised Generating all the combinations of a set of boolean variables in Haskell
added 6 characters in body
Apr
18
answered Generating all the combinations of a set of boolean variables in Haskell
Apr
16
comment Is it possible to have forgetful type synonyms in Haskell?
I think you're looking for this kind of behavior, but it's not currently supported.
Apr
16
comment Monad Transformer 'distribute' Function
sort of. type classes constraints are transformed by the compiler into dictionary arguments. which dictionary is used at call time is determined by type inference.
Apr
15
comment Monad Transformer 'distribute' Function
Kevin Meredith: Yeah, I imagine it doesn't help that in Scala, constraints are (implicit) arguments.
Apr
15
answered Monad Transformer 'distribute' Function
Apr
15
answered How to use a loop in Vim to define multiple mappings
Apr
13
comment How do I view my gem's (or any other gem's) gem.description and gem.summary texts (.gemspect items) from the command line?
slf: pass it the -r flag for remote operation.
Apr
12
comment Changing Haskell's Functor for Metaprogramming
shouldn't that be lam :: String -> JsFunc () b -> JsFunc a b?
Apr
12
comment Bringing where clause into scope in GHCi debugger
ah, ok, this explains it. I thought it was where at first, but now I see I can't even see originalCounts, which makes sense given your explanation.
1 2 3 4 5