
Security News
Critical Security Vulnerability in React Server Components
React disclosed a CVSS 10.0 RCE in React Server Components and is advising users to upgrade affected packages and frameworks to patched versions now.
@cirru/jiuzhang
Advanced tools
Status: only a prototype. not under development.
Toy project of mimicing Ancient Chinese programming. Based on Cirru project. Learning from The Nine Chapters on the Mathematical Art.
Previews http://jiuzhang.cirru.org/ .
Originals https://zh.m.wikisource.org/zh-hans/九章算術 .
昔在庖牺氏始画八卦,以通神明之德,以类万物之情,作九九之术,以合六爻之变。暨于黄帝神而化之,引而伸之,于是建历纪,恊律吕,用稽道原,然后两仪四象精微之气可得而效焉。记称“隶首作数”,其详未之闻也。按周公制礼而有九数,九数之流,则《九章》是矣。
yarn global add @cirru/jiuzhang
jiuzhang demo.cirru
# 或者 9c(nine chapters)
9c demo.cirru
注释:
按 "此乃例句, 毋究之"
数值:
三十三
字符串, 以 | 或 : 为首. 若含特殊字符, 裹之以引号:
|文
"|文, 文"
变量定义:
有 甲 三十三
今有 甲 三十三
又有 甲 三十三
示以数据:
答曰 |丙为 丙
数列:
今有 丁 $ 列 甲 乙 丙
答曰 丁
按 "\"得\"同\"答曰\""
得 丁
括号所裹, 为表达式. 结尾处以单个 $ 包裹亦可, 以双格缩进裹表达式亦可:
今有 丁 (列 甲 乙 丙)
按 同上
今有 丁 $ 列 甲 乙 丙
按 同上
今有 丁
列 甲 乙 丙
哈希表:
今有 戊 $ 置
|乾 一
|坤 二
|坎 三
|离 四
答曰 戊
函数:
术曰 问相加几何 (子 午)
得 $ 加 子 午
答曰 |其和 $ 问相加几何 甲 乙
条件语句, 以若开头, 以则合并, 以虚 实 为值:
今有 几何者 $ 列 虚 实
若 实
则
答曰 |非虚也
答曰 |然而
则
答曰 |虚也
空值, 记为空:
得 空
四则计算:
得 $ 并 甲 甲 甲
得 $ 乘 甲 甲 甲
得 $ 自乘 八十
得 (减 一百) (减 一百 二) (减 一百 二 三十)
得 (除 一百) (除 一百 二) (除 一百 二 三十)
js/Math.min 取运行平台之函数,
得 $ js/Math.min 两百 一百 四百
引取模块, clj/js->clj 取数据转化之法:
今有 文件服务 $ 引 fs
得 $ clj/js->clj $ .readdirSync 文件服务 |./
https://github.com/calcit-lang/respo-calcit-workflow
MIT
FAQs
九章(jiuzhang) dialect
We found that @cirru/jiuzhang demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
React disclosed a CVSS 10.0 RCE in React Server Components and is advising users to upgrade affected packages and frameworks to patched versions now.

Research
/Security News
We spotted a wave of auto-generated “elf-*” npm packages published every two minutes from new accounts, with simple malware variants and early takedowns underway.

Security News
TypeScript 6.0 will be the last JavaScript-based major release, as the project shifts to the TypeScript 7 native toolchain with major build speedups.