Repository navigation
MO-10: use Solid libraries from .rx (spec + ref + crate) - #57
Merged
Merged
Conversation
instantiates and ref in JS declarations (ref T in returns), any accessor can hold, packages ship declarations under the rx export condition. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0117BoWLEtMWwBHFA2w1P6FF
🚀 Deploying Preview to Cloudflare 🚀Preview Deployments by commit
|
…x condition Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0117BoWLEtMWwBHFA2w1P6FF
A JS declaration takes ref parameters, ref parts in its result and instantiates (inferred from any ref). A primitive is bound as an instantiating fn, so E-9, E-10 and RG-6 apply; ref arguments go in as accessors, ref parts bind to the accessor, function parts are io, and a foreign reader may hold (CN-3e). A package's .d.rx is found beside the file its import resolves to. Built in ref/ (all five runners) and the crate; S-module-4; guide/libraries.md. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0117BoWLEtMWwBHFA2w1P6FF
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requested by Ryan · project thread
Declare a Solid library once in a
.d.rx, then use it like .rx.Spec (spec/09 MO-10, decision 7)
instantiatesandrefparams in a JS declaration;instantiatesis inferred from anyref.ref Tin a result is a reader, bound to the accessor and read without a call. Function parts are io; anything else is a value..d.rxsits beside the file its import resolves to (exports→dist/index.jsx→dist/index.d.rx). No export condition.Built
./primsis.rxfor the interpreter and real Solid primitives for the others (ref/src/prims.ts,ref/compile/prims-solid.ts).package_declaration. Product builds emit an ES import and the same lowering. Checked by hand on anrxc appbuild with a relative module and a package.scenarios/S-module-4.md: frames, plus five rejected variants (SNAPSHOT_ARGUMENT, IO_IN_REACTIVE ×2 including one through a package, INSTANTIATION_NOT_BOUND, CN-3e).guide/libraries.md, linked fromlanguage.md. CHANGELOG entry.Tests
RX_CRATE=1compiled each 127 pass with the 14 recorded divergences; SSR 120 pass, 0 fail, 7 skipped; types 173.--lower208/208.--projectagrees on every program, but its prelude check fails. It fails the same way on main.compilernpm test,runtimenpm test andcargo testpass.compiler/test/vite.mjs. The installed Solid plugin has no built-in.rx, and building the plugin checkout wasn't allowed here.Open, taken by default
🤖 Generated with Claude Code
https://claude.ai/code/session_0117BoWLEtMWwBHFA2w1P6FF