Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

But that's usability from a human perspective; an LLM shouldn't be bothered by it.
 help



No, esolangs are convoluted because they require entire paradigm shifts of thinking. All mainstream languages are more or less the same, if-then-else, just in different ways, match statements, gotos, monads, whatever. Even if it might not be as strong in a less common one, it can still get a general idea and map it's abstract knowledge on to the new language. I've even seen some complains from people writing in Clojure that "the LLM just defaults back into Python-isms", which doesn't mean that the LLM is bad at the language, just not optimized to it's strengths, like a skilled programmer who's just learning the language. Esolangs require working in entire state machines, it's completely foreign to intellect in general, it's like seeing the world in Game of Life cells, it's just way too much cognitive overhead, for man or machine. That's why some esolangs are so complicated we have to engineer a mathematical solution just to write a simple program in them. You don't need to do that for a mainstream, human-readable language. That's why they're esoteric. Hidden knowledge.

That's a valid hypothesis, but according the paper apparently they are bothered by writing these languages to some degree compared to others, so is that due to lack of training data or lack of intrinsic unusability?

My hypothesis is that if LLMs are intelligent, they should benefit from usability the same way humans do. Maybe not to the same degree, but more usable languages for humans should be more usable for LLMs compared to pathological unusability. Perhaps you can get around unusability with enough data, or maybe you can get away with fewer training data by being more usable.

Some of these esolanguages might be pathological for LLMs because they require them to engage in thinking they're actually structurally bad at -- Befunge-98 executes in two spatial dimensions, while LLMs process a linear stream of tokens; Whitespace encodes instructions entirely through spaces, tabs, and newlines, potentially confounding tokenizers; Shakespeare uses theatrical dialogue but resembles neither conventional code nor authentic dialogue; Brainfuck effectively requires the LLM to simulate execution while generating code.

So the really interesting question to me at this point is: how much can you change Python or another language that is mainstream before you see the kind of dropoff performance you see with the esolangs? I dunno.

The authors of that study you linked did a followup: https://esolang-metaprogramming.vercel.app

There, they let the LLM write Python code which then wrote the esocode, which at least shows the LLMs understand the assignment. But that doesn't really resolve the question we have.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: