Saturday, March 23, 2019

Fun With Haxl (Part 1)

Fun With Haxl (Part 1)

This is a blog-post version of a talk I recently gave at the Haskell eXchange 2015. The video of the talk is here, but there were a lot of questions during the talk which aren’t very audible on the video, so hopefully this post will be useful to folks who weren’t at the event.

Sunday, February 24, 2019

How to build a Hugo website in AWS Lambda and deploy it to S3

How to build a Hugo website in AWS Lambda and deploy it to S3

This tutorial explains how to run Hugo in AWS Lambda and deploy a static website to Amazon S3. Running Hugo in AWS Lambda can be useful if you want to automate your Hugo builds in the cloud and only pay for the build time.

Saturday, February 16, 2019

Getting Started

Getting Started

Let's get started by writing a test for a hypothetical function that adds two numbers. First, create a sum.js file: Then, create a file named sum.test.js. This will contain our actual test:

Algebraic Effects in JavaScript part 1 - continuations and control transfer

Algebraic Effects in JavaScript part 1 - continuations and control transfer

This is the first post of a series about Algebraic Effects and Handlers. Both approaches are valuables and give different insights on the topic. However, not everyone (including me), has the prerequisites to grasp the concepts of Category theory and Abstract Algebra.

Algebraic Effects in JavaScript part 2 - Capturing continuations with Generators

Algebraic Effects in JavaScript part 2 - Capturing continuations with Generators

This is the second part of a series about Algebraic Effects and Handlers. In the first post we introduced the notions of continuation and control transfer. We saw how programs written in Continuation Passing Style (CPS) are more flexible in terms of control transfer manipulation.

Yield! Yield! How Generators work in JavaScript.

Yield! Yield! How Generators work in JavaScript.

If the title doesn’t already give a hint, we will be discussing generators in this piece. Before going into generators let’s revise some basics about functions.

How to Make Pizza

How to Make Pizza

Our best recipe for pizza dough is adapted from the one used at Roberta’s, the pizza utopia in Bushwick, Brooklyn. It provides a delicate, extraordinarily flavorful dough that will last — and improve — in the refrigerator for up to a week.

Fun With Haxl (Part 1)

This is a blog-post version of a talk I recently gave at the Haskell eXchange 2015. The video of the talk is here, but there were a lot of...