René's URL Explorer Experiment


Title: Test real non-JS WASM execution by youknowdot · Pull Request #9816 · RustPython/RustPython · GitHub

Open Graph Title: Test real non-JS WASM execution by youknowdot · Pull Request #9816 · RustPython/RustPython

X Title: Test real non-JS WASM execution by youknowdot · Pull Request #9816 · RustPython/RustPython

Description: Summary Turn the non-JS wasm32-unknown-unknown example into a real execution test that fails when the guest fails. Source ABI: the host copies -c CODE or a UTF-8 file into a buffer obtained from the guest's alloc_source; eval(ptr, len) takes ownership of that buffer, runs it, and reports the repr of the last expression or the Python exception through env.print. Host-lent storage: the guest exposes a native kv module (kv.get(key) -> bytes | None, kv.put(key, value)) backed by the env.kv_get / env.kv_put host imports and an in-memory map owned by the host. kv_get returns -1 for a missing key or the full value length, copying only when the value fits so the guest can retry with a larger buffer. This wires up the kv_get/kv_put scaffold that was previously declared but never called. Host CLI: wasm-runtime MODULE.wasm (-c CODE | FILE.py). Guest output goes to stdout. Exit status is 0 on success, 1 for a Python exception, 2 for invalid input or a host/runtime error (trap, missing export, bad arguments). Import allowlist: the host rejects any import other than env.print, env.kv_get, env.kv_put before instantiation. This replaces the CI wasm-objdump check, which never failed the job; the wabt setup is removed. No-OS guest: no stdlib, no JS, WASI, filesystem, clock or entropy. The hash seed is fixed to 0 and the custom getrandom backend reports unsupported instead of returning Ok without writing bytes. Wasmer is bumped to 7.5. Tests test_runtime.py (run with host CPython in the existing WASM CI job) checks against the real guest: supplied source and no-OS identity (sys.platform, 32-bit maxsize, no posix/nt/js), file source, empty source, host storage round trip (missing key, overwrite, 16 KiB value through the retry path), Python exceptions (assertion, syntax error, failing __repr__), non-UTF-8 source, missing source, an unexpected import, and a guest trap. Verification Guest and host build, Clippy -D warnings, rustfmt, ruff, and all 9 contract tests pass locally. AI assistance: initial implementation with OpenAI Codex; simplification and host storage with Grok (grok-4.7) and Claude (claude-opus-5-5). 🤖 Generated with Claude Code

Open Graph Description: Summary Turn the non-JS wasm32-unknown-unknown example into a real execution test that fails when the guest fails. Source ABI: the host copies -c CODE or a UTF-8 file into a buffer obtained from t...

X Description: Summary Turn the non-JS wasm32-unknown-unknown example into a real execution test that fails when the guest fails. Source ABI: the host copies -c CODE or a UTF-8 file into a buffer obtained from t...

Opengraph URL: https://github.com/RustPython/RustPython/pull/9816

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:66f41228-9124-4fd1-7cf5-bd3d61315666
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id86F2:2F9718:2FBDAE6:40064C9:6B01F3AF
html-safe-nonced97bcde96a60edd6d518516c81dbacb49176bb5da1c0fe4edb269fc3a95c6ee1
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NkYyOjJGOTcxODoyRkJEQUU2OjQwMDY0Qzk6NkIwMUYzQUYiLCJ2aXNpdG9yX2lkIjoiMTM5NzcxMzM0NzgyNjI4MzQzOSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacf389bd1df854156ac631c74760b32d45a6ee187ba72c6d40398bd00290be3632
hovercard-subject-tagpull_request:5271578867
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/RustPython/RustPython/pull/9816/files
twitter:imagehttps://avatars.githubusercontent.com/u/336763669?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/336763669?s=400&v=4
og:image:altSummary Turn the non-JS wasm32-unknown-unknown example into a real execution test that fails when the guest fails. Source ABI: the host copies -c CODE or a UTF-8 file into a buffer obtained from t...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/RustPython/RustPython git https://github.com/RustPython/RustPython.git
octolytics-dimension-user_id39710557
octolytics-dimension-user_loginRustPython
octolytics-dimension-repository_id135201145
octolytics-dimension-repository_nwoRustPython/RustPython
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id135201145
octolytics-dimension-repository_network_root_nwoRustPython/RustPython
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release423dbb54c5e7bfecc838eb387c1435eb3d0e760d
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/RustPython/RustPython/pull/9816/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FRustPython%2FRustPython%2Fpull%2F9816%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FRustPython%2FRustPython%2Fpull%2F9816%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=RustPython%2FRustPython
Reloadhttps://github.com/RustPython/RustPython/pull/9816/files
Reloadhttps://github.com/RustPython/RustPython/pull/9816/files
Reloadhttps://github.com/RustPython/RustPython/pull/9816/files
RustPythonhttps://github.com/RustPython
RustPythonhttps://github.com/RustPython/RustPython
Codehttps://github.com/RustPython/RustPython
Issues195 (195)https://github.com/RustPython/RustPython/issues
Pull requests133 (133)https://github.com/RustPython/RustPython/pulls
Discussionshttps://github.com/RustPython/RustPython/discussions
Actionshttps://github.com/RustPython/RustPython/actions
Projectshttps://github.com/RustPython/RustPython/projects
Wikihttps://github.com/RustPython/RustPython/wiki
Security and qualityhttps://github.com/RustPython/RustPython/security
Insightshttps://github.com/RustPython/RustPython/insights
Sign up for GitHub https://github.com/signup?return_to=%2FRustPython%2FRustPython%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2FRustPython%2FRustPython%2Fissues%2Fnew%2Fchoose
youknowonehttps://github.com/youknowone
RustPython:mainhttps://github.com/RustPython/RustPython/tree/main
youknowdot:test/non-js-wasm-runner-20261112https://github.com/youknowdot/RustPython/tree/test/non-js-wasm-runner-20261112
Conversation 3 https://github.com/RustPython/RustPython/pull/9816
Commits 4 https://github.com/RustPython/RustPython/pull/9816/commits
Checks 27 https://github.com/RustPython/RustPython/pull/9816/checks
Files changed https://github.com/RustPython/RustPython/pull/9816/files
Please reload this pagehttps://github.com/RustPython/RustPython/pull/9816/files
Test real non-JS WASM execution https://github.com/RustPython/RustPython/pull/9816/files#top
Show all changes 4 commits https://github.com/RustPython/RustPython/pull/9816/files
9c82c95 Test real non-JS WASM execution youknowdot Nov 12, 2026 https://github.com/RustPython/RustPython/pull/9816/commits/9c82c951d6217a134f540d0d94e10f37831be75f
45688e2 Require patched Wasmer for the non-JS runtime youknowdot Nov 12, 2026 https://github.com/RustPython/RustPython/pull/9816/commits/45688e242632eddcf308570f7da477beaa95bb9a
a9e260c Simplify the non-JS WASM runner youknowone Nov 12, 2026 https://github.com/RustPython/RustPython/pull/9816/commits/a9e260c782a8641c7ea8279b0ed39811c05bfec5
d8b5490 Lend host key/value storage to the non-JS guest youknowone Nov 13, 2026 https://github.com/RustPython/RustPython/pull/9816/commits/d8b5490868bc4a13bf22da5f17c523fa198bd4bc
Clear filters https://github.com/RustPython/RustPython/pull/9816/files
Please reload this pagehttps://github.com/RustPython/RustPython/pull/9816/files
Please reload this pagehttps://github.com/RustPython/RustPython/pull/9816/files
ci.yaml https://github.com/RustPython/RustPython/pull/9816/files#diff-944291df2c9c06359d37cc8833d182d705c9e8c3108e7cfe132d61a06e9133dd
README.md https://github.com/RustPython/RustPython/pull/9816/files#diff-236d7b7ce9ac6398e2360aa48107fa02020bc5e571d0162ecb81f42623b1607d
Cargo.toml https://github.com/RustPython/RustPython/pull/9816/files#diff-c99ebbdab0c24115b43a51d4366a1456dd8e7598e22be0cda4d02ccf22b8901a
lib.rs https://github.com/RustPython/RustPython/pull/9816/files#diff-0b3c31074edbb02b920786548f52b58eff4ea04b9028f31933364d054960c9ea
test_runtime.py https://github.com/RustPython/RustPython/pull/9816/files#diff-e8d9630469b03d64596f45ac47a9b20f46fa4333049e2764393f83a3ce5b3e2f
Cargo.toml https://github.com/RustPython/RustPython/pull/9816/files#diff-9637925062d545fec7127d2596c9382cd42e4cc4012ecd669e158550c422db73
README.md https://github.com/RustPython/RustPython/pull/9816/files#diff-67ea362ca7af3696b04102d21f12227164c9c11c9883cda40066083643202de7
main.rs https://github.com/RustPython/RustPython/pull/9816/files#diff-3bd96d08f2efee67469a4f489527aae49bc319bc7601b0d9726144bb6fb96e8d
.github/workflows/ci.yamlhttps://github.com/RustPython/RustPython/pull/9816/files#diff-944291df2c9c06359d37cc8833d182d705c9e8c3108e7cfe132d61a06e9133dd
View file https://github.com/youknowdot/RustPython/blob/d8b5490868bc4a13bf22da5f17c523fa198bd4bc/.github/workflows/ci.yaml
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/RustPython/RustPython/pull/9816/{{ revealButtonHref }}
https://github.com/RustPython/RustPython/pull/9816/files#diff-944291df2c9c06359d37cc8833d182d705c9e8c3108e7cfe132d61a06e9133dd
https://github.com/RustPython/RustPython/pull/9816/files#diff-944291df2c9c06359d37cc8833d182d705c9e8c3108e7cfe132d61a06e9133dd
https://github.com/RustPython/RustPython/pull/9816/files#diff-944291df2c9c06359d37cc8833d182d705c9e8c3108e7cfe132d61a06e9133dd
example_projects/wasm32_without_js/README.mdhttps://github.com/RustPython/RustPython/pull/9816/files#diff-236d7b7ce9ac6398e2360aa48107fa02020bc5e571d0162ecb81f42623b1607d
View file https://github.com/youknowdot/RustPython/blob/d8b5490868bc4a13bf22da5f17c523fa198bd4bc/example_projects/wasm32_without_js/README.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/RustPython/RustPython/pull/9816/{{ revealButtonHref }}
example_projects/wasm32_without_js/rustpython-without-js/Cargo.tomlhttps://github.com/RustPython/RustPython/pull/9816/files#diff-c99ebbdab0c24115b43a51d4366a1456dd8e7598e22be0cda4d02ccf22b8901a
View file https://github.com/youknowdot/RustPython/blob/d8b5490868bc4a13bf22da5f17c523fa198bd4bc/example_projects/wasm32_without_js/rustpython-without-js/Cargo.toml
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/RustPython/RustPython/pull/9816/{{ revealButtonHref }}
https://github.com/RustPython/RustPython/pull/9816/files#diff-c99ebbdab0c24115b43a51d4366a1456dd8e7598e22be0cda4d02ccf22b8901a
https://github.com/RustPython/RustPython/pull/9816/files#diff-c99ebbdab0c24115b43a51d4366a1456dd8e7598e22be0cda4d02ccf22b8901a
example_projects/wasm32_without_js/rustpython-without-js/src/lib.rshttps://github.com/RustPython/RustPython/pull/9816/files#diff-0b3c31074edbb02b920786548f52b58eff4ea04b9028f31933364d054960c9ea
View file https://github.com/youknowdot/RustPython/blob/d8b5490868bc4a13bf22da5f17c523fa198bd4bc/example_projects/wasm32_without_js/rustpython-without-js/src/lib.rs
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/RustPython/RustPython/pull/9816/{{ revealButtonHref }}
example_projects/wasm32_without_js/test_runtime.pyhttps://github.com/RustPython/RustPython/pull/9816/files#diff-e8d9630469b03d64596f45ac47a9b20f46fa4333049e2764393f83a3ce5b3e2f
View file https://github.com/youknowdot/RustPython/blob/d8b5490868bc4a13bf22da5f17c523fa198bd4bc/example_projects/wasm32_without_js/test_runtime.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/RustPython/RustPython/pull/9816/{{ revealButtonHref }}
example_projects/wasm32_without_js/wasm-runtime/Cargo.tomlhttps://github.com/RustPython/RustPython/pull/9816/files#diff-9637925062d545fec7127d2596c9382cd42e4cc4012ecd669e158550c422db73
View file https://github.com/youknowdot/RustPython/blob/d8b5490868bc4a13bf22da5f17c523fa198bd4bc/example_projects/wasm32_without_js/wasm-runtime/Cargo.toml
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/RustPython/RustPython/pull/9816/{{ revealButtonHref }}
https://github.com/RustPython/RustPython/pull/9816/files#diff-9637925062d545fec7127d2596c9382cd42e4cc4012ecd669e158550c422db73
Please reload this pagehttps://github.com/RustPython/RustPython/pull/9816/files
Please reload this pagehttps://github.com/RustPython/RustPython/pull/9816/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.