一键导入
jit-overview
Orientation to facet-format JIT deserialization (tiering, fallbacks, key types/entry points) and where to look when changing or debugging JIT code
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Orientation to facet-format JIT deserialization (tiering, fallbacks, key types/entry points) and where to look when changing or debugging JIT code
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Guidelines for using facet crates (facet-json, facet-toml, figue) instead of serde-based alternatives for consistent dogfooding
Debug crashes, segfaults, and memory errors using valgrind integration with nextest through pre-configured profiles
Systematic workflow for debugging by reproducing bugs with real data, reducing test cases to minimal examples, and adding regression tests
基于 SOC 职业分类
| name | jit-overview |
| description | Orientation to facet-format JIT deserialization (tiering, fallbacks, key types/entry points) and where to look when changing or debugging JIT code |
Facet’s JIT lives in facet-format and is used by format crates like facet-json.
facet-format/src/jit/ or enabling the jit feature.facet-format defines a format-neutral deserialization pipeline:
FormatParser (implemented by each format crate) produces a stream of ParseEvents.facet-reflect).The JIT accelerates this by compiling deserialization code specialized for:
T / its Shape), and sometimesP).ParseEvents and writes directly into the output’s memory at known offsets.FormatParser (JSON/YAML/TOML/…).FormatJitParser + JitFormat implementation.ParseEvent stream for maximum throughput.facet-format/src/jit/mod.rsfacet-format/src/parser.rs (FormatJitParser)facet-json/Cargo.toml feature jit = ["facet-format/jit"]facet-json/examples/profile_jit_vec (requires jit).claude/skills/windbg-jit.md.claude/skills/debug-with-valgrind/SKILL.md (uses nextest profiles).claude/skills/reproduce-reduce-regress/SKILL.md).cargo nextest run --profile valgrind … (configured in .config/nextest.toml)just miri) for UB/provenance issues outside the JIT itself.facet-format/src/jit/mod.rs.