From 6bb83b8b4389509fa5d0f15b8da3946ff6e4e6e9 Mon Sep 17 00:00:00 2001 From: "peng.li24" <734991033@qq.com> Date: Fri, 4 Sep 2026 17:57:02 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20deepdive=20=E5=8F=98=E9=95=BF=E6=95=B0?= =?UTF-8?q?=E7=BB=84=20kindexpr=20=E8=AF=AD=E4=B9=89=E6=BE=84=E6=B8=85=20+?= =?UTF-8?q?=20oldhero=20README?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - deepdive kvspace/05:[]/[]dims kindexpr 语义更新——compact/stringkeymap 由 初始化括号 ([...]/{...}) 定,非声明侧。 - oldhero/README.md:归档 Go 时代 kvlang(前身 dxlang)定位与 frozen 状态说明。 --- oldhero/README.md | 25 +++++++++++++++++++ .../kvspace/05-key-system-and-array-access.kv | 4 +-- 2 files changed, 27 insertions(+), 2 deletions(-) create mode 100644 oldhero/README.md diff --git a/oldhero/README.md b/oldhero/README.md new file mode 100644 index 00000000..ce65dcfe --- /dev/null +++ b/oldhero/README.md @@ -0,0 +1,25 @@ +# oldhero — the Go-era kvlang + +This directory holds the **original Go implementation** of kvlang (back when it +was still called dxlang). It was the first working end-to-end system: parser, +lower, symbol, rwir, kvcpu, vthread, keytree, the rwir extension host, and an +early stdlib — the whole pipeline, in Go. + +``` +ast/ cmd/ keytree/ kvcpu/ layout/ logx/ lower/ +parser/ rwir/ rwirext/ stdlib/ symbol/ vthread/ +``` + +## Status: archived, frozen + +The live implementation has moved on and now lives at the repository root: + +- **layout** — a Rust crate (`layout/`) producing `libkvlanglayout.so` + `kvlanglayout` +- **runtime** — C (`runtime/`) producing `libkvlang_runtime.so`, driven by the + Rust binary `kvlang` + +This Go version is kept **only as a memorial to the old hero** that carried the +project through its first era. It is **not maintained and will not be updated**. +For anything current — language behavior, the KV-tree model, the two-stage +layout/runtime split — refer to the root implementation and `stdlib/kvlang`, not +this directory. diff --git a/stdlib/kvlang/deepdive/kvspace/05-key-system-and-array-access.kv b/stdlib/kvlang/deepdive/kvspace/05-key-system-and-array-access.kv index f781a502..5a346e1f 100644 --- a/stdlib/kvlang/deepdive/kvspace/05-key-system-and-array-access.kv +++ b/stdlib/kvlang/deepdive/kvspace/05-key-system-and-array-access.kv @@ -55,8 +55,8 @@ kvspace 路径系统有 `/`(层级目录)与 `·`(成员目录)两个索 kindexp ::= kind # 标量 | '*' kindexp # 指针/软链接(body = 目标 key 路径) | '@' kindexp # 扩展存储句柄(body = 位置信息,data 在扩展存储) - | '[' ']' kindexp # 变长数组(字面量初始化→compact;裸声明→散 key) - | '[' dims ']' kindexp # 定长/多维数组(一个 XValue,连续 body) + | '[' ']' kindexp # 变长一维数组类型;compact/stringkeymap 由初始化括号([...]/{...})定 + | '[' dims ']' kindexp # 定长/多维数组(compact 形态,单 XValue 连续 body) dims ::= INT (',' INT)* kind ::= uint8 | int8 | int16 | uint16 | int32 | uint32 | int64 | uint64 | float32 | float64 | bool | char/utf32 | char/utf8 | char/ascii | time | duration