Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question: What is in a pvm? #28

Closed
jeswr opened this issue Jan 9, 2023 · 2 comments
Closed

Question: What is in a pvm? #28

jeswr opened this issue Jan 9, 2023 · 2 comments

Comments

@jeswr
Copy link
Collaborator

jeswr commented Jan 9, 2023

I'm wondering how much information is contained in the pvm image; in particular has it pre-loaded many/any of the SWIPL modules (such as those listed in https://github.com/SWI-Prolog/swipl-devel/blob/master/src/wasm/exports.json) which would allow us to create a custom minified build of SWIPL?

@josd
Copy link
Contributor

josd commented Jan 9, 2023

In eye.pl there are 13 use_module/1 directives and I assume they are in the pvm file. So I would think that is all we need and if not we can have additional use_module/1 directives.

@josd
Copy link
Contributor

josd commented Jan 9, 2023

Yes, I did an explicit test with :- set_prolog_flag(autoload, false). and the image was running fine for all our tests. So all needed modules are in the pvm file.

@jeswr jeswr closed this as completed Feb 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants