Perry 使用 SWC 和 LLVM 将 TypeScript 直接编译为可执行文件。
Perry Compiles TypeScript directly to executables using SWC and LLVM

原始链接: https://www.perryts.com/

v0.5.306 — 代际垃圾回收 (generational GC) + 默认使用懒加载 JSON tape,在大多数基准测试中快于 Node 和 Bun。 Perry 可将 TypeScript 编译为适用于 macOS、iPadOS、iOS、Android、Linux、Windows、watchOS、tvOS、WebAssembly 和 Web 的原生 GUI 和 CLI 应用。无需运行时,无需 Electron,仅生成原生二进制文件。 $ perry compile main.ts 正在编译 main.ts... ✓ 已编译可执行文件:main (2.3 MB) $ ./main Hello, World!

Perry 是一个利用 SWC 和 LLVM 将 TypeScript 直接编译为原生可执行文件的新项目。开发者旨在通过绕过传统运行时,实现桌面端和移动端的跨平台开发。 该项目在 Hacker News 上引发了热烈讨论。尽管一些用户对原生 TypeScript 的前景感到好奇,但社区仍持怀疑态度。批评者对“无运行时”这一说法表示质疑,指出打包完整的 UI 库很可能会导致二进制文件体积过大。其他评论者则质疑代码库的稳定性,指出其严重依赖 AI 生成的 Rust 代码,并对演示 UI 的美观度表示怀疑。总的来说,虽然该项目的技术抱负值得关注,但其实际实现和长期可行性仍面临严峻审视。
相关文章

原文

v0.5.306 — generational GC + lazy JSON tape default, faster than Node and Bun on most benchmarks

Perry compiles TypeScript to native GUI and CLI apps on macOS, iPadOS, iOS, Android, Linux, Windows, watchOS, tvOS, WebAssembly, and the Web. No runtime. No Electron. Just native binaries.

$ perry compile main.ts

Compiling main.ts...

✓ Compiled executable: main (2.3 MB)

$ ./main

Hello, World!

联系我们 contact @ memedata.com