logoalt Hacker News

ksectoday at 4:20 AM2 repliesview on HN

>Next: the runtime itself. Bun has a bun build --compile flag that produces a single self-contained executable. No runtime, no node_modules, no source files needed in the container.

I didn't know that. So Bun is basically a whole runtime + framework all in one with little to no deployment headaches?


Replies

jamsinclairtoday at 4:35 AM

The bun build creates a large self-contained executable with no optimisations. Almost like a large electron build.

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.

show 3 replies
thewarmantoday at 4:42 AM

This (single executable) is available in node.js now too as SEA mode.

show 1 reply