garbage-collection
SolidExpert skill for garbage collector design and implementation including various collection algorithms
AI & Automation 1,160 stars
71 forks Updated today MIT
Install
Quality Score: 94/100
Stars 20%
Recency 20%
Frontmatter 20%
Documentation 15%
Issue Health 10%
License 10%
Description 5%
Skill Content
# Garbage Collection Skill
## Overview
Expert skill for garbage collector design and implementation including various collection algorithms.
## Capabilities
- Implement mark-sweep collection
- Implement copying/semi-space collectors
- Implement generational collection with write barriers
- Implement concurrent/incremental marking (tri-color)
- Design object header layouts and type info
- Implement precise vs conservative root scanning
- Design card table and remembered set implementations
- Implement finalizers and weak references
## Target Processes
- garbage-collector-implementation.js
- memory-allocator-design.js
- interpreter-implementation.js
- bytecode-vm-implementation.js
## Dependencies
GC Handbook literature (Jones, Hosking, Moss)
## Usage Guidelines
1. **Algorithm Selection**: Start with simple mark-sweep, evolve to generational as needed
2. **Write Barriers**: Design write barriers early if considering generational/concurrent GC
3. **Root Scanning**: Implement precise root scanning for safety
4. **Pause Times**: Measure pause times and optimize for application requirements
5. **Testing**: Build GC stress tests and allocation-heavy benchmarks
## Output Schema
```json
{
"type": "object",
"properties": {
"algorithm": {
"type": "string",
"enum": ["mark-sweep", "copying", "mark-compact", "generational", "concurrent"]
},
"writeBarrier": {
"type": "string",
"enum": ["none", "card-table", "remembered-set", "snapshot-at-be...
Details
- Author
- a5c-ai
- Repository
- a5c-ai/babysitter
- Created
- 4 months ago
- Last Updated
- today
- Language
- JavaScript
- License
- MIT
Similar Skills
Semantically similar based on skill content — not just same category
AI & Automation Solid
memory-allocator
Expert skill for custom memory allocator design optimized for language runtime needs
1,160 Updated today
a5c-ai AI & Automation Solid
register-allocation
Expert skill for register allocation algorithms including graph coloring, linear scan, and spill code generation
1,160 Updated today
a5c-ai AI & Automation Solid
generics-implementation
Expert skill for implementing parametric polymorphism including type parameter bounds, monomorphization, type erasure, variance, higher-kinded types, and associated types.
1,160 Updated today
a5c-ai AI & Automation Solid
jit-compilation
Expert skill for just-in-time compilation including profiling, tiered compilation, and deoptimization
1,160 Updated today
a5c-ai AI & Automation Solid
memory-analysis
Embedded memory analysis, optimization, and leak detection
1,160 Updated today
a5c-ai