| ▲ | fcatalan 4 hours ago | |||||||
I have let Gemini, Claude Code and Codex hallucinate the language they wanted to for a few days. I prompted for "design the language you'd like to program in" and kept prompting "go ahead". Just rescued it from a couple too deep rabbit holes or asked it for some particular examples to stress it a bit. It´s a weird-ass Forth-like but with a strong type system, contracts, native testing, fuzz testing, and a constraint solver for integer math backed by z3. Interpreter implemented in Elixir. In about 150 commits, everything it has done has always worked without runtime errors, both the Elixir interpreter and the examples in the hallucinated language, some of them non-trivial for a week old language (json parser, DB backed TODO web app). It´s a deranged experiment, but on the other hand seems to confirm that "compile" time analysis plus extensive testing facilities do help LLM agents a lot, even for a weird language that they have to write just from in-context reference. Don´t click if you value your sanity, the only human generated thing there is the About blurb: | ||||||||
| ▲ | gf000 2 hours ago | parent | next [-] | |||||||
Interesting project, but I believe the base assumption is already slightly wrong. Why do we assume that LLMs know what kind of language would benefit them? This information is not knowable without doing proper research, and even if there is some research like that, it would have to be a part of the training data. Otherwise it's just hallucination. | ||||||||
| ||||||||
| ▲ | ntonozzi 3 hours ago | parent | prev | next [-] | |||||||
Wow that is wild, that is exactly along the lines of my fantasy language. It'd be so easy to go into the deep end building tooling and improving a language like this. | ||||||||
| ||||||||
| ▲ | zozbot234 2 hours ago | parent | prev | next [-] | |||||||
This is actually quite impressive, especially as AI vibe-coded slop. How easy is the language to learn for novice coders, compared to other FORTH lookalikes? | ||||||||
| ||||||||
| ▲ | adregan 4 hours ago | parent | prev [-] | |||||||
Have you asked them to compile it to BEAM bytecode directly? | ||||||||
| ||||||||