Add method-role overlay experiment on basic-webserver - #63
Open
koliyo wants to merge 7 commits into
Open
Conversation
Encode the closed method:role matrix as Roc wrap helpers and a hybrid example, without changing generated dispatch. Co-authored-by: Cursor <cursoragent@cursor.com>
Rocci.program now returns the basic-webserver record, and view/fragment/events/unfold wraps live in Rocci.roc. Handler-capturing constructors and a List of those closures still SIGSEGV this Roc nightly, so the example keeps match dispatch and a local command wrap. Co-authored-by: Cursor <cursoragent@cursor.com>
koliyo
force-pushed
the
method-role-lib
branch
from
August 25, 2026 13:13
59c7ac7 to
6f8c657
Compare
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
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.
Summary
Ui.rocci.experiments/rocci-weboverlays basic-webserver 0.16.0 (same tarball asdispatch.rs) and exposespf.Rocciwraps. The gallerypfis"../rocci-web/vendor/main.roc". Run./experiments/rocci-web/fetch-bws.shfirst (vendor/is gitignored).matches(method, path)and calls wraps. Command empty-SSE vs 204 needsRocci.command!(request.headers())frommain.roc;request.headers()in another module crashes this nightly.ListofRocci.view/Rocci.fragmentlinked, then crashed at runtime (dispatch on a value that can never exist).requires { routes }does not typecheck. Hosted register needs a rebuiltlibhost.a(not in this overlay).@method:role, not a generated-dispatch change, not an SSE-idle fork, not a shipped host. Knowledge: opinionated BWS overlay.Test plan
./experiments/rocci-web/fetch-bws.shcargo run -q -p rocci-cli -- run experiments/method-role-lib --no-windowGET /returns HTML;POST /actions/counter/incrementis onedatastar-patch-elementseventPOST /actions/live/incrementis204withoutDatastar-Requestand empty SSE with itGET /ssestays open;GET /actions/tabs/1is a fragment; compose returns patch-elements and patch-signalsGET /actions/search/results?q=livefilters;GET /healthisok;GET /counter/is 308cargo run -q -p rocci-okf -- check knowledge --profile rocci --format terminal