Fri 19 Jun 2020

Chromatopelma cyaneopubescens molted

After midnight I noticed that the Chromatopelma cyaneopubescens sling I keep was nearly upside down in its webbing; a sign it's about to molt. When I got up, just over 8 hours later, I took a photo of the freshly molted tarantula.

Chromatopelma cyaneopubescens freshly molted
Chromatopelma cyaneopubescens freshly molted.

The previous and first time this spider molted in my care was the 27th of April, 2020.

Now I have to wait about a week before I can feed the little spider; it first has to harden out its fangs.

Linear types are merged in GHC

There will be linear types in GHC 8.12. But don’t expect a finished product. This is our very first iteration, an MVP as it were. This is as minimal a set of features we think can be useful for anybody. But it’s still very much aimed at early adopters and eager tinkerers.

Source: Linear types are merged in GHC, an article by Arnaud Spiwack.

Using Template Haskell to generate static data

Template Haskell (TH) is a powerful tool for specializing programs and allows shifting some work from runtime to compile time. It can be a bit intimidating to use for beginners. So I thought I would write up how to use TH to turn certain kind runtime computations into compile time computations.

In particular we will turn the initialization of a fully static data structure into a compile time operation. This pattern works for many data structures but we will look at IntSet in particular.

Source: Using Template Haskell to generate static data, an article by Andreas Klebinger.

A little bit of plain Javascript can do a lot

I’ve never worked as a professional frontend developer, so even though I’ve been writing HTML/CSS/JS for 15 years for little side projects, all of the projects have been pretty small, sometimes I don’t write any Javascript for years in between, and I often don’t quite feel like I know what I’m doing.

Partly because of that, I’ve leaned on libraries a lot! Ten years ago I used to use jQuery, and since maybe 2017 I’ve been using a lot of vue.js for my little Javascript projects (you can see a little whack-a-mole game I made here as an intro to Vue).

But last week, for the first time in a while, I wrote some plain Javascript without a library and it was fun so I wanted to talk about it a bit!

Source: A little bit of plain Javascript can do a lot, an article by Julia Evans.