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

Track function dependencies in JavaScript #104

Open
samestep opened this issue Sep 19, 2023 · 0 comments
Open

Track function dependencies in JavaScript #104

samestep opened this issue Sep 19, 2023 · 0 comments

Comments

@samestep
Copy link
Contributor

Right now we store dependencies among functions via Rc and Weak pointers in Rust. This causes problems with #84: for instance, the derivatives of $\sin$ and $\cos$ depend on each other, causing a cycle that would never be freed. We can keep individual function definitions living in Rust, but we should move the graph itself into JavaScript so it can be managed by the garbage collector.

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

1 participant