memory-allocator
SolidExpert skill for custom memory allocator design optimized for language runtime needs
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
# Memory Allocator Skill
## Overview
Expert skill for custom memory allocator design optimized for language runtime needs.
## Capabilities
- Implement bump/arena allocators
- Implement free-list allocators with size classes
- Design slab allocators for fixed-size objects
- Implement thread-local allocation buffers (TLAB)
- Handle large object allocation strategies
- Implement memory pooling and recycling
- Design memory profiling and statistics
- Implement address space layout optimization
## Target Processes
- memory-allocator-design.js
- garbage-collector-implementation.js
- interpreter-implementation.js
- bytecode-vm-implementation.js
## Dependencies
jemalloc, tcmalloc references
## Usage Guidelines
1. **Size Classes**: Design size classes to minimize internal fragmentation
2. **Thread Safety**: Use thread-local allocation for hot paths
3. **Large Objects**: Handle large objects separately from small allocations
4. **Profiling**: Build allocation statistics from the start
5. **GC Integration**: Design allocator API with GC integration in mind
## Output Schema
```json
{
"type": "object",
"properties": {
"allocatorType": {
"type": "string",
"enum": ["bump", "free-list", "slab", "hybrid"]
},
"sizeClasses": {
"type": "array",
"items": { "type": "integer" }
},
"threadSafety": {
"type": "string",
"enum": ["single-threaded", "tlab", "lock-free"]
},
"generatedFiles": {
"type": "array",
"ite...
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
garbage-collection
Expert skill for garbage collector design and implementation including various collection algorithms
1,160 Updated today
a5c-ai AI & Automation Solid
memory-analysis
Embedded memory analysis, optimization, and leak detection
1,160 Updated today
a5c-ai AI & Automation Solid
agent-resource-allocator
Agent skill for resource-allocator - invoke with $agent-resource-allocator
57,130 Updated today
ruvnet 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
jit-compilation
Expert skill for just-in-time compilation including profiling, tiered compilation, and deoptimization
1,160 Updated today
a5c-ai