René's URL Explorer Experiment


Title: CPR-style worker/wrapper on results: constructed products as Lua multiple values by Unisay · Pull Request #280 · purescript-lua/purescript-lua · GitHub

Open Graph Title: CPR-style worker/wrapper on results: constructed products as Lua multiple values by Unisay · Pull Request #280 · purescript-lua/purescript-lua

X Title: CPR-style worker/wrapper on results: constructed products as Lua multiple values by Unisay · Pull Request #280 · purescript-lua/purescript-lua

Description: Purescript compiler back-end for Lua. Contribute to purescript-lua/purescript-lua development by creating an account on GitHub.

Open Graph Description: Closes #206. Problem A function whose every return path builds the same constructor allocates a table per call even when every caller immediately takes the result apart. A State-shaped step pays on...

X Description: Closes #206. Problem A function whose every return path builds the same constructor allocates a table per call even when every caller immediately takes the result apart. A State-shaped step pays on...

Opengraph URL: https://github.com/purescript-lua/purescript-lua/pull/280

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/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:0c1eeefc-af9f-5e71-bbf0-4d1597314c89
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idA274:1C6C3E:97F198:CAB1A7:6B00E431
html-safe-nonce8831a2c1debe493a895fa696836709a630482005fe763bfb44b97762ab326eca
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMjc0OjFDNkMzRTo5N0YxOTg6Q0FCMUE3OjZCMDBFNDMxIiwidmlzaXRvcl9pZCI6IjcxMjIwMzc1MjIxODc3NDAyMDkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac6cad61ebe3ff537835a3087f04776b3c3ed8f3f6bc1a235e5259cfc2c6babbdb
hovercard-subject-tagpull_request:4062293698
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///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/purescript-lua/purescript-lua/280/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/7fa6d2e7e794eb91dc847e738fd68127db96d1809d24cddd3d1b5ac84128bc7b/purescript-lua/purescript-lua/pull/280
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/7fa6d2e7e794eb91dc847e738fd68127db96d1809d24cddd3d1b5ac84128bc7b/purescript-lua/purescript-lua/pull/280
og:image:altCloses #206. Problem A function whose every return path builds the same constructor allocates a table per call even when every caller immediately takes the result apart. A State-shaped step pays on...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameUnisay
hostnamegithub.com
expected-hostnamegithub.com
None27088b6977484d0d3321d9a11c907c6d6637b315cfa359ef7952dbf6292f9b14
turbo-cache-controlno-cache
go-importgithub.com/purescript-lua/purescript-lua git https://github.com/purescript-lua/purescript-lua.git
octolytics-dimension-user_id131581790
octolytics-dimension-user_loginpurescript-lua
octolytics-dimension-repository_id587200487
octolytics-dimension-repository_nwopurescript-lua/purescript-lua
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id587200487
octolytics-dimension-repository_network_root_nwopurescript-lua/purescript-lua
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
release624179fb8b88d26ba5bba08894eb60a1c5a1d93d
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/purescript-lua/purescript-lua/pull/280#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpurescript-lua%2Fpurescript-lua%2Fpull%2F280
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%2Fpurescript-lua%2Fpurescript-lua%2Fpull%2F280
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%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=purescript-lua%2Fpurescript-lua
Reloadhttps://github.com/purescript-lua/purescript-lua/pull/280
Reloadhttps://github.com/purescript-lua/purescript-lua/pull/280
Reloadhttps://github.com/purescript-lua/purescript-lua/pull/280
purescript-luahttps://github.com/purescript-lua
purescript-luahttps://github.com/purescript-lua/purescript-lua
Codehttps://github.com/purescript-lua/purescript-lua
Issues48 (48)https://github.com/purescript-lua/purescript-lua/issues
Pull requestshttps://github.com/purescript-lua/purescript-lua/pulls
Discussionshttps://github.com/purescript-lua/purescript-lua/discussions
Actionshttps://github.com/purescript-lua/purescript-lua/actions
Projectshttps://github.com/purescript-lua/purescript-lua/projects
Security and qualityhttps://github.com/purescript-lua/purescript-lua/security
Insightshttps://github.com/purescript-lua/purescript-lua/insights
https://github.com/purescript-lua/purescript-lua
Unisayhttps://github.com/Unisay
mainhttps://github.com/purescript-lua/purescript-lua/tree/main
issue-206/cpr-result-worker-wrapperhttps://github.com/purescript-lua/purescript-lua/tree/issue-206/cpr-result-worker-wrapper
Conversationhttps://github.com/purescript-lua/purescript-lua/pull/280
Commits7 (7)https://github.com/purescript-lua/purescript-lua/pull/280/commits
Checkshttps://github.com/purescript-lua/purescript-lua/pull/280/checks
Files changedhttps://github.com/purescript-lua/purescript-lua/pull/280/files
CPR-style worker/wrapper on results: constructed products as Lua multiple valueshttps://github.com/purescript-lua/purescript-lua/pull/280#top
Unisayhttps://github.com/Unisay
mainhttps://github.com/purescript-lua/purescript-lua/tree/main
issue-206/cpr-result-worker-wrapperhttps://github.com/purescript-lua/purescript-lua/tree/issue-206/cpr-result-worker-wrapper
https://github.com/Unisay
Unisayhttps://github.com/Unisay
Jul 15, 2026https://github.com/purescript-lua/purescript-lua/pull/280#issue-4894661186
#206https://github.com/purescript-lua/purescript-lua/issues/206
#24https://github.com/purescript-lua/purescript-lua/issues/24
SpecConstr: specialize recursive functions on known-constructor call patterns #279https://github.com/purescript-lua/purescript-lua/pull/279
SpecConstr: specialize recursive functions on known-constructor call patterns #279https://github.com/purescript-lua/purescript-lua/pull/279
Please reload this pagehttps://github.com/purescript-lua/purescript-lua/pull/280
Unisayhttps://github.com/Unisay
July 15, 2026 18:19https://github.com/purescript-lua/purescript-lua/pull/280#commits-pushed-75651fb
https://github.com/Unisay
test(bench): add a static TNEW/TDUP censushttps://github.com/purescript-lua/purescript-lua/pull/280/commits/75651fb16796fbc36c3b10c566fb37c74cedea41
75651fbhttps://github.com/purescript-lua/purescript-lua/pull/280/commits/75651fb16796fbc36c3b10c566fb37c74cedea41
#206https://github.com/purescript-lua/purescript-lua/issues/206
https://github.com/Unisay
test(ps): pin per-step product allocation before the result split (https://github.com/purescript-lua/purescript-lua/pull/280/commits/2424d2d3457a602cd37b915643460dd77a88d16e
#206https://github.com/purescript-lua/purescript-lua/issues/206
)https://github.com/purescript-lua/purescript-lua/pull/280/commits/2424d2d3457a602cd37b915643460dd77a88d16e
2424d2dhttps://github.com/purescript-lua/purescript-lua/pull/280/commits/2424d2d3457a602cd37b915643460dd77a88d16e
https://github.com/Unisay
feat(ir): add Values/LetValues multi-value result nodes (https://github.com/purescript-lua/purescript-lua/pull/280/commits/59ce434fa995823474239fb31a991b8aa7987405
#206https://github.com/purescript-lua/purescript-lua/issues/206
)https://github.com/purescript-lua/purescript-lua/pull/280/commits/59ce434fa995823474239fb31a991b8aa7987405
59ce434https://github.com/purescript-lua/purescript-lua/pull/280/commits/59ce434fa995823474239fb31a991b8aa7987405
https://github.com/Unisay
feat(ir): CPR result worker/wrapper split (https://github.com/purescript-lua/purescript-lua/pull/280/commits/0e9fa1ff1f2c2c3dd139abb25ebb9227471c3b98
#206https://github.com/purescript-lua/purescript-lua/issues/206
)https://github.com/purescript-lua/purescript-lua/pull/280/commits/0e9fa1ff1f2c2c3dd139abb25ebb9227471c3b98
0e9fa1fhttps://github.com/purescript-lua/purescript-lua/pull/280/commits/0e9fa1ff1f2c2c3dd139abb25ebb9227471c3b98
https://github.com/Unisay
feat(optimizer): run the CPR split in the pipeline (https://github.com/purescript-lua/purescript-lua/pull/280/commits/cb14de38cc28a1337caf964a4401592961c52442
#206https://github.com/purescript-lua/purescript-lua/issues/206
)https://github.com/purescript-lua/purescript-lua/pull/280/commits/cb14de38cc28a1337caf964a4401592961c52442
cb14de3https://github.com/purescript-lua/purescript-lua/pull/280/commits/cb14de38cc28a1337caf964a4401592961c52442
https://github.com/Unisay
test(golden): accept the multi-value result shapes (https://github.com/purescript-lua/purescript-lua/pull/280/commits/0830589575ca5638df9c10d89b6c684225ac1384
#206https://github.com/purescript-lua/purescript-lua/issues/206
)https://github.com/purescript-lua/purescript-lua/pull/280/commits/0830589575ca5638df9c10d89b6c684225ac1384
0830589https://github.com/purescript-lua/purescript-lua/pull/280/commits/0830589575ca5638df9c10d89b6c684225ac1384
https://github.com/Unisay
Unisayhttps://github.com/Unisay
Copilothttps://github.com/apps/copilot-pull-request-reviewer
July 15, 2026 16:59https://github.com/purescript-lua/purescript-lua/pull/280#event-28028038998
https://github.com/Unisay
Unisayhttps://github.com/Unisay
Jul 15, 2026https://github.com/purescript-lua/purescript-lua/pull/280#event-28028039949
https://github.com/Unisay
Unisayhttps://github.com/Unisay
July 15, 2026 16:59https://github.com/purescript-lua/purescript-lua/pull/280#event-28028042605
started reviewinghttps://github.com/purescript-lua/purescript-lua/sessions/7f2b9c14-eccf-4002-a8cf-ca66ae72ad29
Unisayhttps://github.com/Unisay
July 15, 2026 16:59https://github.com/purescript-lua/purescript-lua/pull/280#event-28028060683
View session https://github.com/purescript-lua/purescript-lua/sessions/7f2b9c14-eccf-4002-a8cf-ca66ae72ad29
https://github.com/apps/copilot-pull-request-reviewer
Copilothttps://github.com/apps/copilot-pull-request-reviewer
Jul 15, 2026 https://github.com/purescript-lua/purescript-lua/pull/280#pullrequestreview-4706450271
View reviewed changes https://github.com/purescript-lua/purescript-lua/pull/280/files/0830589575ca5638df9c10d89b6c684225ac1384
Copilothttps://github.com/apps/copilot-pull-request-reviewer
https://github.com/purescript-lua/purescript-lua/pull/280#pullrequestreview-4706450271
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/purescript-lua/purescript-lua/pull/280
test/ps/src/Golden/CprState/Test.purshttps://github.com/purescript-lua/purescript-lua/pull/280/files/0830589575ca5638df9c10d89b6c684225ac1384#diff-d0cdbb20bd943f1ef2bc30dd2991b766d7f25c3606af303d72d5c3aa6212f3af
Please reload this pagehttps://github.com/purescript-lua/purescript-lua/pull/280
https://github.com/Unisay
test(ps): address copilot review on PRhttps://github.com/purescript-lua/purescript-lua/pull/280/commits/7aa3887fbb760f40ded9fa0419fca12e8c498495
#280https://github.com/purescript-lua/purescript-lua/pull/280
7aa3887https://github.com/purescript-lua/purescript-lua/pull/280/commits/7aa3887fbb760f40ded9fa0419fca12e8c498495
#280 (comment)https://github.com/purescript-lua/purescript-lua/pull/280#discussion_r3589283345
https://github.com/Unisay
Unisayhttps://github.com/Unisay
f3ca78ahttps://github.com/purescript-lua/purescript-lua/commit/f3ca78a5024e6b2b0320454261115b6489d2d4a7
Jul 16, 2026https://github.com/purescript-lua/purescript-lua/pull/280#event-28060836400
Please reload this pagehttps://github.com/purescript-lua/purescript-lua/pull/280
https://github.com/Unisay
Unisayhttps://github.com/Unisay
July 16, 2026 09:16https://github.com/purescript-lua/purescript-lua/pull/280#event-28060837839
https://github.co/hiddenchars
https://github.com/purescript-lua/purescript-lua/pull/{{ revealButtonHref }}
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpurescript-lua%2Fpurescript-lua%2Fpull%2F280
Copilot code review https://github.com/apps/copilot-pull-request-reviewer
Copilot https://github.com/apps/copilot-pull-request-reviewer
Learn more about Copilot code review.https://gh.io/copilot-code-review-docs
https://github.com/purescript-lua/purescript-lua/pull/280/files/0830589575ca5638df9c10d89b6c684225ac1384
Please reload this pagehttps://github.com/purescript-lua/purescript-lua/pull/280
https://github.com/Unisay
Unisay https://github.com/Unisay
CPR-style worker/wrapper on results: return constructed products as Lua multiple values https://github.com/purescript-lua/purescript-lua/issues/206
Please reload this pagehttps://github.com/purescript-lua/purescript-lua/pull/280
https://github.com/Unisay
https://github.com/apps/copilot-pull-request-reviewer
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.