// summary
Perry is a native TypeScript compiler built with Rust that transforms code into standalone, high-performance executables. By utilizing LLVM for code generation, it eliminates the need for Node.js, Electron, or browser runtimes. The project supports cross-platform development for desktop, mobile, and web, offering native UI components and multi-threading capabilities.
// technical analysis
Perry is a native TypeScript compiler built in Rust that leverages SWC for parsing and LLVM for code generation to produce standalone, high-performance native executables. By eliminating the need for Node.js, Electron, or browser engines, it solves the problem of heavy runtime dependencies and performance overhead in cross-platform development. The project prioritizes native execution speed through advanced optimizations like scalar replacement of non-escaping objects and integer-modulo fast paths, effectively bridging the performance gap between high-level TypeScript and systems languages like C++ and Rust.
// key highlights
// use cases
// getting started
To begin, install Perry via npm using 'npm install @perryts/perry' or use 'npx @perryts/perry' for a zero-install approach. Initialize a project with 'perry init my-project', then use 'perry compile src/main.ts -o myapp' to build your code into a native executable. You can verify your environment setup at any time by running 'perry doctor'.