agentsclimarketplace

Jit compilation

Skill a5c-ai/babysitter/library/specializations/programming-languages/skills/jit-compilation

Expert skill for just-in-time compilation including profiling, tiered compilation, and deoptimizationFrom its SKILL.md

Install
npx -y skills add a5c-ai/babysitter --skill jit-compilation

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

SKILL.md

2.1 KB, 389 tokens by cl100k_base, as published. Nobody here has run it

JIT Compilation Skill

Overview

Expert skill for just-in-time compilation including profiling, tiered compilation, and deoptimization.

Capabilities

  • Implement execution profiling and hot path detection
  • Design tiered compilation strategies (baseline + optimizing)
  • Implement on-stack replacement (OSR)
  • Implement speculative optimizations with guards
  • Design deoptimization frame reconstruction
  • Implement inline caching and type feedback
  • Design code cache management and eviction
  • Implement method inlining heuristics

Target Processes

  • jit-compiler-development.js
  • bytecode-vm-implementation.js
  • interpreter-implementation.js

Dependencies

V8/HotSpot architecture references

Usage Guidelines

  1. Tiered Approach: Start with a baseline tier, add optimizing tier when profiling data is available
  2. Profile-Guided: Use profiling data to guide optimization decisions
  3. Speculation: Implement guards for speculative optimizations with clean deoptimization
  4. OSR: Implement OSR for long-running loops to benefit from optimization mid-execution
  5. Code Cache: Implement code cache management to handle memory pressure

Output Schema

{
  "type": "object",
  "properties": {
    "tiers": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "name": { "type": "string" },
          "trigger": { "type": "string" }
        }
      }
    },
    "profilingMethod": {
      "type": "string",
      "enum": ["counters", "sampling", "tracing"]
    },
    "osrSupport": { "type": "boolean" },
    "generatedFiles": {
      "type": "array",
      "items": { "type": "string" }
    }
  }
}

What ships with it: 1 file

805 B alongside SKILL.md

Keep looking

Skills are one crate of 326,059. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.