한 Han: Korean Programming Language in Rust

⭐⭐⭐⭐⭐ 5 Stars Source: GitHub Hacker News: 207 points
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

  1. 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?
  2. 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.
  3. Minority Language as First-Class Syntax - What happens when a minority language becomes the grammar of a compiler?

Language Features

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