Looks like it is time to pack and leave,…
Or at least deeply reconsider what does it mean to be a “programmer” and what a life-long study (some. here, there) of the principles (instead of particulars – the old MIT maxim) means nowadays.
Here is a github repo which contains the “skills” I wrote for OCaml https://github.com/lngnmn2/.agents (because I recently feel in love with some aspects of it).
One can easily see which one are the “raw” ones (written by me) and which ones are “polished” by LLMs (and, arguably, way worse than mine).
This, by the way, is easy to understand – an LLM speaks “common sense” in the literal meaning of this term – what most of the people (statistically) would say about something (not necessarily having any genuine understanding whatsoever). So an LLM would bring you back to “normal”, including the narrative that imperative features are fine and even necessary, you know.
Anyway, here is another repo: https://github.com/lngnmn2/hyp8. This is what a frontier LLM produced based on my SKILL files – the result of one “free tier” session, from the ground up till the limit has been reached – just a few hours long session.
I won’t share the prompts, only the resulting slop.
So, what we have got here? An initial phase of a “project” , which has the most important things “done right”, right from the start.
- a proper language, constrained to its pure functional subset (an LLM, of course, slipped an imperative crap in)
- a proper project structure (a-la Hexagonal architecture, right from the start).
- a proper modularity right from the start – does not have to refactor a mess into smaller messes.
- mostly proper idioms, again, it “forgets” your “skills” between prompts and writes what it has been trained with.
- proper DDD, TDD and XP workflows, at least it swear it does (but it doesn’t).
- proper tests, at teast good-enough.
This is not just paraphrasing the “ideas” from the “Modern Software Engineering” book (highly repetitive, AI assisted, narcissistic writing about serious things), it was a serious attempt to do as many fundamental aspects “just right” from the start as humanly possible.
Even the abstract (but fundamental) notions form Gentzen’s Natural Deduction – an Introduction rule, following by an Elimination rule, which, not coincidentally (at least to me) corresponds to the notion of an Initial Algebra (a Set – a tagged disjoint union – of data-constructors) followed by a Catamorphism, which properly folds (and there is the only one unique way to do this) the whole sum-type, etc.
My favorite questions, like why tf there is an isomorphism (an one-to-one structural correspondence) between Gentzen’s rules and Category theoretical abstractions, and the biological “reactions”, mediated by enzymes (biology never “produces” any molecular structure which will not be eventually “used” elsewhere) we will leave for a further writing, some day.
So, this is, of course, not my code, the way this is my writing. When I write something I have already know and understood shit – I have already “learned” a particular representation within my synaptic gaps about it.
The slop code is not mine – it comes prior (or independent of) my understanding of it.
The moment an LLM has finished spewing it out, I am becoming a maintainer of someone else’s slop. But at least this slop is easy to maintain and change (according to the very same principles from the annoying book mentioned above).
There is, of course, more to this,
It produced a “homegrown” implementation of Keccak in pure Ocaml, among other things (using imperative loops over arrays, despite being explicitly told to avoid these, because this is what it has in its training data).
Can you write a working Keccak “calculator”? How long would it take? Can you understand it? Soundness? Unboxed values? No integer overflows? Can you? I, obviously cannot.
But guess what? I tricked it to pass the right tests, and it is “sound"up to imperative features used in the implementation (since this is a deterministic mathematical function, however complicated).
There are lots and lots of good stuff here, the stuff mediocre coders would not even able to produce, or even comprehend (how every data construction is, eventually,, followed by an elimination via an exhaustive pattern matching expression, and that these “paths” through the code are exactly the edges of a DAG, which declaratively (mathematically) defines the actual computational process).
The question, of course, is “Now What?”.
I know how it has done this, at least in principles. I know where it “lied” to me and “why”. I know that the whole shitshow is a highly sophisticated,computationally expensive cognitive illusion, but the code is here.
Some good programmers could estimate how long would it take to them to produce a codebase which is “mostly right” in the most important aspects (via endless refactoring to “semantic perfection” and “just right” decisions at the all levels – form syntactic forms to parameterized modules). Years. At least it took me years to learn what I know.
Now what?
Yes, maybe, just like good motorcycles are not being built in a garage from forged by hand pieces of metal, one unit at a time… You get the idea. Nowadays they are made by robots and partially assembled by people who have not a slightest idea…
Yes, understanding is still necessary and sufficient, and has to be done prior to asking a slop generator anything at all. But it feels like betrayal anyway.
And yes, that meme narrative that LLMs are just tools for experienced senior programmers… But a conveyor full of robots is not a tool, it is a different kind of arrangement, orders of magnitude more “efficient” and “cheap”.
Anyway, the code is a proof by example of many principles and rules I have been writing about the last few years. I will probably improve it and will further experiment with it, but this preliminary result is good-enough to see everything as It Is, not as we want to “see” it.
A sheer brute force overwhelms.
Trinity is “loading” a helicopter piloting “skills” into here mind…. and puked and passed out.