[{"data":1,"prerenderedAt":478},["ShallowReactive",2],{"blog-slat-3-en":3},{"number":4,"title":5,"summary":6,"parts":7,"toc":11,"minutes":477},3,"Vocabulary","Three of these are easy to confuse, so here is the picture to keep in mind: tiers are the floors of a building, slices are the apartments on the core floor…",[8],{"kind":9,"html":10},"html","\u003Cdiv class=\"table-wrap\">\u003Ctable>\n\u003Cthead>\n\u003Ctr>\n\u003Cth>Term\u003C\u002Fth>\n\u003Cth>Meaning\u003C\u002Fth>\n\u003Cth>Front-end equivalent\u003C\u002Fth>\n\u003C\u002Ftr>\n\u003C\u002Fthead>\n\u003Ctbody>\n\u003Ctr>\n\u003Ctd>\u003Cstrong>Tier\u003C\u002Fstrong>\u003C\u002Ftd>\n\u003Ctd>A kind of crate: \u003Ccode>kit\u003C\u002Fcode>, \u003Ccode>store\u003C\u002Fcode>, \u003Ccode>drivers\u003C\u002Fcode>, \u003Ccode>core\u003C\u002Fcode>, \u003Ccode>app\u003C\u002Fcode>. Tiers are stacked and depend only downward.\u003C\u002Ftd>\n\u003Ctd>A library type in Nx (\u003Ccode>type:util\u003C\u002Fcode>, \u003Ccode>type:data-access\u003C\u002Fcode>, …)\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>\u003Cstrong>Slice\u003C\u002Fstrong>\u003C\u002Ftd>\n\u003Ctd>One feature of the product, such as \u003Ccode>run\u003C\u002Fcode>, \u003Ccode>chat\u003C\u002Fcode> or \u003Ccode>skill\u003C\u002Fcode>.\u003C\u002Ftd>\n\u003Ctd>A domain folder, \u003Ccode>src\u002Fsections\u002F&lt;area&gt;\u003C\u002Fcode>\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>\u003Cstrong>Layer\u003C\u002Fstrong>\u003C\u002Ftd>\n\u003Ctd>A file inside a slice with a fixed name and role: \u003Ccode>model.rs\u003C\u002Fcode>, \u003Ccode>logic.rs\u003C\u002Fcode>, \u003Ccode>store.rs\u003C\u002Fcode>, \u003Ccode>service.rs\u003C\u002Fcode>.\u003C\u002Ftd>\n\u003Ctd>\u003Ccode>feature\u002F\u003C\u002Fcode>, \u003Ccode>ui\u002F\u003C\u002Fcode>, \u003Ccode>data-access\u002F\u003C\u002Fcode>, \u003Ccode>util\u002F\u003C\u002Fcode>\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>\u003Cstrong>Actor\u003C\u002Fstrong>\u003C\u002Ftd>\n\u003Ctd>The single owner of long-lived state: \u003Ccode>Msg → update → Effect\u003C\u002Fcode>.\u003C\u002Ftd>\n\u003Ctd>An NgRx store: action → reducer → effect\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>\u003Cstrong>Handle\u003C\u002Fstrong>\u003C\u002Ftd>\n\u003Ctd>The only door into an actor from outside.\u003C\u002Ftd>\n\u003Ctd>\u003Ccode>inject(Store)\u003C\u002Fcode>\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>\u003Cstrong>Snapshot\u003C\u002Fstrong>\u003C\u002Ftd>\n\u003Ctd>What the window sees of an actor, published through a \u003Ccode>watch\u003C\u002Fcode> channel.\u003C\u002Ftd>\n\u003Ctd>\u003Ccode>select(…)\u003C\u002Fcode>\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>\u003Cstrong>Entry\u003C\u002Fstrong>\u003C\u002Ftd>\n\u003Ctd>A way the outside world calls the backend: a Tauri command, an MCP server, a local bridge, a remote hub.\u003C\u002Ftd>\n\u003Ctd>A screen component\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>\u003Cstrong>Query\u003C\u002Fstrong>\u003C\u002Ftd>\n\u003Ctd>A read without side effects.\u003C\u002Ftd>\n\u003Ctd>A selector\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>\u003Cstrong>Command\u003C\u002Fstrong>\u003C\u002Ftd>\n\u003Ctd>A change of state. A \u003Cem>Tauri command\u003C\u002Fem> is something else: the function the window invokes, which may run a query or a command.\u003C\u002Ftd>\n\u003Ctd>An action\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>\u003Cstrong>Event\u003C\u002Fstrong>\u003C\u002Ftd>\n\u003Ctd>The backend telling the front-end that something changed, without being asked.\u003C\u002Ftd>\n\u003Ctd>A push into a store\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>\u003Cstrong>Platform\u003C\u002Fstrong>\u003C\u002Ftd>\n\u003Ctd>An operating system we build for: \u003Ccode>macos\u003C\u002Fcode>, \u003Ccode>linux\u003C\u002Fcode>, \u003Ccode>windows\u003C\u002Fcode>.\u003C\u002Ftd>\n\u003Ctd>A browser target\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>\u003Cstrong>Platform contract\u003C\u002Fstrong>\u003C\u002Ftd>\n\u003Ctd>A function in \u003Ccode>drivers::platform\u003C\u002Fcode> that means the same thing on every operating system.\u003C\u002Ftd>\n\u003Ctd>A polyfill\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>\u003Cstrong>Plugin\u003C\u002Fstrong>\u003C\u002Ftd>\n\u003Ctd>A feature the user can switch on or off: one or more slices with a manifest (section 23, optional).\u003C\u002Ftd>\n\u003Ctd>A lazy-loaded feature library\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>\u003Cstrong>Base slice\u003C\u002Fstrong>\u003C\u002Ftd>\n\u003Ctd>A slice that is always on; it never imports a plugin slice.\u003C\u002Ftd>\n\u003Ctd>A shell library\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>\u003Cstrong>Hook\u003C\u002Fstrong>\u003C\u002Ftd>\n\u003Ctd>An extension point a base slice offers and plugins answer with data.\u003C\u002Ftd>\n\u003Ctd>An injection token with \u003Ccode>multi: true\u003C\u002Fcode>\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003C\u002Ftbody>\n\u003C\u002Ftable>\u003C\u002Fdiv>\n\u003Cp>Three of these are easy to confuse, so here is the picture to keep in mind: \u003Cstrong>tiers are the floors of a building, slices are the apartments on the \u003Ccode>core\u003C\u002Fcode> floor, and layers are the rooms inside each apartment.\u003C\u002Fstrong>\u003C\u002Fp>\n",[12,29,33,37,41,61,85,101,121,145,149,157,189,193,217,221,245,281,285,305,325,341,377,425,473],{"id":13,"text":14,"depth":15,"children":16},"s1","1. Why SLAT exists",2,[17,21,25],{"id":18,"text":19,"depth":4,"children":20},"s1-1","1.1. Goals",[],{"id":22,"text":23,"depth":4,"children":24},"s1-2","1.2. Non-goals",[],{"id":26,"text":27,"depth":4,"children":28},"s1-3","1.3. Who should use it",[],{"id":30,"text":31,"depth":15,"children":32},"s2","2. SLAT on one page",[],{"id":34,"text":35,"depth":15,"children":36},"s3","3. Vocabulary",[],{"id":38,"text":39,"depth":15,"children":40},"s4","4. Where SLAT comes from",[],{"id":42,"text":43,"depth":15,"children":44},"s5","5. Tiers",[45,49,53,57],{"id":46,"text":47,"depth":4,"children":48},"s5-1","5.1. The compiler is the guard",[],{"id":50,"text":51,"depth":4,"children":52},"s5-2","5.2. How many crates to start with",[],{"id":54,"text":55,"depth":4,"children":56},"s5-3","5.3. When to split a tier",[],{"id":58,"text":59,"depth":4,"children":60},"s5-4","5.4. Compatibility exception",[],{"id":62,"text":63,"depth":15,"children":64},"s6","6. Slices",[65,69,73,77,81],{"id":66,"text":67,"depth":4,"children":68},"s6-1","6.1. A slice in core",[],{"id":70,"text":71,"depth":4,"children":72},"s6-2","6.2. A slice in app",[],{"id":74,"text":75,"depth":4,"children":76},"s6-3","6.3. A command, the reference shape",[],{"id":78,"text":79,"depth":4,"children":80},"s6-4","6.4. Registering commands",[],{"id":82,"text":83,"depth":4,"children":84},"s6-5","6.5. Naming slices",[],{"id":86,"text":87,"depth":15,"children":88},"s7","7. Who may import whom",[89,93,97],{"id":90,"text":91,"depth":4,"children":92},"s7-1","7.1. Inside a slice",[],{"id":94,"text":95,"depth":4,"children":96},"s7-2","7.2. Between slices",[],{"id":98,"text":99,"depth":4,"children":100},"s7-3","7.3. Why these particular lines",[],{"id":102,"text":103,"depth":15,"children":104},"s8","8. Data flows",[105,109,113,117],{"id":106,"text":107,"depth":4,"children":108},"s8-1","8.1. Query (a read)",[],{"id":110,"text":111,"depth":4,"children":112},"s8-2","8.2. Command (a change)",[],{"id":114,"text":115,"depth":4,"children":116},"s8-3","8.3. Event (backend → window)",[],{"id":118,"text":119,"depth":4,"children":120},"s8-4","8.4. High-volume streams",[],{"id":122,"text":123,"depth":15,"children":124},"s9","9. Actors: slices with state",[125,129,133,137,141],{"id":126,"text":127,"depth":4,"children":128},"s9-1","9.1. When to use an actor",[],{"id":130,"text":131,"depth":4,"children":132},"s9-2","9.2. Files",[],{"id":134,"text":135,"depth":4,"children":136},"s9-3","9.3. The contract",[],{"id":138,"text":139,"depth":4,"children":140},"s9-4","9.4. A complete small actor",[],{"id":142,"text":143,"depth":4,"children":144},"s9-5","9.5. Testing an actor",[],{"id":146,"text":147,"depth":15,"children":148},"s10","10. The variant explosion",[],{"id":150,"text":151,"depth":15,"children":152},"s11","11. AppState, the composition root",[153],{"id":154,"text":155,"depth":4,"children":156},"s11-1","11.1. kit::Jobs: one-shot background work",[],{"id":158,"text":159,"depth":15,"children":160},"s12","12. Platforms",[161,165,169,173,177,181,185],{"id":162,"text":163,"depth":4,"children":164},"s12-1","12.1. Layout",[],{"id":166,"text":167,"depth":4,"children":168},"s12-2","12.2. Contracts",[],{"id":170,"text":171,"depth":4,"children":172},"s12-3","12.3. What is forbidden outside platform\u002F",[],{"id":174,"text":175,"depth":4,"children":176},"s12-4","12.4. Paths, files and text",[],{"id":178,"text":179,"depth":4,"children":180},"s12-5","12.5. Platform tests",[],{"id":182,"text":183,"depth":4,"children":184},"s12-6","12.6. Enforcement",[],{"id":186,"text":187,"depth":4,"children":188},"s12-7","12.7. Porting to a new operating system",[],{"id":190,"text":191,"depth":15,"children":192},"s13","13. Errors",[],{"id":194,"text":195,"depth":15,"children":196},"s14","14. Testing by layer",[197,201,205,209,213],{"id":198,"text":199,"depth":4,"children":200},"s14-1","14.1. One integration binary",[],{"id":202,"text":203,"depth":4,"children":204},"s14-2","14.2. A fake driver without a trait",[],{"id":206,"text":207,"depth":4,"children":208},"s14-3","14.3. Mutants in the diff",[],{"id":210,"text":211,"depth":4,"children":212},"s14-4","14.4. Property tests for update",[],{"id":214,"text":215,"depth":4,"children":216},"s14-5","14.5. A test through the entry",[],{"id":218,"text":219,"depth":15,"children":220},"s15","15. Size limits",[],{"id":222,"text":223,"depth":15,"children":224},"s16","16. Enforcement",[225,229,233,237,241],{"id":226,"text":227,"depth":4,"children":228},"s16-1","16.1. A check with a baseline",[],{"id":230,"text":231,"depth":4,"children":232},"s16-2","16.2. A check must be able to fail",[],{"id":234,"text":235,"depth":4,"children":236},"s16-3","16.3. The platform job in CI",[],{"id":238,"text":239,"depth":4,"children":240},"s16-4","16.4. Checks for the whole set",[],{"id":242,"text":243,"depth":4,"children":244},"s16-5","16.5. Lints and bans before scripts",[],{"id":246,"text":247,"depth":15,"children":248},"s17","17. Recipes",[249,253,257,261,265,269,273,277],{"id":250,"text":251,"depth":4,"children":252},"s17-1","17.1. A new read (Query)",[],{"id":254,"text":255,"depth":4,"children":256},"s17-2","17.2. A new change without background state (Command)",[],{"id":258,"text":259,"depth":4,"children":260},"s17-3","17.3. A new slice",[],{"id":262,"text":263,"depth":4,"children":264},"s17-4","17.4. A new flow with state (actor)",[],{"id":266,"text":267,"depth":4,"children":268},"s17-5","17.5. A new driver (the outside world)",[],{"id":270,"text":271,"depth":4,"children":272},"s17-6","17.6. A new event for the window",[],{"id":274,"text":275,"depth":4,"children":276},"s17-7","17.7. A new platform",[],{"id":278,"text":279,"depth":4,"children":280},"s17-8","17.8. Where does this go? (decision tree)",[],{"id":282,"text":283,"depth":15,"children":284},"s18","18. Working with coding agents",[],{"id":286,"text":287,"depth":15,"children":288},"s19","19. Migrating an existing codebase",[289,293,297,301],{"id":290,"text":291,"depth":4,"children":292},"s19-1","19.1. The order",[],{"id":294,"text":295,"depth":4,"children":296},"s19-2","19.2. Rules of migration",[],{"id":298,"text":299,"depth":4,"children":300},"s19-3","19.3. Layout first, a faster start",[],{"id":302,"text":303,"depth":4,"children":304},"s19-4","19.4. What usually goes wrong",[],{"id":306,"text":307,"depth":15,"children":308},"s20","20. Case study: Quayside",[309,313,317,321],{"id":310,"text":311,"depth":4,"children":312},"s20-1","20.1. Before",[],{"id":314,"text":315,"depth":4,"children":316},"s20-2","20.2. Symptoms in the code",[],{"id":318,"text":319,"depth":4,"children":320},"s20-3","20.3. The migration, step by step",[],{"id":322,"text":323,"depth":4,"children":324},"s20-4","20.4. After",[],{"id":326,"text":327,"depth":15,"children":328},"s21","21. Adoption checklist and FAQ",[329,333,337],{"id":330,"text":331,"depth":4,"children":332},"s21-1","21.1. Checklist for a new project",[],{"id":334,"text":335,"depth":4,"children":336},"s21-2","21.2. Checklist for an existing project",[],{"id":338,"text":339,"depth":4,"children":340},"s21-3","21.3. Questions",[],{"id":342,"text":343,"depth":15,"children":344},"s22","22. Build and test time",[345,349,353,357,361,365,369,373],{"id":346,"text":347,"depth":4,"children":348},"s22-1","22.1. Where the time goes",[],{"id":350,"text":351,"depth":4,"children":352},"s22-2","22.2. Build settings",[],{"id":354,"text":355,"depth":4,"children":356},"s22-3","22.3. One set of features",[],{"id":358,"text":359,"depth":4,"children":360},"s22-4","22.4. Run what a change can affect",[],{"id":362,"text":363,"depth":4,"children":364},"s22-5","22.5. Many working copies",[],{"id":366,"text":367,"depth":4,"children":368},"s22-6","22.6. CI",[],{"id":370,"text":371,"depth":4,"children":372},"s22-7","22.7. What makes a build start over",[],{"id":374,"text":375,"depth":4,"children":376},"s22-8","22.8. Clean target\u002F",[],{"id":378,"text":379,"depth":15,"children":380},"s23","23. Plugins",[381,385,389,393,397,401,405,409,413,417,421],{"id":382,"text":383,"depth":4,"children":384},"s23-1","23.1. When a feature is a plugin",[],{"id":386,"text":387,"depth":4,"children":388},"s23-2","23.2. Layout",[],{"id":390,"text":391,"depth":4,"children":392},"s23-3","23.3. Direction",[],{"id":394,"text":395,"depth":4,"children":396},"s23-4","23.4. Extension points",[],{"id":398,"text":399,"depth":4,"children":400},"s23-5","23.5. On and off",[],{"id":402,"text":403,"depth":4,"children":404},"s23-6","23.6. Front-end",[],{"id":406,"text":407,"depth":4,"children":408},"s23-7","23.7. A plugin in its own crate",[],{"id":410,"text":411,"depth":4,"children":412},"s23-8","23.8. Testing",[],{"id":414,"text":415,"depth":4,"children":416},"s23-9","23.9. Turning an existing slice into a plugin",[],{"id":418,"text":419,"depth":4,"children":420},"s23-10","23.10. Enforcement",[],{"id":422,"text":423,"depth":4,"children":424},"s23-11","23.11. Plugins from outside",[],{"id":426,"text":427,"depth":15,"children":428},"s24","24. Plugin packages",[429,433,437,441,445,449,453,457,461,465,469],{"id":430,"text":431,"depth":4,"children":432},"s24-1","24.1. Built-in plugin or package",[],{"id":434,"text":435,"depth":4,"children":436},"s24-2","24.2. The process rule",[],{"id":438,"text":439,"depth":4,"children":440},"s24-3","24.3. Layout",[],{"id":442,"text":443,"depth":4,"children":444},"s24-4","24.4. The manifest",[],{"id":446,"text":447,"depth":4,"children":448},"s24-5","24.5. The protocol",[],{"id":450,"text":451,"depth":4,"children":452},"s24-6","24.6. Extension points for packages",[],{"id":454,"text":455,"depth":4,"children":456},"s24-7","24.7. Signing and the store",[],{"id":458,"text":459,"depth":4,"children":460},"s24-8","24.8. Life cycle",[],{"id":462,"text":463,"depth":4,"children":464},"s24-9","24.9. Permissions",[],{"id":466,"text":467,"depth":4,"children":468},"s24-10","24.10. Testing",[],{"id":470,"text":471,"depth":4,"children":472},"s24-11","24.11. Enforcement",[],{"id":474,"text":475,"depth":15,"children":476},"s25","25. Version history",[],77,1795449738023]