A new website!

mgsloan


Publishing posts on the internet has not been my priority in the past. I'm working to shift that a bit. While my focus will still be on work and open source software, I am looking forward to spending a few more cycles on sharing ideas, tutorials, musings, and articles.

My past attempt at blogging fizzled more than 6 years ago, and I only wrote a few posts. I kept a single html page around for posterity. You can visit it here if you are curious to see what I was writing about back then. Mostly some fun ideas using Template Haskell :-)

I'm planning to have a wide variety in the degree of effort and tone in my posts. The point of this is to reduce the obstacles to posting things up. I figure that publishing a bunch of medium-effort rough posts is better than publishing very few high-effort posts. We'll see how it goes!

How the site generation works

I knew I wanted to use static site generation for my blog, and generate simple HTML that loads fast. Since I'm a big fan of using Haskell, I also had a preference for configuring and extending the site in Haskell. The most obvious answer to this would be the hakyll static site generator.

I didn't want to start from scratch – much more efficient to build off someone else's site! Many hakyll sites publish their source code, and there is a list of sites using hakyll, so I clicked every single one using Hakyll 4 to see which ones caught my eye.

I noted down quite a few sites, but one that really caught my eye was Ruud van Asseldonk's site. It has a lot of the attributes I was looking for. In particular, it prioritizes simplicity and keeping the download size minimal. It also looks great to me! With the combination of nice typography, the particular shade of red highlights, and the background color, it really reminded me of Tufte's books, which I thoroughly enjoyed.

So, I took a look at the code for Ruud's site, and was a bit surprised to see that it was using a custom static site generator instead of hakyll. At first, this put me off using it as a basis, but then I realized that it had some nice advantages:

Due to these reasons, I decided to base my site off of Ruud's design and generator instead of using hakyll. This is not really a criticism of hakyll – I didn't really give it a fair shot. I find this custom site generator approach to be quite nice, though.

Ruud kindly gave me the go-ahead to base my site off of his. You can check out the code on github. I've tweaked the layout a fair bit, and I'm use google fonts instead of the beautiful and proprietary calluna family of fonts. Particularly due to the fonts, I think his site is substantially better looking than mine :-)

More words

GHCinception: Running GHCi in GHCi

My patches were merged, allowing GHC to be loaded into GHCi and run! Read full post