docs(wiki): 对象写法改用 virtual/novirtual,@t.Object 默认不写只作说明
This commit is contained in:
1 parent
8ea2112298
commit
2dd96793e1
9 files changed
+57
-86
No files matched your search
+3
-3
@@ -62,7 +62,7 @@
|
||||
| `includes/zlib/` | ~1,900 | 完整 deflate/inflate/huffman/checksum |
|
||||
| `includes/ast/` | 4,176 | **自研 Python 解析器(自举组件)**(历史数据,2026-06-30) |
|
||||
| `includes/llvmlite/` | ~1,500 | **自研 LLVM IR 生成库(自举组件)**(历史数据,2026-06-30) |
|
||||
| `includes/linkedlist.vp` | ~400 | 泛型链表(@t.NoVTable + PEP 695) |
|
||||
| `includes/linkedlist.vp` | ~400 | 泛型链表(novirtual + PEP 695) |
|
||||
| `includes/vipermath.vp` | 450 | 数学库 |
|
||||
| ...(30+ 文件) | ... | mpool/mbuddy/string/stdio/json/w32 等 |
|
||||
| **includes 总计** | **~12,000** | |
|
||||
@@ -130,7 +130,7 @@
|
||||
|
||||
| 库 | 自举中的作用 |
|
||||
|----|-------------|
|
||||
| `linkedlist.vp` | AST 节点树、符号表链、IR 指令链的容器(`@t.NoVTable` + PEP 695 递归泛型继承) |
|
||||
| `linkedlist.vp` | AST 节点树、符号表链、IR 指令链的容器(`novirtual` + PEP 695 递归泛型继承) |
|
||||
| `mpool.vp` / `mbuddy.vp` | 编译器内存管理(替代 Python GC) |
|
||||
| `string.vp` / `viperlib.vp` | 字符串处理 + snprintf(替代 Python 字符串方法) |
|
||||
| `w32/` | FFI 声明,自举后编译器调用 llc/clang/linker 的基础 |
|
||||
@@ -225,7 +225,7 @@
|
||||
|
||||
3. **语言成熟度证明**:能写自己的编译器是系统级语言的"成人礼"。C、C++、Rust、Go、Zig 全都走过这条路。
|
||||
|
||||
4. **dogfooding 闭环**:自举后每次改编译器都用编译器自己编译自己,持续暴露 bug 和性能瓶颈,形成正反馈。`includes/ast` 和 `includes/llvmlite` 的开发过程已经产出了大量深层 bug 修复(REnum 变体名冲突、跨模块继承字段展平、NoVTable OOP 方法继承等)。
|
||||
4. **dogfooding 闭环**:自举后每次改编译器都用编译器自己编译自己,持续暴露 bug 和性能瓶颈,形成正反馈。`includes/ast` 和 `includes/llvmlite` 的开发过程已经产出了大量深层 bug 修复(REnum 变体名冲突、跨模块继承字段展平、novirtual OOP 方法继承等)。
|
||||
|
||||
---
|
||||
|
||||
|
||||
Reference in new issue
Block a user