[Feature Request] Weak Vectors
Nobody has claimed this yet.
- Dominant language
- Racket
- Stars
- 5.2k
- Forks
- 698
- Avg merge
- 18h 34m
- Merged PRs (30d)
- 5
Description
Weak vectors are useful for maintaining pools of objects who's finalisers interact with other live objects in the pool. For example, compacting or reordering slots which become free due to the underlying object being unreachable. Or managing pools of objects in an FFI context.
Currently you can create a vector of weak pairs, but this adds an extra level of indirection and memory usage for no benefit.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No files, tests, or entry points are named. Begin by locating the existing weak-pair and vector implementations and their tests, then determine the runtime and garbage-collection requirements for weak vectors. Done means a supported weak-vector feature avoids the extra weak-pair indirection and has coverage for the stated object-pool use cases.
Written by the indexing model from the issue text.
Assessment
- Domain
- backend
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100