-
-
Notifications
You must be signed in to change notification settings - Fork 1
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
mutable rtpsa #121
mutable rtpsa #121
Conversation
Alright, so, my guess for the allocation from
So, something somewhere messes about that shouldn't 🤔 |
@Seelengrab Thank you for all your help with this! Even though the data is the same, it seems
So the question really is, does the GC follow the same rules for |
To the language, the two objects are not linked at all. A I know of a similar case in Vulkan.jl, where they have high-level julia-GC managed objects that transparently track & free GPU ressources as necessary. Maybe that could be helpful? You can find some docs about their approach here. |
That is unfortunate. I guess one possible solution would be to write the constructors fully in Julia. I wonder why |
Yes, that ought to work too. You'll still have to keep the low level structs around to convert to & from though when passing to your external library.
No, that's expected; the |
OK so here is the proposed solution: Because the |
I hope it works! |
This is not very trivial because coef is a flexible array member in the C library |
Change the underlying structs to pure C structs?