-
Notifications
You must be signed in to change notification settings - Fork 34
Use V8 Snapshots #21
Comments
Is this related to what
If so, it would be good to have a way of disabling it too, for the reproducibility benefit in opensource projects where protecting the code is not a concern. |
Yes, that’s exactly it. And thanks for the information; I didn’t know that compiling bytecode is nondeterministic and that it could be an issue. When we get to this, I’ll make it optional. As it stands, caxa builds should be deterministic and produce exactly the same binary every time (though I haven’t checked). |
@leafac Looking forward to this so that switching from |
@rightaway I suppose you’re right. Support for snapshots in Node.js would make adding support for it in caxa much more natural and straightforward. |
@leafac Is there any way to get protected source code before this issue is solved? |
As far as I know currently the best you can do is obfuscate the JavaScript. |
Exciting news: https://nodejs.org/en/blog/announcements/v18-release-announce/#build-time-user-land-snapshot-experimental In summary:
|
When will support be available? what else do we need to do |
I don’t think that the Node.js have a specific deadline for delivering the features we’d need. And we don’t have a deadline for exactly how long it’ll take us to do the necessary adaptations in caxa.
You contribution can certainly help speed things up, so thanks for offering. For the time being, you may head to the Node.js project and follow along with nodejs/node#42617 & nodejs/node#38905 Offer your help and the Node.js team will direct you from there. Once the Node.js features are out, you may come back here and we’ll discuss how to best integrate with caxa. We’ll be happy to have your help. |
@leafac Are the node dependencies ready or is there more they need to do? Any updates with node 19 out and 20 a few months away? |
@leafac Because those issues are closed and node 20 is out with https://nodejs.org/api/single-executable-applications.html could we discuss how to integrate? |
Hi y’all, Thanks for using caxa and for the conversation here. I’ve been thinking about the broad strategy employed by caxa and concluded that there is a better way to solve the problem. It doesn’t address V8 Snapshots, and I consider them outside the scope of this new project, but if y’all learn more about the topic, I’m interested in what you have to say—and I’m sure other users will be interested as well, so please share. It’s a different enough approach that I think it deserves a new name, and it’s part of a bigger toolset that I’m building, which I call Radically Straightforward · Package. I’m deprecating caxa and archiving this repository. I invite you to continue the conversation in Radically Straightforward’s issues. Best. |
@leafac Could I ask you why you never add commit messages on your repos? |
This protects the source code and may lead to a marginal performance improvement.
#4 (comment)
The text was updated successfully, but these errors were encountered: