Yuku – 一款快速、符合规范的用Zig编写的JavaScript解析器

2作者: arshadyaseen7 天前原帖
我在过去的六个月里一直在开发 Yuku,这是一个用 Zig 编写的 JavaScript 解析器,能够生成与 Oxc 相同的抽象语法树(AST)。<p>在性能方面,作为一个原生 Zig 库,它与 Oxc 具有竞争力,并且在通过 npm 在 Node.js 上使用时,比其他替代品快 3 到 5 倍,包括 Oxc 的 Node 绑定。<p>它完全符合规范,采用 MIT 许可证,旨在将现代 JavaScript 工具引入 Zig 生态系统。<p>代码库: https://github.com/yuku-toolchain/yuku<br>文档: https://yuku.fyi/
查看原文
I&#x27;ve been working on Yuku for the past 6 months, a JavaScript parser written in Zig that produces the same AST as Oxc.<p>Performance-wise, it&#x27;s competitive with Oxc as a native Zig library and 3–5x faster than alternatives when used via npm on Node.js, including Oxc&#x27;s Node bindings.<p>It&#x27;s fully spec-compliant, MIT-licensed, and designed to bring modern JS tooling into the Zig ecosystem.<p>Repo: https:&#x2F;&#x2F;github.com&#x2F;yuku-toolchain&#x2F;yuku Docs: https:&#x2F;&#x2F;yuku.fyi&#x2F;