[Well-Typed Blog] Not Slop: Haskell in the Age of AI A Marimo developer's follow-up experiment found that LLM coding failures previously attributed to Haskell also appear in Python when models use unfamiliar or newly upgraded libraries, shifting the question from which language is most token-efficient to how language APIs should be designed for unfamiliar code. The developer, who works on the open source Python notebook platform Marimo and its marimo-pair agent interface, reported that when asked to use an unseen Python API the LLM would either call help() on the module and reason through it or declare the task impossible and ask for a specific package version to be installed. The conclusions were published in a blog post on context complexity, with further work planned ahead of Zurihac. For my day job I am on the development team of an open source Python notebook platform called Marimo https://marimo.io/ . Earlier this year we launched a tool called marimo-pair https://marimo.io/pair which provides an interface for agents to write code snippets and manipulate the notebook environment. Because notebooks force LLMs to write inspectable code incrementally I figured they are a good environment for answering questions about productivity and efficiency. I ran an initial experiment here https://mchav.github.io/a-first-look-at-token-efficiency/ where I found that because LLMs knew Python libraries better they could produce more idiomatic Python in fewer tries. That is if you ask an LLM to sum a column in a CSV file it’ll do something like: python import pandas as pd df = pd.read csv "./my file.csv" print df "col" .sum Whereas if you asked it to do the same in Haskell it either: I thought the question was settled for a while until I tried using marimo-pair on newer Python libraries that weren’t well represented in the training data. Even newer versions of common libraries with major upgrades and noticed the “Haskell” failure modes appear. When asked to use an unseen/unfamiliar Python API the LLM would either: help on the module and then reason its way through. However, oftentimes it would say it’s not possible and ask you to install a specific version of the package. So I reframed my question from which language is more token-efficient to - how do you design a set of language APIs to make writing unfamiliar code easier. The result was this blog post https://mchav.github.io/context-complexity/ . The conclusions were: String as a type everywhere for example . I’m going to continue some of this work next year in preparation for Zurihac but I think more generally the question of LLM language productivity needs a really good design/setup and every experiment needs to be clear about what it’s measuring and why.