HackerReposA FIELD GUIDE TO OPEN SOURCE
ProSponsor the shelf♧ 0
← Back to top all-time
wenyan-lang
wenyan
TypeScript2019–2026
wenyan-lang / wenyan

wenyan

文言文編程語言 A programming language for the ancient Chinese.

16Distinct people
16Mentions
0Explicit recommenders
20.3KGitHub stars
REPOSITORY AT A GLANCE

What to know before exploring

What it is

文言文編程語言 A programming language for the ancient Chinese.

GitHub

Where it is used

No documented product use was verified in the last source check.

What people are saying

No recommendation phrase was found in the indexed comments.

No classified warning is attached to this page. Read the discussions before treating silence as approval.

Also in these discussions

No other repository is repeatedly linked in the same discussions.

This week on Hacker News

Nov 7–Nov 14 UTC · Direct repository links and separately labeled related project stories. Indexed through 11/14/2026, 5:04:57 PM UTC.

No direct repository links were found in the indexed HN discussions over the past seven days. Older discussions are available below.

Mentions over time

HN mentions by year16 dated mentions

Observed mentions: 2019-12-17 21:22:35 UTC to 2026-03-15 03:03:35 UTC.

0123452019-01-01 00:00:00 UTC to 2020-01-01 00:00:00 UTC (exclusive): 5 mentions; 4 submissions, 1 comments20192020-01-01 00:00:00 UTC to 2021-01-01 00:00:00 UTC (exclusive): 5 mentions; 1 submissions, 4 comments2021-01-01 00:00:00 UTC to 2022-01-01 00:00:00 UTC (exclusive): 3 mentions; 0 submissions, 3 comments2022-01-01 00:00:00 UTC to 2023-01-01 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments20222023-01-01 00:00:00 UTC to 2024-01-01 00:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 comments2024-01-01 00:00:00 UTC to 2025-01-01 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2025-01-01 00:00:00 UTC to 2026-01-01 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2026-01-01 00:00:00 UTC to 2027-01-01 00:00:00 UTC (exclusive): 2 mentions; 0 submissions, 2 comments. Incomplete calendar period.2026*

* An incomplete calendar period is marked with an outlined bar. Its count is not directly comparable with a full period.

Counts come from the repository’s dated source evidence. Index cutoff: 2026-11-02 08:16:59 UTC.

View mention counts and date ranges
UTC ranges include their start and exclude their end. Select a period to filter the source evidence.
PeriodStart (UTC)End (exclusive, UTC)MentionsSubmissionsComments
20192019-01-01 00:00:00 UTC2020-01-01 00:00:00 UTC541
20202020-01-01 00:00:00 UTC2021-01-01 00:00:00 UTC514
20212021-01-01 00:00:00 UTC2022-01-01 00:00:00 UTC303
20222022-01-01 00:00:00 UTC2023-01-01 00:00:00 UTC000
20232023-01-01 00:00:00 UTC2024-01-01 00:00:00 UTC101
20242024-01-01 00:00:00 UTC2025-01-01 00:00:00 UTC000
20252025-01-01 00:00:00 UTC2026-01-01 00:00:00 UTC000
2026 (partial)2026-01-01 00:00:00 UTC2027-01-01 00:00:00 UTC202

What Hacker News says

16 sources
I think another part of it is culture. Outside of Western tech circles there's far less a culture (it feels) to invent new languages. To my knowledge Ruby's Matz is the only notable exception, and he's highly unusual as a Japanese. Then, using non-ascii-friendly character set is an even greater challenge. Non-ascii encodings are harder to program in due to the need to switch in and out of input methods. That said, some languages like Arabic and Japanese (and possibly Korean and Hindi) lend naturally to VSO token ordering, which maps directly to LISP syntax, so it's unfortunate that there isn't a lot of interest in this. It would be lots of fun. Maybe agents will make this possible! Here are some interesting examples. - https://github.com/nasser/--- (Arabic) - https://honoka.nukenin.jp/Introduction/Loop.html (Japanese) - https:
Read the rest
//github.com/wenyan-lang/wenyan (Chinese, which is SVO like English)
In Show HN: Han – A Korean programming language written in Rust
There's actually a Japanese programming language (created around 2005) that is highly readable and natural - Nadesiko. Here's the first tutorial in Japanese, with executable snippets: https://nadesi.com/v3/doc/index.php?%E3%83%81%E3%83%A5%E3%83... 「こんにちは」と表示 Display 「Konnichiwa」 5に6を掛けて5を足して7で割って表示。 Multiply 5 by 6, then add 5, then divide by 7, then display it. Sample program: 「身長は何センチですか」と尋ねる。 Ask "What is your height in cm?" 身長Mはそれ÷100 heightM is that divided by 100. 標準体重は22×身長M×身長M optimalWeight is 22 x heightM x heightM. 「標準体重は、{標準体重}kgです。」と表示。 Display "Your optimal weight is {optimalWeight} kg." Since it's basically natural language, it's a really nice language for introducing Japanese speakers to programming! ==== There's also this language, Wenyan-lang, that imitates classical Chinese: https://github.com
Read the rest
/LingDong-/wenyan-lang Sample: Wenyan: 吾有一數。曰三。名之曰「甲」。 We have a number. It is 3. Its name is n. 為是「甲」遍。 Done n times: 吾有一言。曰「「問天地好在。」」。書之。 We have a phrase. It is "問天地好在". Write it. 云云。 End. Equivalent JavaScript: var n = 3; for (var i = 0; i < n; i++) { console.log("問天地好在。"); }
In Haku: A toy functional programming language based on literary Japanese
There's a fun example in the GitHub repo for calculating the square root of a number based off of a real algorithm found in a real ancient Chinese text (九章算術). https://github.com/wenyan-lang/wenyan/blob/master/examples/z... I don't have the time to translate at the moment but I'll just leave the two here for others to see just how different they read (and for those who can read Chinese, what similarities they have). The Wenyan language: 吾有一術。名之曰「增乘開平方」。欲行是術。必先得一數。曰「實」。乃行是術曰。 注曰。『增乘開平方法,以商數乘下法遞增求之。』。 吾有四數。名之曰「果」曰「商」曰「餘」曰「廉」。有數一。名之曰「法」。 恆為是。施「取底除」於「實」於「法」。若其之『商』小於百者乃止也。 乘「法」以百。昔之「法」者。今其是矣云云。 恆為是。若「法」不大於零者乃止也。 乘「果」以十。昔之「果」者。今其是矣。 加「廉」以「商」。乘其以十。昔之「廉」者。今其是矣。 施「取底除」於「實」於「法」。名之曰「甲」。 昔之「實」者。今「甲」之『商』是矣。 昔之「餘」者。今「甲」之『餘』是矣。 昔之「商」者。今零是矣。 恆為是。加「廉」以「商」。乘其以「商」。若其不小於「實」者乃止也。 加「商」以一。昔之「商」者。今其是矣云云。 加「廉」以「商」。乘其以「商」。若其大於「實」者。 減「商」
Read the rest
以一。昔之「商」者。今其是矣云云。 加「廉」以「商」。昔之「廉」者。今其是矣。 加「果」以「商」。昔之「果」者。今其是矣。 乘「商」以「廉」。減「實」以其。乘其以「法」。加其以「餘」。昔之「實」者。今其是矣。 施「取底除」於「法」於百。昔之「法」者。今其之『商』是矣云云。 注曰。『商第一位。上商得數以乘下法為乘方。命上商除實。上商得數以乘下法入乘方。一退為廉,下法再退。』。 注曰。『商第二位。商得數以乘下法為隅。命上商除實訖。以上商乘下法入隅,皆名曰廉。一退,下法再退,以求第三位商。』。 注曰。『商第三位。用法如第二位求之。』。 乃得 「果」。 是謂「增乘開平方」之術也。 The original Chinese: 開方術曰:置積為實。借一算步之,超一等。議所得,以一乘所借一算為法,而以除。除已,倍法為定法。其復除。折法而下。復置借算步之如初,以復議一乘之,所得副,以加定法,以除。以所得副從定法。復除折下如前。若開之不盡者為不可開,當以面命之。若實有分者,通分內子為定實。乃開之,訖,開其母報除。若母不可開者,又以母乘定實,乃開之,訖,令如母而一。 Note the original Chinese is based off the rod calculus. https://en.m.wikipedia.org/wiki/Rod_calculus
In Wenyan-lang: Classical Chinese Programming Language
As others have noted, the choice of both syntax (extremely elaborate, to the point of reeking of esoteric languages like Shakespeare) and semantics (scalar imperative language, JavaScript) seem to be a poor match for Classical Chinese, known for the brevity and tacitness of its texts. I always thought that if for some reason one wanted to map an existing programming language into Classical Chinese (instead of coming up with something semantically closer resembling the latter), one could do worse than start with the likes of APL. Consider the Fibonacci example: https://github.com/wenyan-lang/wenyan/blob/master/examples/f... Is this really how you would like to use Classical Chinese to convey the idea of a Fibonacci number? Indeed, this form maximises the number of words one can use in a single definition; is there anything else for which i
Read the rest
t is good? Here's an equivalent program in APL (also naively recursive, that's not necessary how I'd implement Fibonacci sequence): {⍵<2:⍵⋄+/∇¨⍵-1 2} If the argument is below 2, that's the answer; otherwise, compute sum of the function applied, in turn, to the argument less 1 and 2.
In Wenyan-lang: Classical Chinese Programming Language
The Mandelbrot example, as well as the Fibonacci one, I find quite beautiful. https://github.com/LingDong-/wenyan-lang/blob/master/example... I think ancient Chinese people would be proud and awed by seeing how language becomes a living thing, performing logical operations. Maybe because my only attempts at studying Chinese was the Tao Te Ching, the programs written in 文言 feel like they're expressing universal truths.
In 文言 – A programming language for the ancient Chinese

Showing the 15 most recent of 16 sources. Enable JavaScript to search and browse every indexed mention.

MAKE YOURSELF AT HOME

A few shortcuts

/
Search the collection
?
Open this guide
Esc
Close dialogs and navigation

Your saved repositories and interests stay in this browser.