Live data from Hacker News

Show HN: Han – A Korean programming language written in Rust

github.com

21–30 of 131 posts

Re: Show HN: Han – A Korean programming language written in Rust

#21

A simple translation of keywords seems straightforward, I wonder why it's not standard. # def two_sum(arr: list[int], target: int) -> list[int]: 펀크 투섬(아래이: 목록[정수], 타개트: 정수) -> 목록[정수]: # n = len(arr) ㄴ = 길이(아래이) # start, end = 0, n - 1 시작, 끝 = 0, ㄴ - 1 # while start Code would be more compact, allowing things like more descriptive keywords e.g. AbstractVerifiedIdentityAccountFactory vs 실명인증계정생성, but we'd lose out on t…

funny examples, though.

Re: Show HN: Han – A Korean programming language written in Rust

#25

fun fact, you can easily write c in any language you want through the power of macros https://github.com/farant/rhubarb/blob/main/include/latina.h edit: oh, maybe you can’t do full unicode. that’s too bad!

Ha, neat trick. But macro substitution and a purpose-built language are very different — Han has a full pipeline (lexer → parser → AST → interpreter + LLVM codegen) designed around Korean from the ground up.

Error messages, REPL, LSP hover docs are all in Korean. You can't get that from #define 만약 if.

Re: Show HN: Han – A Korean programming language written in Rust

#26
post #25

fun fact, you can easily write c in any language you want through the power of macros https://github.com/farant/rhubarb/blob/main/include/latina.h edit: oh, maybe you can’t do full unicode. that’s too bad!

Ha, neat trick. But macro substitution and a purpose-built language are very different — Han has a full pipeline (lexer → parser → AST → interpreter + LLVM codegen) designed around Korean from the ground up. Error messages, REPL, LSP hover docs are all in Korean. You can't get that from #define 만약 if.

yeah, making a whole language is way more impressive!

anecdotally it is also interesting to use with ai because apparently it is "harder to be on autopilot" based on a huge pre-existing corpus of code when you write it in a different language. could activate different reasoning regions somehow.

(i just appreciate what can be trivially accomplished in c even if it's kind of janky after spending way too much time in the JS preprocessor mines...)

Re: Show HN: Han – A Korean programming language written in Rust

#29

A simple translation of keywords seems straightforward, I wonder why it's not standard. # def two_sum(arr: list[int], target: int) -> list[int]: 펀크 투섬(아래이: 목록[정수], 타개트: 정수) -> 목록[정수]: # n = len(arr) ㄴ = 길이(아래이) # start, end = 0, n - 1 시작, 끝 = 0, ㄴ - 1 # while start Code would be more compact, allowing things like more descriptive keywords e.g. AbstractVerifiedIdentityAccountFactory vs 실명인증계정생성, but we'd lose out on t…

It's been tried with Chinese Python back in the early 2000s: http://reganmian.net/blog/2008/11/21/chinese-python-translat...

It never really took off. I think because computers already require users to read and type Latin letters in lots of other situations, and it's not that hard to learn what a few keywords mean, so you might as well stick with the English keywords everyone else is using.

Post reply on HN