Skip to content

Investigate BER MetaOCaml approach to runtime code generation #1491

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

Open
andrew-johnson-4 opened this issue May 8, 2025 · 2 comments
Open

Comments

@andrew-johnson-4
Copy link
Collaborator

The generated code can be printed, stored in a file -- or compiled and linked-back to the running program, thus implementing run-time code optimization.

I guess this makes sense in theory. It is like hot-swapping symbols I guess? And it is proven to work in one language.

@alex-s168
Copy link
Collaborator

so just JIT or AOT?

@andrew-johnson-4
Copy link
Collaborator Author

If I understand correctly there is a full compiler pass external to the running process, then that gets linked back in somehow. idk, I haven't read the code or explanation. It sounds a little different than normal.

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