René's URL Explorer Experiment


Title: Refresh embedded RapydScript-NG (0.7.22 → upstream 0.8.7+) · Issue #217 · vpython/glowscript · GitHub

Open Graph Title: Refresh embedded RapydScript-NG (0.7.22 → upstream 0.8.7+) · Issue #217 · vpython/glowscript

X Title: Refresh embedded RapydScript-NG (0.7.22 → upstream 0.8.7+) · Issue #217 · vpython/glowscript

Description: GlowScript embeds RapydScript-NG 0.7.22. The build's rs_commit_sha is 6dc47bb, which isn't in upstream's history, so it was probably built from a fork. Upstream (kovidgoyal/rapydscript-ng) is at 0.8.7, and since then has merged: 30626e5 ...

Open Graph Description: GlowScript embeds RapydScript-NG 0.7.22. The build's rs_commit_sha is 6dc47bb, which isn't in upstream's history, so it was probably built from a fork. Upstream (kovidgoyal/rapydscript-ng) is at 0....

X Description: GlowScript embeds RapydScript-NG 0.7.22. The build's rs_commit_sha is 6dc47bb, which isn't in upstream's history, so it was probably built from a fork. Upstream (kovidgoyal/rapydscript-...

Opengraph URL: https://github.com/vpython/glowscript/issues/217

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Refresh embedded RapydScript-NG (0.7.22 → upstream 0.8.7+)","articleBody":"GlowScript embeds RapydScript-NG **0.7.22**. The build's `rs_commit_sha` is `6dc47bb`, which isn't in upstream's history, so it was probably built from a fork. Upstream (kovidgoyal/rapydscript-ng) is at **0.8.7**, and since then has merged:\n\n- `30626e5` (#193): randint fixed for negative ranges. We carry this as #215 / `b8a6fa1`.\n- `165020b`: randint now raises `TypeError` for non-integers and `ValueError` when `b \u003c a`, as Python does.\n- `67b56d2`: `randrange()` fixed for ranges larger than 2**31. **We still have this bug.**\n\nThis issue tracks refreshing to current upstream instead of patching one function at a time.\n\n## Who consumes this compiler\n\nThree deployments, two copies:\n\n| Site | Compiler copy | Notes |\n|---|---|---|\n| glowscript.org | `lib/rapydscript/compiler.js` + `package/RScompiler.3.2.min.js` here | also `GlowScriptOffline/` |\n| webvpython.org | vpython/rsWVPRunner (`gs://rswvprunner`) | flaskHost sends every non-`wasm` program to this runner |\n| trinket (Web VPython 3.2.3) | the same rsWVPRunner build | sha256-pinned in trinket's Dockerfile (`RSCOMPILER_SHA256`, `GLOWSCRIPT_PACKAGE_BUILD`) |\n\nrsWVPRunner's `lib/rapydscript/compiler.js` and `lib/compiling/GScompiler.js` are byte-identical to the copies here, so a refresh lands here first and then gets copied over. After that: rebuild rsWVPRunner's package, redeploy, and update trinket's pins (a picup PR).\n\n## What a refresh involves\n\nThe procedure is in the build notes in `lib/compiling/GScompiler.js`. Upstream builds don't include GlowScript's own changes, so each has to be reapplied:\n\n- `vec == vec` / `vec != vec` in `ρσ_equals` / `ρσ_not_equals` (compiler.js ×2 each, runtime.js ×1 each)\n- `.pop` → `.pypop` renames (GScompiler.js rewrites user `.pop` calls)\n- the randrange replacement (possibly obsolete now that upstream has it)\n- anything else carried in the 0.7.22 build that isn't in those notes. Diffing our compiler.js against a clean upstream 0.7.22 build will show this, and that diff should be done first.\n\n## Decisions to make\n\n1. **randint and randrange raising errors.** Matching Python means `randint(0, n/2)` with an odd `n` raises an error where it used to return a value silently. That's more correct, but it can break existing student programs. Options: take it as is, take it with a deprecation period, or keep our one-line version.\n2. **0.7 → 0.8 changes in general.** Review upstream's changelog between 0.7.22 and 0.8.7 for language and runtime changes that affect VPython programs.\n\n## Testing plan\n\n- Compile and run the Demos (and `GlowScriptOffline/Demos`) with the old and new compilers, and compare output and errors.\n- Run randint/randrange histograms over negative, mixed-sign, single-value and > 2**31 ranges. The harness used for #215 drives GlowScriptOffline with Playwright.\n- Before glowscript.org, test on rsWVPRunner with a webvpython.org staging host and on trinket's two trials.\n\nUntil the refresh is done, we could port the randrange > 2**31 fix (`67b56d2`) the same way #215 ported randint.\n\n🤖 Generated with [Claude Code](https://claude.com/claude-code)\n","author":{"url":"https://github.com/sspickle","@type":"Person","name":"sspickle"},"datePublished":"2026-10-31T11:45:22Z","url":"https://github.com/vpython/glowscript/issues/217"}

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/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:17019b1d-f436-0ed5-0990-0ac29a5bf07c
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idA4E6:A4C06:5840AD:7B9449:6B0077BC
html-safe-nonce53175f792a3c59ca6feac4e109d20c2c6bc0028562a885cdd59508395d84e76b
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNEU2OkE0QzA2OjU4NDBBRDo3Qjk0NDk6NkIwMDc3QkMiLCJ2aXNpdG9yX2lkIjoiMjgxODQ2MjMxMTgzOTQ3NzA4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacaa64739e4f0d7e07cf107e61a01c8a2c54651dac9ecc706e683aee5b93795951
hovercard-subject-tagissue:6134420575
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/vpython/glowscript/217/issue_layout
twitter:imagehttps://opengraph.githubassets.com/e9e8bcf509d80bce3f68f0ae7a4ea6e7c46382454a4688c76e8676d2933adc7f/vpython/glowscript/issues/217
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/e9e8bcf509d80bce3f68f0ae7a4ea6e7c46382454a4688c76e8676d2933adc7f/vpython/glowscript/issues/217
og:image:altGlowScript embeds RapydScript-NG 0.7.22. The build's rs_commit_sha is 6dc47bb, which isn't in upstream's history, so it was probably built from a fork. Upstream (kovidgoyal/rapydscript-ng) is at 0....
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamesspickle
hostnamegithub.com
expected-hostnamegithub.com
None75c2b65dd205f26961d0c29afed1a8d0bb7cca9f05780571dfd1ef93eb539d16
turbo-cache-controlno-preview
go-importgithub.com/vpython/glowscript git https://github.com/vpython/glowscript.git
octolytics-dimension-user_id1280757
octolytics-dimension-user_loginvpython
octolytics-dimension-repository_id187905631
octolytics-dimension-repository_nwovpython/glowscript
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id187905631
octolytics-dimension-repository_network_root_nwovpython/glowscript
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release84e563eb4b55f8fa102f325f117533cee9e3df4a
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/vpython/glowscript/issues/217#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fvpython%2Fglowscript%2Fissues%2F217
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%2Fvpython%2Fglowscript%2Fissues%2F217
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=vpython%2Fglowscript
Reloadhttps://github.com/vpython/glowscript/issues/217
Reloadhttps://github.com/vpython/glowscript/issues/217
Reloadhttps://github.com/vpython/glowscript/issues/217
vpythonhttps://github.com/vpython
glowscripthttps://github.com/vpython/glowscript
Codehttps://github.com/vpython/glowscript
Issues9 (9)https://github.com/vpython/glowscript/issues
Pull requests2 (2)https://github.com/vpython/glowscript/pulls
Actionshttps://github.com/vpython/glowscript/actions
Projectshttps://github.com/vpython/glowscript/projects
Security and qualityhttps://github.com/vpython/glowscript/security
Insightshttps://github.com/vpython/glowscript/insights
https://github.com/vpython/glowscript
New issuehttps://github.com/login?return_to=https://github.com/vpython/glowscript/issues/217
New issuehttps://github.com/login?return_to=https://github.com/vpython/glowscript/issues/217
Refresh embedded RapydScript-NG (0.7.22 → upstream 0.8.7+)https://github.com/vpython/glowscript/issues/217#top
https://github.com/sspickle
sspicklehttps://github.com/sspickle
on Oct 31, 2026https://github.com/vpython/glowscript/issues/217#issue-6134420575
Bump jinja2 from 3.1.2 to 3.1.6 #193https://github.com/vpython/glowscript/pull/193
Fix random.randint() with negative numbers #215https://github.com/vpython/glowscript/pull/215
Fix random.randint() with negative numbers #215https://github.com/vpython/glowscript/pull/215
#215https://github.com/vpython/glowscript/pull/215
Claude Codehttps://claude.com/claude-code
https://github.com/sspickle
sspicklehttps://github.com/sspickle
on Nov 1, 2026https://github.com/vpython/glowscript/issues/217#issuecomment-6562051045
#170https://github.com/vpython/glowscript/issues/170
#223https://github.com/vpython/glowscript/pull/223
#223https://github.com/vpython/glowscript/pull/223
#223https://github.com/vpython/glowscript/pull/223
#223https://github.com/vpython/glowscript/pull/223
Claude Codehttps://claude.com/claude-code
Sign up for freehttps://github.com/signup?return_to=https://github.com/vpython/glowscript/issues/217
Sign in to commenthttps://github.com/login?return_to=https://github.com/vpython/glowscript/issues/217
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.