Title: id: design: dynamic user functions — server-compiled DLLs, hot-swap into running worlds without world recompile · Issue #5964 · developing-today/code · GitHub
Open Graph Title: id: design: dynamic user functions — server-compiled DLLs, hot-swap into running worlds without world recompile · Issue #5964 · developing-today/code
X Title: id: design: dynamic user functions — server-compiled DLLs, hot-swap into running worlds without world recompile · Issue #5964 · developing-today/code
Description: Part of the worlds design program: #5955. Statements S36–S38 and S45 of the 2026-11-04 brief. This is the V3 stage of the program. Requirement (Drew, in substance) User-level code should be passable into a running world without recompili...
Open Graph Description: Part of the worlds design program: #5955. Statements S36–S38 and S45 of the 2026-11-04 brief. This is the V3 stage of the program. Requirement (Drew, in substance) User-level code should be passabl...
X Description: Part of the worlds design program: #5955. Statements S36–S38 and S45 of the 2026-11-04 brief. This is the V3 stage of the program. Requirement (Drew, in substance) User-level code should be passabl...
Opengraph URL: https://github.com/developing-today/code/issues/5964
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"id: design: dynamic user functions — server-compiled DLLs, hot-swap into running worlds without world recompile","articleBody":"Part of the worlds design program: [#5955](https://github.com/developing-today/code/issues/5955). Statements S36–S38 and S45 of the 2026-11-04 brief. This is the V3 stage of the program.\n\n## Requirement (Drew, in substance)\n\nUser-level code should be passable into a **running world without recompiling the whole world**:\n\n- At least in one version of the compiler there is a way to make a **DLL**. The **server side compiles that DLL itself** — user code is never trusted pre-compiled.\n- The platform then **places the DLL in the appropriate location** for the world-side code to call it.\n- If a user changes what's running, the world-side code **picks it up as soon as it's compiled and available to be hot-swapped in**.\n- **Trust chain:** the server can trust the code because it did the compilation itself; and the only non-pure things the user function can do are from the **server's own platform being passed to it by the world author** — and the world author can trust that chain too.\n\n## Design points to settle\n\n- Interface contract: what signature/shape a user DLL exposes, and how the world discovers and binds it (name, version, interface hash). Mismatch behavior: refuse, fall back to previous version, or run the user's prior published code (see the compile-economics child — \"keep running what you'd already published\" is the stated default).\n- Swap semantics: swap at tick boundary only? In-flight calls finish on the old code — state handoff between versions (the function's state is the world's problem, the function's problem, or serialized through a defined state type?).\n- Which Roc compiler line actually supports the DLL path Drew remembers, and what it costs us to build on it (pin vs track).\n- Isolation: a user DLL crashing or hanging must not take the world down (budgets: server-invariants child; per-function enforcement: gas/timeout research child).\n- Distinction from the *authoring* hot-swap loop (`id world dev`, [#558](https://github.com/developing-today/code/issues/558) / [#5541](https://github.com/developing-today/code/issues/5541)): that swaps world code for its author during development; this swaps **per-user functions inside a live world for its players**. Reuse its mechanics where they fit, but the trust and budget models differ.\n\n## Related\n\n- Programming-model child of [#5955](https://github.com/developing-today/code/issues/5955) (functions passed by the world are the static case of this)\n- Per-user function mapping child of [#5955](https://github.com/developing-today/code/issues/5955) (the consumer of this mechanism)\n- Compile chain today: `pkgs/id/src/world_compile.rs`\n\n## Done looks like\n\nA design doc: DLL interface contract, server compile pipeline, placement/binding, swap semantics incl. failure fallbacks, and the trust argument written out end-to-end.\n","author":{"url":"https://github.com/dezren39","@type":"Person","name":"dezren39"},"datePublished":"2026-11-05T05:04:17Z","url":"https://github.com/developing-today/code/issues/5964"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:1753b770-09e4-952b-7e8a-d5f234d5f831 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 96DA:2EAB91:3059D8:3F8C4D:6B06172E |
| html-safe-nonce | 6e4617f08d6b6d9215ecd9b5850c533a11636ce9a162b954589e16875f2f07e4 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NkRBOjJFQUI5MTozMDU5RDg6M0Y4QzREOjZCMDYxNzJFIiwidmlzaXRvcl9pZCI6IjMyMDA1OTE5ODcwNDkxMDkyOTQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 3bd132ec1ba445632353c74194f61f958a8a7b16caf7493d519b34cdf466cfa0 |
| hovercard-subject-tag | issue:6217145646 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/developing-today/code/5964/issue_layout |
| twitter:image | https://opengraph.githubassets.com/83fc1d22a99dd1cc92ec8ad4f882cb2d39a81515ef12dd1e6d6ace36b099e3b9/developing-today/code/issues/5964 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/83fc1d22a99dd1cc92ec8ad4f882cb2d39a81515ef12dd1e6d6ace36b099e3b9/developing-today/code/issues/5964 |
| og:image:alt | Part of the worlds design program: #5955. Statements S36–S38 and S45 of the 2026-11-04 brief. This is the V3 stage of the program. Requirement (Drew, in substance) User-level code should be passabl... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | dezren39 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 97d4714e567728e1f85f88b0cf68c89f0f8a3dc41e8869af7aeb8195ad990374 |
| turbo-cache-control | no-preview |
| go-import | github.com/developing-today/code git https://github.com/developing-today/code.git |
| octolytics-dimension-user_id | 26439447 |
| octolytics-dimension-user_login | developing-today |
| octolytics-dimension-repository_id | 627308783 |
| octolytics-dimension-repository_nwo | developing-today/code |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 627308783 |
| octolytics-dimension-repository_network_root_nwo | developing-today/code |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 866f202ebf7ac5aff8f633417d9fd8a53818a977 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width