principle-three-clocks
Skill0 starsChanged 4 days agoMITView on GitHub
Name the clock behind a slow run: load, compile, or algorithm. Use before changing any code that is slow.
In this repository55 other files it gives its agents.
- advanced-optimizationSkill
- bayesian-inferenceSkill
- bayesian-pinnSkill
- bayesian-ude-workflowSkill
- catalyst-reactionsSkill
- continuum-mechanics-and-rheologySkill
- control-theorySkill
- creating-julia-appSkill
- debugging-toolkitSkill
- differential-equationsSkill
- differentiationSkill
- equation-discoverySkill
- experiment-trackingSkill
- fem-feaSkill
- julia-graph-neural-networksSkill
- julia-languageSkill
- julia-ml-and-dlSkill
- julia-model-deploymentSkill
- julia-paper-implementationSkill
- julia-pro-helpSkill
- julia-pro-modeSkill
- julia-reinforcement-learningSkill
- modeling-toolkitSkill
- neural-pdeSkill
- nonlinear-dynamicsSkill
- numerical-methods-implementationSkill
- package-development-workflowSkill
- performance-tuningSkill
- physical-learning-systemsSkill
- playbook-debugSkill
- playbook-model-validateSkill
- playbook-package-releaseSkill
- playbook-paper-implementSkill
- playbook-perfSkill
- playbook-test-specSkill
- principle-both-sidesSkill
- principle-breakingSkill
- principle-file-is-truthSkill
- principle-gateSkill
- principle-limitsSkill
- principle-loud-failureSkill
- principle-one-stepSkill
- principle-proof-listSkill
- principle-rebuttalSkill
- principle-runtime-surfaceSkill
- principle-three-boundsSkill
- scientific-visualizationSkill
- sciml-and-diffeqSkill
- setup-julia-proSkill
- signal-processingSkill
- simulation-and-hpcSkill
- statistical-physicsSkill
- symbolic-mathSkill
- web-development-juliaSkill
- zarr-cloud-arraysSkill
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 18
Call the same function three times in one fresh process.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill 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
Name the clock
Julia runs on three clocks, and each one has its own cure. Rewrite an algorithm to fix a compile delay and the wall clock does not move. Add precompilation to a slow second call and you have shipped a system image that loads slowly.
| Clock | What is slow | Read it with | Cure |
| load | using Pkg parses and precompiles dependencies | @time_imports | trim deps, PrecompileTools workload |
| compile | first call to a function (TTFX) | call the same function three times | PrecompileTools, create_sysimage |
| algorithm | second and later calls | @code_warntype, then the profiler | type stability, allocation, better algorithm |
Telling them apart
Call the same function three times in one fresh process. A >10x drop from call 1 to call 2 is compilation. julia --startup-file=no -e 'using Pkg; @time_imports using MyPkg' isolates load from everything else. A second call that is still slow is yours.
Failure signature
Hours of work and the reported number still includes the compile. Or a hand-optimized kernel over a run whose time was 90% using.
Case
A property package takes 8 s on the first props(state) and 3 ms afterwards. That is compilation, not thermodynamics. Precompile a representative state point; leave the EOS alone.
Pairs with
- performance-tuning — the measurement that shows which clock the time is in
- julia-language — load and compile time as properties of the package, not of the algorithm
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.

