กลับไปยังการเปรียบเทียบ
รันไทม์ TypeScript

Perry vs Deno

Deno compile produces a standalone executable by bundling a slimmed-down Deno runtime with the program. Perry compiles supported code through LLVM and does not include a JavaScript engine, while statically linking its own runtime and GC.

ข้อมูลทางเทคนิคและหมายเหตุการวัดผลใช้ฉบับภาษาอังกฤษเป็นหลักเพื่อป้องกันความคลาดเคลื่อนระหว่างคำแปล

Deno คืออะไร?

Deno is a JavaScript and TypeScript runtime with built-in tooling and a permissions model. Its official compile documentation describes a standalone executable that contains the program and a slimmed-down Deno runtime.

Perry คืออะไร?

Perry parses TypeScript and JavaScript with SWC and compiles supported code ahead of time through LLVM. Native builds do not require an external Node.js installation or JavaScript engine, but they do statically link the Perry runtime and garbage collector. Perry is pre-1.0, implements a practical language and Node.js subset, and compiles npm dependencies natively rather than embedding a JavaScript engine.

เคียงข้างกัน

ฟีเจอร์PerryDeno
Execution modelLLVM ahead-of-time machine codeV8 through the bundled Deno runtime
Standalone executableTarget-specific native binaryProgram plus slimmed-down Deno runtime
Runtime modelPerry runtime + GC statically linked; no JS engineDeno runtime and V8 embedded
PermissionsOperating-system process permissionsRuntime permission flags and policy
Native UI and mobilePerry UI targets desktop, mobile, wearable, TV, and Web/WASMRuntime/CLI/server focus
CompatibilityPractical subset, compiled nativelyV8 plus Deno, web, and Node compatibility layers

จุดที่ Perry ชนะ

  • +Native-widget UI targets
  • +No JavaScript engine in native output
  • +Mobile, wearable, TV, and Web/WASM target model
  • +Small outputs are possible for narrowly linked applications

จุดที่ Deno ชนะ

  • +Mature runtime and tooling
  • +Granular runtime permissions
  • +Broad dynamic JavaScript and package compatibility
  • +Built-in formatter, linter, test runner, and related tools

เมื่อใดควรเลือก Perry

Choose Perry for validated native applications where its targets, UI model, and AOT tradeoffs fit the product.

เมื่อใดควรเลือก Deno

Choose Deno for runtime-centric server, CLI, or scripting work where its permissions model, tooling, and V8 compatibility are more important.

บทสรุป

Both can ship one file, but one file does not mean the same architecture. Compare your actual application rather than extrapolating from hello world or a microbenchmark.

แหล่งข้อมูล

ลองใช้ Perry

คอมไพล์ TypeScript ของคุณเป็นเนทีฟวันนี้

เริ่มต้น