A Lazy Sequence

All articles about Javascript




Modeling union types using only functions

The lambda calculus is the basis for functional programming. Church's encodings in the untyped lambda calculus show an interesting pattern that parallels union types in languages like Haskell. Here I try to show how these discriminated union types can be implemented using only javascript functions.

12 June 2013

ANN: Color.js 1.0

color.js, my color management library for JavaScript, has hit 1.0.

1 May 2013


If it doesn't quack like a duck, wrap it in a duck. Or don't.

14 April 2013


CoffeeScript comprehensions are broken

An examination of List Comprehensions in several languages, how Coffeescript's ‘comprehension’ semantics differ from the common case, and limitations that arise.