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

Keep the Vmlibrary.t type opaque. #393

Merged
merged 1 commit into from
Feb 26, 2024

Conversation

ppedrot
Copy link
Collaborator

@ppedrot ppedrot commented Feb 24, 2024

Follow-up and clean-up of #389, after some pondering.

Exposing the internal through Obj.magic is very fragile, and I do not think that accessing the VM bytecode is useful in practice. The corresponding code for declarations replaces the body by None anyways.

Exposing the internal through Obj.magic is very fragile, and I do not think
that accessing the VM bytecode is useful in practice. The corresponding code
for declarations replaces the body by None anyways.
@ejgallego ejgallego added this to the 0.20.0 milestone Feb 26, 2024
Copy link
Collaborator

@ejgallego ejgallego left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

Seraliziation of kernel environments was added to Serapi for the Coqgym paper, but indeed that has something we have never really fully supported, so I think that is OK.

[Actually I told the Coqgym people that they could have a better time not using kernel envs, but that's a different story]

It is very worrying tho that env now is not a pure data structure and can be mutated. That seems really risky to me.

@ejgallego ejgallego merged commit de954b7 into rocq-archive:main Feb 26, 2024
7 checks passed
@ppedrot
Copy link
Collaborator Author

ppedrot commented Feb 27, 2024

Environments are still pure data structures, though. The table is just a binary tree.

@ejgallego
Copy link
Collaborator

Vmtable.t is a ref , so it is mutable.

@ppedrot ppedrot deleted the opacify-vmlibrary branch February 28, 2024 11:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants