Skip to content

Make /try run the homepage sample and capture io.print - #29

Merged
csfh merged 1 commit into
mainfrom
cursor/try-playground-homepage-85c8
Aug 16, 2026
Merged

csfh merged 1 commit into
mainfrom
cursor/try-playground-homepage-85c8

Conversation

@csfh

@csfh csfh commented Aug 16, 2026

Copy link
Copy Markdown
Owner

Summary

/try now uses the homepage sum.echo figure as its default Sum sample. Check plus a playground run capture io.print (sum=6). The page names host limits (filesystem, net, process, and tasks) and does not describe itself as xo run or as native LLVM in the browser.

Wasm bindings stay in www/public/echo-wasm/ so the site can ship without a Rust toolchain. The SPA 404 fallback for /try is unchanged.

Proofs:

  • echo_wasm crate tests for the homepage sample and host-limit refusals
  • www test:try loads the committed wasm bindings and asserts the homepage sample prints sum=6

Fixes #11

Checklist

  • Focused tests added or updated where behavior changed
  • Echo 2026 (echo26 / e26) updated if language or runtime surface changed
  • Examples updated if user-runnable demos are affected
  • Docs updated for durable or user-visible rules
  • scripts/gate changed (and echo26 when applicable) pass locally
Open in Web Open in Cursor 

Paste sum.echo, check it, and show captured io.print. The page names
host limits and does not claim xo run or native LLVM in the browser.
Bindings stay in www/public/echo-wasm/.

Fixes #11

Co-authored-by: Christoffer Hallas <github@christofferhallas.com>
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying echo with  Cloudflare Pages  Cloudflare Pages

Latest commit: 8f57de5
Status: ✅  Deploy successful!
Preview URL: https://9f4c0eba.echo-1gc.pages.dev
Branch Preview URL: https://cursor-try-playground-homepa.echo-1gc.pages.dev

View logs

@csfh
csfh marked this pull request as ready for review August 16, 2026 05:17
@cursor

cursor Bot commented Aug 16, 2026

Copy link
Copy Markdown

Bugbot is not enabled for your account, so this pull request was not reviewed.

Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs.

@csfh
csfh merged commit 628974f into main Aug 16, 2026
2 checks passed
@csfh
csfh deleted the cursor/try-playground-homepage-85c8 branch September 8, 2026 17:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Playground on /try should run the homepage sample

2 participants