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

on-the-fly switch between port and nif #25

Closed
zmstone opened this issue May 11, 2022 · 2 comments
Closed

on-the-fly switch between port and nif #25

zmstone opened this issue May 11, 2022 · 2 comments

Comments

@zmstone
Copy link
Member

zmstone commented May 11, 2022

we need a way to switch from port to nif or from nif to port.
the switch has to be on-the-fly, at least should not require a beam restart.

@kjellwinblad
Copy link
Contributor

This already exists:

jq:set_implementation_module(jq_nif).
jq:set_implementation_module(jq_port).

But this should be documented in the README file so I leave this open until we have added a description there.

@kjellwinblad
Copy link
Contributor

This is now documented in the README file with the following sentence:

One can use the function jq:set_implementation_module/2 to change the implementation while the application is running.

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