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.

May
16
comment Haskell: what the heck is "-<", anyway?
when searching for symbols, hoogle and hayoo are your friends.
May
12
awarded Nice Question
May
10
comment How do I prevent @require from caching external js scripts
@require is for caching at install time. - "Each @require is downloaded once, when the script is installed, and stored on the user's hard drive alongside the script." If you don't want caching, just insert a <script> tag into the page.
May
6
awarded Notable Question
May
6
comment How does this "hello world!" program work?
meet: what does that mean main returns?
May
5
comment Why does this function work in runghc but not in ghci?
You can also use :{ and :} to make multiline definitions.
May
1
awarded Famous Question
Apr
29
awarded Nice Answer
Apr
29
answered How can i make Insert_sort high-order-function in Haskell
Apr
29
comment How to merge two Consumer into one in Haskell Pipes?
I think you need the ArrowChoice proxies. Some discussion here
Apr
29
answered Declaring a "subclass" in Haskell
Apr
29
awarded Popular Question
Apr
26
answered Isn't this a double traversal?
Apr
23
revised do..while(0) function-like C macro wrapper in c2hs
deleted 45 characters in body
Apr
23
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?
1 2 3 4 5