# LLM "Compiler"

**URL:** <https://discourse.julialang.org/t/llm-compiler/122850>\
**Category:** Offtopic\
**Created:** [November 20, 2024, 2:35pm UTC](https://discourse.julialang.org/t/llm-compiler/122850 "2024-11-20T14:35:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mrufsvold](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mrufsvold/32/31600_2.png) [@mrufsvold](https://discourse.julialang.org/u/mrufsvold)\
**Post date:** [November 20, 2024, 2:35pm UTC](https://discourse.julialang.org/t/llm-compiler/122850/1 "2024-11-20T14:35:01Z")

</div>

I thought this was a fun experiment!

> **[Mirror: An LLM-powered programming-by-example programming language](https://austinhenley.com/blog/mirrorlang.html)**
>
> What if we could only code by using examples? Can we integrate AI into traditional programming languages?

While it’s already quite absurd, I feel like the logical extreme here is using the Julia compiler to provide Julia source code → LLVM IR examples and then replacing the entire compiler with whatever gets generated 😉

---

<div class="post-metadata">

**Author:** ![wsmoses](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/wsmoses/32/26497_2.png) [@wsmoses](https://discourse.julialang.org/u/wsmoses)\
**Post date:** [November 20, 2024, 3:05pm UTC](https://discourse.julialang.org/t/llm-compiler/122850/2 "2024-11-20T15:05:15Z")

</div>

> I feel like the logical extreme here is using the Julia compiler to provide Julia source code → LLVM IR examples and then replacing the entire compiler with whatever gets generated 😉

Carl Guo and I actually tried this a few years ago for C code with a decent amount of success ([https://c.wsmoses.com/papers/hpectransformers.pdf](https://c.wsmoses.com/papers/hpectransformers.pdf))
