EN
Back to the archive

The archive · Product Ideas · Product decision · 2026

Han: Korean becomes a real programming syntax, with a museum website as proof

A Rust-built language makes Hangul the syntax of real code — keywords, grammar, built-ins and errors — and rebuilds a national museum site to prove it scales.

Han (한) · xodn348

The ideaTreat Korean as the language of code itself: Hangul keywords, grammar, built-ins and errors compiled from Rust, proven by a museum rebuilt as executable .hgl files.incremental

What it had to solve

About 80 million people speak Korean, yet essentially no programming language uses the script as syntax. The creator behind GitHub's xodn348 built Han to ask what code looks like in Hangul — a writing system engineered for clarity in 1443 — and to argue that more Korean code online would teach AI tokenizers to represent the language better.

How it works

Korean is spoken by about 80 million people, yet essentially no programming language uses its script as syntax. The developer behind GitHub's xodn348 built Han (한) to ask what code looks like when written in Hangul — a writing system invented in 1443 under King Sejong, whose letters encode the shapes of mouth and tongue. The project states three goals: treat Hangul as a script designed for clarity rather than inherited from history, add real Korean code to the corpus AI tokenizers learn from, and test what happens when a minority language becomes a compiler's grammar.

Han is a statically typed, compiled language whose keywords, type names, 50+ built-in functions, standard-library methods and error messages are all Korean: functions are 함수, an if-conditional reads 만약 조건 이면, and Hangul identifiers are first class. The Rust toolchain compiles through LLVM to native binaries and also ships an interpreter, a REPL, an LSP and the crates.io package han-lang. Han's rationale is practical: English-dominant BPE tokenizers split Korean words into byte-level fragments while 'function' stays one token, so more Korean code online would improve future tokenizers.

To prove the idea scales beyond hello world, the project rebuilt the National Museum of Korea as 'Museum as Code': 56 catalogue entries and 10 hero pages are real .hgl source files, and every code block on the site runs unchanged in the Han interpreter. The catalogue is the codebase — the language is literally on display — which answers the obvious objection that a Korean-keyword language only works for toy examples.

Han launched as a Show HN on 14 March 2026 and drew 208 points with 116 comments; the repository showed 184 stars when the material was collected. Whether the language finds users beyond its creator is still open, but the idea stands on its own: a minority language made into real, usable, running syntax.

Why it lands

  • Hangul was designed rather than inherited: letters encode mouth and tongue shapes, so Han asks what code looks like in a script built for clarity instead of one that evolved.
  • Korean is treated as first-class grammar, not translated keywords: word order, conditionals and logic follow the language, so code reads as Korean sentences.
  • The tokenizer argument gives the project a purpose beyond novelty: English-dominant BPE tokenizers fragment Korean words, and more Korean source code would improve future AI tokenizers.
  • The Museum as Code showcase makes the claim testable: 56 catalogue entries and 10 hero pages as executable .hgl files prove Korean-keyword syntax runs a full content site.
  • The tooling is complete — LLVM backend, interpreter, REPL, LSP, editor extension and package registry — so Han is a usable language, not a syntax demo.

What it did

The Show HN of 14 March 2026 drew 208 points and 116 comments, and the repository showed 184 stars when collected. The museum demo changed the question from 'does the language exist?' to 'does it scale?': a full content site whose catalogue is the codebase, written in a Korean-keyword language a reader can run.

Their siteMuseum as Code: national museum site in Han

What you can take

A radical idea aimed at a minority audience needs proof where they can see themselves: not hello world but a national museum written in Korean code, so the language itself becomes the exhibit.

Since then

The Show HN of 14 March 2026 drew 208 points and 116 comments, with discussion focused on whether a non-English programming language can be practical; the repository showed 184 stars when collected in September 2026. Han remains open source with a playground, a formal spec, a language guide and an LSP, and the Museum as Code site — the National Museum of Korea rebuilt in .hgl files — stands as the project's public proof that Korean-keyword syntax can drive a real content site rather than a hello-world example.

Sources

spotted an error? The archive wants to know.

Your turn

You just read one. Describe the brief you are staring at, and see who has been given the same problem.

Free account · 3 free questions · no card

Related cases