Replies: 2 comments 15 replies
-
Good questions!
Native add-ons are dynamically shared libraries. I believe you can load them from a random offset of a file on Linux, but they need to be separate files for macOS and Windows. @jesec can correct me if I'm wrong, but I believe PKG extracts them to a temporary directory and loads them from there.
Hm, I don't think this will be possible at all with the current architecture. We are injecting the VFS logic into Node.js, so if you use any other mechanism of reading files, then they would by definition not work. @jesec does PKG deal with this in any way? Worst case I guess we can expose the location of the VFS to the add-on and provide some native APIs to read files from there... Of course, native add-ons would have to use that and wouldn't inherit VFS capabilities out of the box. |
Beta Was this translation helpful? Give feedback.
-
As per the call today, let's park this thread for the time-being. We'll focus on making VFS implementations possible from user-land, and we can revisit the problem of a blessed VFS implementations later on. The reason for this strategic decision is that designing a truly universal VFS seems be a very complex problem. We can focus on the other parts of SEAs for now instead of being blocked on VFS for a long time. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
All reactions