Hacker News new | ask | show | jobs
by jwxz 30 days ago
I didn't see anyone mention this, but I think having a single binary is much nicer than having a JS (or Python) program sprawled all over your system.
1 comments

Having single binary output is completely different problem and is solved for both Python and typescript (bun supports the later).
That's true, but it's not quite the same thing. The single binary you're referring to is the interpreter and source code packaged together (at least for TS/JS).

If you install too many of these "single binaries" then at some point you would be better off just having a single interpreter and using npm/pip.

By contrast the Rust binary only contains the machine code for this program and can be directly executed.

Node and Deno can also bundle apps into a single executable.