-
Notifications
You must be signed in to change notification settings - Fork 1k
Difference from nexe? #42
Comments
Nexe contributor here. I also built xbin as a response to enclose being closed source. Its great to see it as OSS in pkg! Edited xbin features have been integrated into nexe A short description of how the two projects work. (Please correct me if I missed anything) nexe:
pkg:
|
Thanks for your comparison @calebboyd. I'll add the following: we've been using |
How about difference between Node-Compiler https://github.com/pmq20/node-compiler |
@rohmanhm Node-Compiler mentions differences in its readme -
|
Thanks everyone that has notted down the differences between all those projects. regards |
Would also like to know what @danielo515 asked :D |
I've used all 3 tools to create binaries, each has its strength and quirks.
Technologically there are differences between Nexe and Pkg, but one of the features I really like with Pkg is the ability to easily add user code as plugins / modules during run-time and as I work a lot on enterprise applications this extension level is an essential feature. .node files are just a pain with Pkg though, and yes I've tried quite a few tricks to make them simpler to integrate and manage but as they need to be in the same root as the binary I often find my users forget to include them or complain why there's an addition .node file in the base directory (as they don't care that the binary is written in node) In this sense nexe works well. Currency is also a challenge at the moment, in that at this time of writing Pkg 8.x stream is 8.9.0 while LTS is 8.11.3 so would be great to see this automatically kept more current (I know we can build from source our-self but ...) Other big difference for those of us using containers is that Pkg built binaries explode in Alpine Linux, so Debian is the better choice for packaging. While Nexe does support Alpine Dynamic requires with Pkg can also be more than challenging depending on your application architecture. It took a few passes to make one of our more complex applications find a way to static require our own modules to keep the tree happy. Pkg is without doubt my first choice for binaries and only fallback to Nexe for the specific reasons mentioned above |
Absolutely agree with @keidrych. I just finished implementing |
The nexe capability described here of packaging .node files does not work (any longer maybe?). Takes away a big reason to switch. It would be great if at least the required .node files were put into the output directory along with the executable instead of having to hunt them down. |
Could you highlight in a nutshell how pkg is different?
https://github.com/nexe/nexe
so far i'm seeing Nexe rebuilding node with source, and pkg inlining the source into a new binary (thus not requiring a node rebuild)
Thanks!
The text was updated successfully, but these errors were encountered: