Hasty Briefsbeta

Bilingual

Perry Compiles TypeScript directly to executables using SWC and LLVM

4 hours ago
  • #Native Compilation
  • #Cross-Platform
  • #TypeScript
  • Perry compiles TypeScript to native GUI and CLI apps for multiple platforms (macOS, iOS, Android, Linux, Windows, etc.) with no runtime or Electron, producing standalone binaries.
  • Key benefits include: no runtime required (standalone executables), fast compilation via SWC and LLVM, small binary sizes (2-5MB), deterministic builds, comprehensive standard library, optional V8 runtime for npm compatibility, and native UI widgets.
  • Features: compile-time plugin system, true multi-threading, compile-time internationalization (i18n), cross-platform builds and code signing, distribution to app stores, and automated UI testing via Geisterhand.
  • Performance comparison shows Perry has smaller binary sizes (2-5MB vs. 80-90MB for Node.js/Bun), faster startup times (~1ms vs. 10-30ms), and no runtime dependencies, with benchmarks indicating up to 18x speed improvements.
  • Supports TypeScript syntax and Node.js APIs, including core language features, functions, classes, type system, standard library modules, and 30+ native npm packages reimplemented in Rust.