Link: Union vs sum types (2021)

Viral instruction wrote a blog post way back in 2021 explaining the difference between union and sum types. I had always used these terms pretty much interchangeable, but this explanation makes sense. I guess I was using ‘union type’ as a bit of a short hand for tagged-union type. I think that Elm has even wrestled with this terminology and they settled on “custom union type”, which I’m not overly fond of, but I can see they are going for clarity. ...

September 21, 2026 · Allan Clark

Why do companies stop using Haskell

Vaibhav Sagar gave a talk at ZuriHac Why Do Companies Stop Using Haskell?. If I’m honest, I found the talk a little difficult to follow, and I’m not sure if I understand any better why companies stop using Haskell or any other functional programming language. It’s an interesting question, one point that Vaibhav makes during the talk is: Many large projects fail, those written in Haskell may have their failure unfairly attributed to Haskell. ...

September 17, 2026 · Allan Clark

Type inference and usability issues

Austin Henley has written a post titled: Type inference has usability problems. I’m not quite sure he demonstrates the title, but it’s definitely a good thought provoking post. Answers to specific points Specific points in Austin’s post: Go You might think, “ok, I’ll just not use it” if it is bad. But if you try to avoid it in Go, you will get warnings! Go’s linter says that you “should omit type X from declaration of var Y; it will be inferred from the right-hand side”. Moreover, all of the examples from Effective Go follow this practice. ...

September 8, 2026 · Allan Clark

Update: Ladybird, Servo and strong static guarantees

Ladybird adopts Rust In the original post I discussed the fact that Ladybird, a full web browser written in C++ had overtaken Servo, a web rendering engine written in Rust, in web platform tests passing. I was surprised by this since my prior would have it that using the Rust language over C++ would be a strong advantage in terms of productivity. I attempted to explain why I might continue to hold that belief in the face of the new evidence given by the Ladybird project overtaking the Servo project. I didn’t fully convince myself, but in February of this year Ladybird announced that they were adopting Rust. This post is an attmepting to understand what’s happening and see if we can draw any conclusions. ...

August 28, 2026 · Allan Clark

Entropic Thoughts: ViewPattern Argument Transform

The Entropic Thoughts blog has a new post: “Non-Obvious Haskell Idiom: ViewPattern Argument Transform” regarding something I didn’t know existed in Haskell, and it touches upon something I’ve written about before so I’d like to say how they are related, and wonder whether this is the correct solution, I don’t have a better one. So first the new feature in Haskell is a “ViewPattern argument transform”. What is one of those? Well suppose you have a function such as: ...

October 8, 2025 · Allan Clark

Link: Elm Queue Shootout

Martin Janickek has a great post “Elm Queues Shootout” which is well worth reading. He uses property based testing to test several Elm queue libraries. He then benchmarks those libraries as well, though he is cautious to note that for the most part queuing libraries are fast enough and you don’t really need to worry about performance unless you have queues of many items in a hot loop somewhere: I need to preface this with: this is all on a nanosecond scale. Don’t be wooed by the absolute differences here - does your webapp really care about 0.2ns vs 3ns? Which operations will it do often? The O(1) vs O(N) time complexities will probably be more instructive, though again you have to think about the realistic sizes of your queues. Are they going to hold more than a few hundred items? ...

October 5, 2025 · Allan Clark

Ladybird overtakes Servo: Why?

The success of Ladybird (C++) overtaking Servo (Rust) challenges some assumptions I have about the programming language productivity, particularly with respect to strong, static typing, and the lack of a satisfying explanation allows me to update my priors a little. This post was triggered by watching the latest update video from the Ladybird team, in this we learn that according to the web-platform-tests Ladybird has now overtaken the Servo project in terms of tests passing. According to this HackerNews comment in August of 2024 the Servo project was quite far ahead. ...

September 10, 2025 · Allan Clark