-
Notifications
You must be signed in to change notification settings - Fork 227
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
Support NIF code upgrades #13
Comments
Yeah, I did not implement module reloading, as I don't currently see a way to maintain memory safety when it comes to resource structs across reloads. I could add the option of allowing upgrades, but it would invalidate memory safety if you modify resource structs and reload the nif library. If you are not using resource structs, it would probably not be a problem. |
Ok, thanks for your reply! |
I don't want to shut down the discussion around this or anything. If there is a need for this it should certainly be bumped up the feature priority list. |
Last night I think about your answer. On reflection, I think you are right. Of cause,“upgrade” may be abused. Close(/hide)some danger options, to keep the safe mode. It's always effective. If possible, can there be more a clear full marco of insecurity?like “rustler_export_nifs!!!”,😄. developers can have more choices and know the consequences. Thanks for your great job. |
Upgrades probably can't be made safe. But we could probably add some kind of |
Sorry if this is a basic question, but without support for NIF upgrades, what happens when you perform an upgrade? |
I believe the module will fail to load @bigfish24 |
Adds rebar3_rust and rustfromerl examples.
I believe what I wrote earlier in this thread is wrong. As long as we always create resource types with the Issues start to arise when we want to try supporting Having a basic version of NIF upgrading would certainly be better than having nothing at all |
Set macOS rustflags on both x86 and ARM
Hello.Thanks for the great project.
I found the error when I reload nif module on iex.
Is that has any way to add/edit/export the upgrade function?
Thank you.
The text was updated successfully, but these errors were encountered: