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

Rust features wanted for jrsonnet #165

Open
2 tasks
CertainLach opened this issue May 27, 2024 · 0 comments
Open
2 tasks

Rust features wanted for jrsonnet #165

CertainLach opened this issue May 27, 2024 · 0 comments

Comments

@CertainLach
Copy link
Owner

To remove as_any[_mut] methods

Some traits in jrsonnet have as_any/as_any_mut methods
Those methods might be removed by making Any a supertrait of those, but it will be only possible with

Better GC

Many good Rust GC designs with explicit root tracking (Like https://github.com/withoutboats/shifgrethor) require method receivers to be typed as in fn method(self: Gc<Self>), this requires

(This is also possible to implement with rustc_driver, which implements required linting, as in servo... But this is uglier, and requires using separate compiler)

Until then, current Gc is a reference counting with cycle collection instead, as we can't reliably track roots.
rust-gc, which was used previously, spends too much time tracking roots, so its approach is not practical.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant