github.com/codeworm96/moonbi… 试着精简了一下 opensource moonbit, 去掉了没有用的遗留代码(但是看项目这个状态不打算继续整理了
我大概知道这是怎么造出来的了,就是把 dune 预处理完的代码开源出来,Menhir 和 PPX 都代码生成过了,不太能读但是拿来做实验还可以
Replying to @object_nullll
这个明显是为了开源从内部切出来的镜像,github.com/moonbitlang/moonb… OCamllex 生成的 lexer 还是暴露了原文件是有好好组织的
Based on the error message on ICE, the native backend is Clam -> C, then use your favorite C compiler.
IRs in #MoonBit compiler (open-source ver.): AST -> typedtree -> Core -> Clam -> wasm-gc
IRs in #MoonBit compiler (open-source ver.): AST -> typedtree -> Core -> Clam -> wasm-gc
这也意味着基本算是 readonly 不能直接 PR 而是要把 patch 发过去(虽然也不是太好读...
Replying to @object_nullll
这个明显是为了开源从内部切出来的镜像,github.com/moonbitlang/moonb… OCamllex 生成的 lexer 还是暴露了原文件是有好好组织的
pkg.go.dev/index/suffixarray Go 语言标准库里竟然有后缀数组,还是 O(n) 的 SA-IS, 真不愧是算法题大厂的语言














