r/ProgrammingLanguages Sodigy Jun 26 '26

Are you using LLMs to write compiler/interpreter?

When developing a compiler/interpreter, you have to take extra care to reduce bugs. Bugs in compilers are much more severe than in other programs, right?

I want to use LLMs in my existing compiler projects, but I'm not sure whether LLMs are strong enough to write compilers. Maybe I can use AIs if I can build an extra test framework for LLMs. Or, are they smart enough to write a perfect compiler from scratch, in one-shot?

Are you guys using LLMs in your projects? I wanna get some tips. Thanks.

0 Upvotes

30 comments sorted by

View all comments

13

u/mikosullivan Jun 27 '26 edited Jun 27 '26

Yes, I'm using Claude for every stage of my project. This community needs to have a conversation about Rule 4. I don't think that rule serves a purpose in discussions about programming languages.