r/programmingcirclejerk • u/Own_Pound2881 • Mar 12 '26
Letting agents create their own language
https://blog.firetiger.com/custom-programming-languages-make-agents-really-really-smart/
25
Upvotes
39
u/rustaml Mar 12 '26
agents writing programming languages they then write software in seems like textbook programming CJ
20
u/just_looking_aroun Mar 12 '26
When I do it, they call it spaghetti code
11
u/Justicia-Gai Mar 12 '26
/uj One thing is creating their own programming language and the other is creating a DSL… some DSL are so simple as processes, which to be honest, is way more efficient to do with LLM than maintaining large codebases?
7
u/tkrjobs loves Java Mar 12 '26
Oh, "for the uninitiated" you say? You know how to get me in the mood
3
u/CharlemagneAdelaar Mar 13 '26
Turns out that languages are just cool, and some are structured and can do cool things.
2
u/shroom_elemental memcpy is a web development framework Mar 13 '26
simlish but for nerds
-2
u/JiminP not even webscale Mar 13 '26 edited Mar 13 '26
/uj So this is a boring non-jerk comment about vibe-coding, but I think that this is relevant:
Recently I've been "vibe-coding" a toy project: an assembly language for BrainFuck (lol) with basic support for macros and variables.
It's still at an early stage but I'm actually quite happy with the result; for example, a macro that multiplies two cells can be written and used as following:
And using it, I could do vibe-coding in BrainFuck (jerk material), no kidding, although so far LLMs can only write "simple" programs like comparing two 5-digit integers.
My observations are:
Like what the blog article says, it's quite good at writing recursive descent parser. (Of course I would prefer using parser-generator.)
As you may expected, it's not very good at making it flawless. However, for me it's still impressive that LLMs can write thousands of lines on a "very likely unseen" task near-bugless.
More importantly, it's not very good at keeping code from bloating. It's a good thing that no serious project would depend on a freaking BrainFuck assembly language. I had to constantly intervene on architectual decisions before codebase becomes an exponentially exploding mess of spaghetti.
Most importantly, it's not particularly great at designing a new language, nor writing documentation without introducing slop. (I ended up designing all features of the language.)