Hacker News new | ask | show | jobs
by dakial1 95 days ago
Somewhat related but I always wondered if I asked a LLM to create a new language with full focus on LLM coding efficiency, ignoring the need for humans to read it, what would it come with? Binary?

...and I obviously asked Gemini about it and it replied:

"A language optimized exclusively for Large Language Model (LLM) efficiency would prioritize Token Density, Context Window Management, and Architectural Alignment. It would not be binary, as standard LLM architectures (Transformers) process discrete tokens from a predefined vocabulary, not raw bits."

Example of it:

  Feature        Human-Readable (Python/C++)       LLM-Native (Hypothetical)
  --------------------------------------------------------------------------
  Logic          if (x > 10) { return true; }      ¿x10†
  Memory         int\* ptr = malloc(sizeof(int));  §m4
  Tokens Used    ~10-15                            2-3
1 comments

The issue with these LLM-targeting DSLs is that you have to waste a bunch of your context window explaining the grammar and semantics to the LLM, whereas they already speak existing programming languages because they've seen so much existing code. This usually negates the benefits of the DSL.