한 Han: Korean Programming Language in Rust
Key Innovation: A statically-typed, compiled programming language where every keyword is written in Korean (Hangul). It compiles to native binaries through LLVM IR.
Three Goals
- Hangul is scientifically designed - Each character encodes the exact shape of the mouth and tongue used to pronounce it. What does code look like when written in a script that was designed rather than evolved?
- Korean Code for the AI Age - LLMs are trained on English-dominant data. BPE tokenizers treat Korean as rare. More Korean code = better tokenizers for Korean.
- Minority Language as First-Class Syntax - What happens when a minority language becomes the grammar of a compiler?
Language Features
- Korean keywords — 함수 (function), 만약 (if), 반복 (loop), 변수 (variable)
- Hangul identifiers - name your variables in Korean
- Compiled language - generates LLVM IR → clang → native binary
- Interpreter mode - run instantly without clang
- REPL, LSP server, Static typing
Example Code
함수 계산(식: 문자열) -> 정수 {
변수 부분 = 식.분리(" ")
변수 왼쪽 = 정수변환(부분[0])
변수 연산자 = 부분[1]
변수 오른쪽 = 정수변환(부분[2])
맞춤 연산자 {
"+" => { 반환 왼쪽 + 오른쪽 }
"-" => { 반환 왼쪽 - 오른쪽 }
"*" => { 반환 왼쪽 * 오른쪽 }
"/" => { 반환 왼쪽 / 오른쪽 }
}
}
출력(계산("10 + 20")) // 30
출력(계산("6 * 7")) // 42
Built-in Features
JSON HTTP Regex File I/O Date/Time HashMap
Why It Matters
This is a fascinating experiment in programming language design - exploring what code looks like when written in a script designed for clarity rather than inherited from history. Also addresses important AI/tokenization questions for non-English languages.
Discovered: 2026-03-18 | Category: Programming Languages | Source: Hacker News Show