Skip to content

Conversation

@sigmaSd
Copy link
Contributor

@sigmaSd sigmaSd commented Nov 2, 2025

callbacks now are preserved in a glonbal map, and they're removed from it when callback.destory is called, this is because JS GC can't reason about them correctly

autocallbacks now just leak the callback, they're considerd now a convience function, if the user wants to control memory they can use python.callback

add gtk.ts test becasue it just a nice stress test, I want add it to the ci but its just for manual testing

supersedes #87

callbacks now are preserved in a glonbal map, and they're removed from
it when callback.destory is called, this is because JS GC can't reason
about them correctly

autocallbacks now just leak the callback, they're considerd now a
convience function, if the user wants to control memory they can use
python.callback

add gtk.ts test becasue it just a nice stress test, I want add it to the
ci but its just for manual testing
@sigmaSd
Copy link
Contributor Author

sigmaSd commented Nov 2, 2025

Also I now plan to publish a fork in jsr @sigma/python , because I use this project for many stuff (https://flathub.org/en/apps/io.github.sigmasd.stimulator and others) I prefer to have a faster way to iterate on this core component

Obviously I'll try to upstream any relevant addition when I can

@eliassjogreen eliassjogreen self-requested a review November 10, 2025 14:50
@eliassjogreen eliassjogreen merged commit ef26aff into denosaurs:main Nov 10, 2025
5 checks passed
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

Successfully merging this pull request may close these issues.

2 participants