“Compiled executables reduce memory usage and improve Bun’s start time.
Normally, Bun reads and transpiles JavaScript and TypeScript files on import and require. This is part of what makes so much of Bun “just work”, but it’s not free. It costs time and memory to read files from disk, resolve file paths, parse, transpile, and print source code.
With compiled executables, you can move that cost from runtime to build-time.”
https://bun.com/docs/bundler/executables#deploying-to-produc...
Maybe I'm doing something wrong but I scoured docs and online and asked multiple AI agents to no avail.
ksec•1h ago
I didn't know that. So Bun is basically a whole runtime + framework all in one with little to no deployment headaches?
jamsinclair•49m ago
Deno also provides the same functionality, but with a smaller optimized binary.
Appreciate Bun helping creating healthy competition. I feel like Deno falls under most people's radar often. More security options, faster than Node, built on web standards.
thewarman•42m ago
claytongulick•10m ago