snmalloc
Copilot instructions2k starsChanged 59 days agoMITView on GitHub
- Read the relevant code before proposing or making changes. Keep changes focused, preserve existing structure where practical, and avoid unrelated renames or refactoring. - Use a written plan for genuinely multi-stage work or when the user requests one. Store repository plans in PLAN.md, and obtain approval before implementing a plan that introduces significant design choices. - Match validation effort to the risk and scope of the change. Establish a relevant baseline before broad or high-risk work; small changes may…
Trending
Less talk lately.about the whole repository
Who's talking about microsoft/snmalloc
- A Hacker News story“Snmalloc: A Message Passing Allocator”Hacker News · Oct 11, 2023 · 92 points
- A Hacker News story“Snmalloc: High-performance message passing based allocator”Hacker News · Mar 13, 2022 · 37 points
- @ducktapeprogrammer.bsky.social“github.com/microsoft/sn... There is a rust crate as well. tl;dr; Allocator that is great when allocations …”Bluesky · Aug 19, 2026 · 7 likes
- JuliaLang/julia“Provide a way to replace default malloc to investigate different allocators”GitHub · May 6, 2020 · 7 reactions
- microsoft/mimalloc“Static override on Windows”GitHub · Jul 1, 2020 · 5 reactions
The biggest 5 of 46 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 46
Talked about on GitHub, Hacker News and Bluesky (46 times).
On GitHub · 35
- May 6, 2020Provide a way to replace default malloc to investigate different allocators — JuliaLang/julia7 reactions · 6 comments
- Jul 1, 2020Static override on Windows — microsoft/mimalloc5 reactions · 5 comments
- Apr 15, 2020Add Tremor-Server benchmark for Rust — SchrodingerZhu/bench_suitesays it tested it5 reactions · 7 comments
- Jan 9, 2025[libc] add snmalloc as an alternative allocator to libc — llvm/llvm-project2 reactions · 10 comments
- May 10, 2022Upgrade to snmalloc 0.6.0 — openenclave/openenclave2 reactions · 30 comments
30 more on GitHub
- Nov 23, 2019Change to lockless unbounded mpsc — mratsim/weave2 reactions
- Oct 30, 2023walk: Use unbounded channels — sharkdp/fd1 reaction · 12 comments
- May 9, 2022Add snmalloc-secure — daanx/mimalloc-bench1 reaction · 3 comments
- May 17, 2021Update snmalloc sub-module to 0.5.3 — openenclave/openenclave1 reaction · 2 comments
- Jul 13, 2020Update snmalloc to 0.5.0 release — openenclave/openenclave1 reaction · 20 comments
- Oct 5, 2026build(deps): bump the cargo-server-minor-patch group across 1 directory with 3 updates — XXcipherX/csqtt-server0 reactions
- Oct 1, 2026add snmalloc allocator — zackees/mimalloc-pprof0 reactions
- Sep 28, 2026updpatch: snmalloc 0.7.5-1 — felixonmars/archriscv-packages0 reactions
- Sep 7, 2026chore: bump snmalloc-rs from 0.3.8 to 0.7.5 — sunstoneinstitute/horndb0 reactions
- Sep 1, 2026build(deps): bump snmalloc-rs from 0.3.8 to 0.7.5 — devzolo/zolo-plugin-sdk0 reactions
- Aug 28, 2026chore(deps): update snmalloc-rs requirement from 0.3.8 to 0.7.5 — 1395173231/vproxy0 reactions
- Aug 22, 2026chore(deps): update snmalloc-rs requirement from 0.3.8 to 0.7.5 — 0x676e67/vproxy0 reactions
- Aug 18, 2026chore(deps): bump the all-other-cargo-deps group across 1 directory with 2 updates — apache/datafusion0 reactions
- Aug 17, 2026build(deps): bump snmalloc-rs from 0.7.4 to 0.7.5 — camshaft/toccata0 reactions
- Jul 27, 2026Update snmalloc-rs requirement from 0.3 to 0.7 — haoxins/datafusion0 reactions · 3 comments
- May 14, 2026Update snmalloc-rs requirement from 0.3 to 0.7 — yjshen/datafusion0 reactions · 1 comment
- Mar 28, 2026Update snmalloc-rs requirement from 0.3 to 0.7 — camshaft/seqpool0 reactions
- Mar 25, 2026Bump snmalloc-sys/snmalloc from `e6bf857` to `cd2b19b` — SchrodingerZhu/snmalloc-rs0 reactions
- Mar 25, 2026fix(deps): update rust crate snmalloc-rs to 0.7.0 — danielhuang/cotton0 reactions
- Jun 10, 2025JEmalloc is archived now — varnishcache/varnish-cache0 reactions · 8 comments
- Jun 3, 2024[feature request] cmake/test pipeline for working with the cmake/build pipeline — chainguard-dev/melange0 reactions
- Feb 10, 2024Idea: Add dump commands for some other memory allocators — bata24/gef0 reactions
- Apr 22, 2023Bump 3rdparty/snmalloc/snmalloc from `d5c732f` to `e3f6365` — pavel-petrenko/openenclave0 reactions
- Mar 4, 2023Bump 3rdparty/snmalloc/snmalloc from `d5c732f` to `6066cba` — anakrish/openenclave0 reactions
- Mar 4, 2023Bump 3rdparty/snmalloc/snmalloc from `d5c732f` to `6066cba` — CyanDevs/openenclave0 reactions
- Mar 4, 2023Bump 3rdparty/snmalloc/snmalloc from `d5c732f` to `6066cba` — justanotherminh/openenclave0 reactions
- Nov 6, 2022Add support for Snmalloc — m4drat/memplusplus-benchmarks0 reactions
- Sep 2, 2022Provide "always inline" and "never inline" macros — build2/libbuild2-autoconf0 reactions
- May 9, 2022Research snmalloc — fullstaq-ruby/umbrella0 reactions
- Aug 18, 2021Boost allocation performance with MS snmalloc — contour-terminal/contour0 reactions · 9 comments
On Hacker News · 9
- Oct 11, 2023Snmalloc: A Message Passing Allocator92 points · 27 comments
- Mar 13, 2022Snmalloc: High-performance message passing based allocator37 points · 5 comments
- May 9, 2022Snmalloc 0.6 released, major redesign with security hardening3 points
- Jul 1, 2020snmalloc: a message passing allocator (Microsoft Research)3 points · 1 comment
- Jan 16, 2019Snmalloc – Message passing based allocator3 points
4 more on Hacker News
- Jun 23, 2019Snmalloc: A message passing allocator [pdf]2 points · 1 comment
- Jan 16, 2019snmalloc: Message passing based allocator2 points
- Dec 19, 2025Hardening Snmalloc1 point · 1 comment
- Nov 21, 2024Hardening Snmalloc1 point
On Bluesky · 2
- Aug 19, 2026github.com/microsoft/sn... There is a rust crate as well. tl;dr; Allocator that is great when allocations on one thread are freed by a… — @ducktapeprogrammer.bsky.social7 likes and reposts
- Jan 15, 2025That being said. I switched the allocator used to snmalloc. I don't know if I'm going to make that a permanent change, but it is something… — @smalls.online0 likes and reposts · 1 reply
The file
Show its rules and text
We split this copilot-instructions.md into the rules it gives an agent
15 rules. About 0 are common, 10 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈10
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 5
Read the relevant code before proposing or making changes.
- Very specific: line 8
Use a written plan for genuinely multi-stage work or when the user requests one.
- Distinctive: line 26
Verify hypotheses before implementing a workaround.
- Very specific: line 28
Start by checking new or changed code, but do not claim that main is broken from a local failure alone.
- Distinctive: line 31
When a bug pattern may occur more than once, search the complete change for other instances and fix the relevant occurrences together.
- Distinctive: line 36
Prefer designs simple enough that their correctness is evident.
- Very specific: line 39
Use the cross-platform macros from ds_core/defines.h rather than raw compiler attributes such as __attribute__((used)) or __forceinline.
- Distinctive: line 41
Do not encode platform assumptions such as a fixed virtual-address width or maximum allocation derived from one current platform.
- Distinctive: line 47
Keep headers minimal and include only direct dependencies.
- Very specific: line 48
Do not depend directly on the C++ standard library.
- Distinctive: line 50
Prefer explicit wiring and conversions over hidden dependencies or convention-based behaviour.
- Distinctive: line 52
Document behavioural coupling at the component whose modification could break the dependency.
- Distinctive: line 59
Avoid over-engineering and review churn.
- Distinctive: line 63
Update comments, tests, and documentation made stale by the change.
- Very specific: line 69
Follow .github/skills/building_and_testing.md.
≈ “Common” is an estimate: at least 1 in 5 of the 1,644 Copilot instructions files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
AI Guidelines for snmalloc
Working Style
- Read the relevant code before proposing or making changes. Keep changes focused, preserve existing structure where practical, and avoid unrelated renames or refactoring.
- Use a written plan for genuinely multi-stage work or when the user requests
one. Store repository plans in
PLAN.md, and obtain approval before implementing a plan that introduces significant design choices. - Match validation effort to the risk and scope of the change. Establish a
relevant baseline before broad or high-risk work; small changes may use
targeted validation. Use CI or
origin/mainwhen failure attribution is unclear. - Complete approved work through validation and a bounded self-review before reporting it done. Use independent review when the breadth, risk, or complexity of the change warrants it.
- Report incidental findings separately unless they are necessary to make the requested change correct. Challenge instructions or assumptions when evidence contradicts them.
Debugging
- Allocator tracing must use
write()directly to stderr or a file rather thanprintformessage, which may recurse through the allocator. - Verify hypotheses before implementing a workaround. Inspect the actual data, write a minimal reproducer, or compare against a known-good revision.
- Start by checking new or changed code, but do not claim that
mainis broken from a local failure alone. Check CI and, when useful, reproduce onorigin/main. - When a bug pattern may occur more than once, search the complete change for other instances and fix the relevant occurrences together.
Code Quality
- Prefer designs simple enough that their correctness is evident. Do not mistake the absence of an obvious bug in a complicated design for evidence that the design is correct.
- Use the cross-platform macros from
ds_core/defines.hrather than raw compiler attributes such as__attribute__((used))or__forceinline. - Do not encode platform assumptions such as a fixed virtual-address width or maximum allocation derived from one current platform.
- Trust existing API-boundary bounds checks. Internal code should defer edge cases to the backend rather than adding redundant checks.
- New caches and intermediate data structures must safely bypass inputs outside the range they handle.
- Keep headers minimal and include only direct dependencies.
- Do not depend directly on the C++ standard library. Use C headers such as
<stdint.h>and<stddef.h>, or the wrappers insrc/snmalloc/stl/. - Prefer explicit wiring and conversions over hidden dependencies or convention-based behaviour.
- Document behavioural coupling at the component whose modification could break the dependency.
- Design code to be easy to change, but do not add extension points or abstractions for hypothetical requirements.
Change Discipline
- Avoid over-engineering and review churn. Preserve names and function boundaries unless changing them improves correctness or clarity.
- Evaluate copied implementation patterns in their new context rather than reproducing incidental choices.
- Update comments, tests, and documentation made stale by the change.
- Comments and documentation describe current behaviour, not the history of the change.
Building, Testing, and Benchmarking
Follow .github/skills/building_and_testing.md. Select validation based on the
affected behaviour and report commands and failures factually.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

