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

2作者: arshadyaseen4 个月前
过去 6 个月,我一直在开发 Yuku,这是一个用 Zig 编写的 JavaScript 解析器,它生成的 AST 与 Oxc 相同。 在性能方面,作为原生 Zig 库,它与 Oxc 相当,而在 Node.js 上通过 npm 使用时,它比其他替代方案快 3-5 倍,包括 Oxc 的 Node 绑定。 它完全符合规范,采用 MIT 许可证,旨在将现代 JS 工具引入 Zig 生态系统。 代码库:https://github.com/yuku-toolchain/yuku 文档: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;