Skip to content

Conversation

@load1n9
Copy link
Member

@load1n9 load1n9 commented Oct 13, 2024

No description provided.

Copy link
Member

@aapoalas aapoalas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

suggestion:: How about combining WeakMap, WeakSet, WeakRef, and FinalizationRegistry under a combined "weak-refs" feature? Disabling that feature would mean that the engine does not have any ephemerons and thus garbage collection can be done with a very simple algorithm (the one we use right now; I haven't actually implemented ephemeron collection yet).

@load1n9
Copy link
Member Author

load1n9 commented Oct 14, 2024

sounds good!

@load1n9 load1n9 changed the title feat: weak map as feature feat: WeakMap, WeakSet, WeakRef behind the weak-refs feature Oct 14, 2024
@load1n9 load1n9 requested a review from aapoalas October 14, 2024 15:17
Copy link
Member

@aapoalas aapoalas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thank you <3

@aapoalas aapoalas merged commit 50e4856 into trynova:main Oct 15, 2024
1 check 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