Full-stack developer working with functional programming languages, based in Los Angeles, CA. I enjoy applying the techniques of pure functional programming to real-world problems.
I am the original designer of the PureScript programming language and compiler. I implemented many of the compiler features and core libraries, and continue to work on new features.
Thermite is a library for developing reactive user interfaces with PureScript and React.
This teaching tool allows developers to step through the evaluation of a MicroKanren program, observing values as unifications happen, for debugging purposes.
This web application allows developers to try the PureScript programming language without installing the compiler. It compiles the user's code on the server, and executes it in an iframe.
I wrote this book as an introduction to functional programming for Javascript developers. It covers many core FP concepts, providing real-world examples as motivation, including callback-based programming, canvas graphics and DOM templating.
I wrote this blog series to highlight some of the activity in the PureScript developer community.
Many of my PureScript articles can be found on the PureScript website.
Articles on Haskell, type theory and functional programming can be found at my blog.
Recursion can run afoul of stack overflow errors if we are not careful to make our functions tail-recursive. But tail recursion is not enough if we want to use monadic recursion, or abstractions like free monads and free monad transformers. In this talk, I show how we are able to make these techniques safe in PureScript, a strict Haskell-like language that compiles to JavaScript.
The Profunctor type class provides an alternative presentation of lenses and prisms. In this talk, I gave an introduction to profunctor optics and examples.
Principal Type Schemes for Functional Programs
The Damas-Hindley-Milner type system is a classical system for the first-order polymorphic lambda calculus, and the ML family of programming languages. This paper introduces Algorithm W, a simple algorithm for type reconstruction in the DHM type system. I'll walk through the main results of the paper, and compare the DHM type system with other more modern systems.
Reactive UIs with PureScript and Halogen
Halogen is a new library for developing reactive front-end web applications in PureScript, based on a simple HTML templating language and the concept of signal functions. I will give a brief overview of the ideas behind the library, and we will be lead naturally from signals to signal functions as we try to solve some simple problems.