📡InfoQ5,955infoq.cn
TypeScript 终于能编译成原生程序了?启动快 12 倍,运行却慢 7.5 倍
首次上榜 2026-10-08
摘要
Vercel Labs 发布 Apache 2.0 许可的实验性编译器 scriptc,能把普通 TypeScript 编译成不含 Node、V8 或任何 JavaScript 引擎的原生可执行文件,仓库已获得约 4900 Star。它的 CLI 启动中位数为 1.78 毫秒,可执行文件启动比 Node 24 快 12 倍、内存低 72 倍,但社区实测运行速度约慢 7.5 倍,Hono 启用 --dynamic 后 62% 代码落入内嵌 QuickJS,吞吐量只有每秒 1.84 万请求。
近 7 天热度
10-0810-09
相关推荐
strands-agents/harness-sdk
Build an agent harness and control it end-to-end. Open-source SDK for production AI agents in Python & TypeScript - any model, any cloud.
Effect-TS/effect
Build production-ready applications in TypeScript
vercel-labs/scriptc
TypeScript-to-Native Compiler