A Lazy Sequence

All articles about Programming

Topics

2024

2023

2021

2019

2018

2016

2014

2013

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.

Duck-wrapping

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

2012

Templates are functions

An article that looks at templates in web development in the context of pure functions and functional programming.

2011

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.

A brief overview of the Clojure web stack

Ring is the foundation of web programming in Clojure. It has a broad ecosystem of libraries that fullfil many different roles in the web stack. This article introduces the fundamental concepts of Ring as well as four major libraries, and explains common idioms to help you get started quickly.

Start parsing in Clojure: fnparse

Parser combinators are a powerful way of expressing complex parsers as first class operations in a language with first class functions. This tutorial introduces one such library, fnparse, for Clojure.

Parsers generating parsers

Following my introduction to fnparse, this article looks at how more common functional programming tools can be leveraged to make parsers that output new parsers.

2010

Monads: redux

Thoughts on the appropriateness of monads in Clojure.

Ghosts in the machine

Following on from looking at state monads in the context of Clojure, this article looks at variations that add different forms of state-m of non-determinism.

On iteration

How Python's view of iteration lead me to Clojure.

2009