HNHacker News
TopNewBestAskShowJobs

xodn348

140 karma · joined October 17, 2025

submissionscomments
xodn348··on Show HN: Han – A Korean programming language written in Rust
That is a deep knowledge that even Korean-natives would not know. I will add this site as a reference to Github. I am glad that I have you as a supporter!
xodn348··on Show HN: Han – A Korean programming language written in Rust
Fair point that [ ] can blend in.

For Korean readers the character systems look quite different, but I can see how it's hard to parse visually without familiarity.

As you said, syntax highlighting helps a lot — there's a colored screenshot at the top of the README showing how it looks in practice.

xodn348··on Show HN: Han – A Korean programming language written in Rust
만나서 반가워요!

What you talked is mostly right and I did not know about typing in Korean, the left-hand side and right-hand side. Btw, Consonant(Jaeum) and vowel(Moeum).

In experience-wise, what you had would be precise.

xodn348··on Show HN: Han – A Korean programming language written in Rust
Really interesting approach — attacking token efficiency at the encoding level is more fundamental than what I did.

Even without retraining BPE from scratch, starting with YUTF-8 and measuring how existing tokenizers handle it would already be a worthwhile experiment.

Hope you find the time to build it, good luck!

xodn348··on Show HN: Han – A Korean programming language written in Rust
I feel sorry for you, mate. Made in 2 minutes ago account.
xodn348··on Show HN: Han – A Korean programming language written in Rust
Thanks! One thing that motivated me was curiosity about prompt efficiency in the AI era. Hangul is beautifully dense — a single syllable block packs initial consonant + vowel + final consonant into one character. I wondered if Korean-keyword code might produce shorter prompts for LLMs.

I actually tested this with GPT-4o's tokenizer, and the result was the opposite — Korean keywords average 2-3 tokens vs 1 for English. A fibonacci program in Han takes 88 tokens vs 54 in Python.

The reason comes down to how LLM tokenizers work. They use BPE (Byte Pair Encoding), which starts with raw bytes and repeatedly merges the most frequent pairs into single tokens. Since training data is predominantly English, words like `function` and `return` appear billions of times and get merged into single tokens.

Korean text appears far less frequently, so the tokenizer doesn't learn to merge Hangul syllables — it falls back to splitting each character into 2-3 byte-level tokens instead.

It's a tokenizer training bias, not a property of Hangul itself. If a tokenizer were trained on a Korean-heavy corpus, `함수` could absolutely become a single token too.

So no efficiency benefit today. But it was a fun exploration, and Korean speakers can read the code like natural language. It could also be a fun way for people learning Korean to practice reading Hangul in a different context — every keyword is a real Korean word with meaning.

xodn348··on Show HN: Readhn – AI-Native Hacker News MCP Server (Discover, Trust, Understand)
Haha that should be true but we human still need to resource to process things. AI might help me to do it. Thanks for the comment, btw.
xodn348··on Show HN: Readhn – AI-Native Hacker News MCP Server (Discover, Trust, Understand)
Thank you for your positive feedback. I would delve into more on semantic search soon. What you talked seems relying more on relationships between people. I would love to find out the solution. Thanks!
xodn348··on Show HN: Readhn – AI-Native Hacker News MCP Server (Discover, Trust, Understand)
Thank you for your feedback. I agree with your opinion about ai agents and all the information they cast is not really credible. As a result, I choose to start with the expert or reliable people in the community to understand it better.
xodn348··on Create value for others and don’t worry about the returns
It's better to be a happy optimist than a smart pessimist.
xodn348··on After outages, Amazon to make senior engineers sign off on AI-assisted changes
very expected outcomes.
xodn348··on Ask HN: I built an AI-native codebase framework–could you evaluate it?
This is the purpose of testing. Wouldn't be a reason to upload this post?
← PreviousPage 2 of 2