Hacker News new | past | comments | ask | show | jobs | submit login

> I'm assuming having to bundle all of Node.js/V8 in your executable is one of them

I guess you could expect Linux distros to come with Node (though it's probably a quite dated release). Looking at standalone binaries, both bun.sh and Node.js are about 30MB. In comparison, Python 3.10 is 9MB and starts slower than bun but faster than Node. Bundling is easy too, you can take a loot at vercel/pkg https://github.com/vercel/pkg




well node is 30mb but then you need another 30 of js dependencies most likely.


You should tree-shake your imports. And in case of Node, it exposes V8 internals to generate bytecode, so you can compile your code - then you don't even need to ship it as text




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: