all | popular | tags | rss

OpenStruct, a dynamic object utility for Scala

Ruby standard library has a nice little utility named OpenStruct which gives you objects on which you can dynamically add and remove fields. .NET framework added ...

Continue Reading »

Stacking up Factor against Lisp bullet list

Out of a whim, I retook Factor yesterday. By some coincidence, Alvaro Videla also happened to retake it at about the same time. In a twitter conversation on the t...

Continue Reading »

Composition with non-deterministic computations

A deterministic computation has a type A -> B. It has input type A, and result type B. Only one result. Hence just B.

Continue Reading »

F# option cheat sheet

From what I have seen, pattern matching is overused in F#. Especially when dealing with options. It’s not hard to spot the following kind of pattern in F# codebas...

Continue Reading »

Composing functions with adicity greater than one

Haskell due to the curried nature of its functions makes partial application and composition a favorable programming style. A few days ago, I solved Project Euler...

Continue Reading »

Sections of (.)

Lambdabot is an excellent tool to learn to use point-free style (among other things) in Haskell and similar programming langauges. This tool when asked to point-f...

Continue Reading »

Evolution of a typical Scala programmer

The task is simple. You have a collection of document objects. You have to calculate the sum of their lengths. (This post on stackoverflow triggered me to write t...

Continue Reading »
« Newer Posts Page 3 of 4 Older Posts »