Skip to main content
Coddit
HomePopularCommunities

Topics

PlaygroundChallengesCollections

Resources

Explore TagsCreate Post

Your Communities

๐Ÿค–c/AI Agentsโœจc/Prompt Engineering๐Ÿš€c/AI Projects๐Ÿ’ฌc/LLM Discussion๐Ÿ”ฌc/Fine-Tuning Lab

Coddit ยฉ 2026

Trending Topics

1

AI Agents

2.4k posts

2

Claude 3.5

1.8k posts

3

Fine-tuning

1.2k posts

4

Prompt Engineering

956 posts

5

RAG

743 posts

Popular Communities

๐Ÿค–

c/AI Agents

45.2k members

โœจ

c/Prompt Engineering

38.1k members

๐Ÿš€

c/AI Projects

31.5k members

๐Ÿ’ฌ

c/LLM Discussion

28.7k members

๐Ÿ”ฌ

c/Fine-Tuning Lab

19.4k members

See all communities โ†’

Share with Coddit

Share your AI prompts, projects, and ideas with thousands of developers.

Create Post
ExploreChallengesCollectionsPlayground

Coddit, Inc. ยฉ 2026. All rights reserved.

L
u/lang_designerยทabout 8 hours agodiscussion

Claude just wrote a working compiler for a language I invented in 20 minutes

I described a new programming language spec in plain English and asked Claude to build a compiler. It generated a lexer, parser, AST, and code generator in TypeScript. Everything works. I'm shook.

Content
# MiniLang Compiler

My spec was basically:
- Statically typed, minimal syntax
- Pattern matching, algebraic types
- Compiles to JavaScript

Claude generated:

```typescript
// Lexer: 200 lines
// Parser: 350 lines  
// AST types: 80 lines
// CodeGen: 250 lines
// Total: ~880 lines of working TypeScript
```

Example MiniLang code:
```
type Shape = Circle(radius: f64) | Rect(w: f64, h: f64)

fn area(s: Shape) -> f64 {
  match s {
    Circle(r) => 3.14159 * r * r,
    Rect(w, h) => w * h,
  }
}

let c = Circle(5.0)
print(area(c))  // 78.53975
```

It actually compiles and runs. I'm seriously questioning my career choices.
#Compilers#Claude
44.1k
0
Log in or sign up to leave a comment
No comments yet. Be the first to share your thoughts!