Replies: 2 comments
-
I think fixing the bugs in PROXYFS is the probably the most logical way forwards. Trying to actually share JS library code between modules is not something that emscripten was ever designed for so going down that path would likely be a lot of work. |
Beta Was this translation helpful? Give feedback.
-
Answering my own question (because I saw similar ones): right now we have not only Module → FS relation (easy to fix by updating all properties of Module that reference FS and its methods) There's also If I copy FS to another module, it's I can also copy |
Beta Was this translation helpful? Give feedback.
-
I recently tried to use PROXYFS to share files between modules and stumbled into two bugs that essentialy stop me from doing so.
I consider refactoring Emscripten JS to move the FS object out of the module-creation function, and so allow such sharing.
Before I get down to this, how do you think, is there any show-stopper? Something that prevents FS to be shared across multiple modules (assuming -sMODULARIZE)? Any reason why each instance should have its own FS?
Maybe some issues with /dev or /proc?
It's crucial that FS doesn't reference Module, to allow one-to-many (one FS - many modules) relation, is it so?
Beta Was this translation helpful? Give feedback.
All reactions