all | popular | tags | rss

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 »

10 Factor One-Liners to Impress Your Friends

A couple of weeks ago, I came across this talk by Slava Pestov (creator of Factor), and I was completely blown away with what I saw. The language is more minimal ...

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