I built a programming language using Claude Code
41–50 of 194 posts
Re: I built a programming language using Claude Code
#42Who the hell is going to use it then? You certainly won't, because you're dependent on AI.
Re: I built a programming language using Claude Code
#43Using LLMs to invent new programming languages is a mystery to me. Who or what is going to use this? Presumably not the author.
Re: I built a programming language using Claude Code
#44> While working on Cutlet, though, I allowed Claude to generate every single line of code. I didn’t even read any of the code. Instead, I built guardrails to make sure it worked correctly (more on that later). Impressive. As a practical matter, one wonders what th point would be in creating a new programming languages if the programmer no longer has to write or read code. Programming languages are after all the inter…
Re: I built a programming language using Claude Code
#45 fn read_float_literal(&mut self) -> &'a str {
let start = self.pos;
while let Some(ch) = self.peek_char() {
if ch.is_ascii_alphanumeric() || ch == '.' || ch == '+' || ch == '-' {
self.advance_char();
} else {
break;
}
}
&self.source[start..self.pos]
}
Admittedly, I do have a very idiosyncratic definition of floating-point literal for my language (I have a variety of syntaxes for NaNs with payloads), but... that is not a usable definition of float literal.At the end of the day, I threw out all of the code the AI generated and wrote it myself, because the AI struggled to produce code that was functional to spec, much less code that would allow me to easily extend it to other kinds of future operators that I knew I would need in the future.
Re: I built a programming language using Claude Code
#46Wait. You built a new language, that there's thus no training data for. Who the hell is going to use it then? You certainly won't, because you're dependent on AI.
Re: I built a programming language using Claude Code
#47Re: I built a programming language using Claude Code
#48Wait. You built a new language, that there's thus no training data for. Who the hell is going to use it then? You certainly won't, because you're dependent on AI.
Re: I built a programming language using Claude Code
#49The AI age is calling for a language that is append-only, so we can write in a literate programming style and mix prompts with AI output, in a linear way.
Re: I built a programming language using Claude Code
#50Earlier quoted context omitted.
The constraints enforced in the language still matter. A language which offers certain correctness guarantees may still be the most efficient way to build a particular piece of software even when it's a machine writing the code. There may actually be more value in creating specialized languages now, not less. Most new languages historically go nowhere because convincing human programmers to spend the time it would ta…
> but every AI coding bot will learn your new language as a matter of course after its next update includes the contents of your website. That's assuming that your new, very unknown language gets slurped up in the next training session which seems unlikely. Couldn't you use RAG or have an LLM read the docs for your language?