| react-profiling | 0 |
| react-import-map | react,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-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:1b4b3f65-454d-739b-f558-2b3e823b9bcc |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | A102:1087D4:A4E644:DD3F1D:6B00EFA4 |
| html-safe-nonce | 7dc4dc3f36f4a3aedf4b30d687cc96f50108a738f88f4a5dbdd47fd61c5b7cda |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMTAyOjEwODdENDpBNEU2NDQ6REQzRjFEOjZCMDBFRkE0IiwidmlzaXRvcl9pZCI6IjQ1MjUyNzQ3OTU4MDUzMDY3ODgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 0e4a58307d43ffdbfa351850cd029086f24dd065aba905a10388c9f9b6a8c14e |
| hovercard-subject-tag | pull_request:4037013971 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | ///pull_requests/show/files |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/purescript-lua/purescript-lua/pull/244/files |
| twitter:image | https://avatars.githubusercontent.com/u/1009751?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/1009751?s=400&v=4 |
| og:image:alt | Closes #231.
What
Two small analysis lattices sharpen the shared inlining guard:
Complexity = Trivial < Deref < KnownSize < NonTrivial (complexityOf, a bottom-up classifier next to expSiz... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4ef498cbabcbe3c50befc7a5b743e7072ee770b4daf0e15e54801180d1fa91fc |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/purescript-lua/purescript-lua git https://github.com/purescript-lua/purescript-lua.git |
| octolytics-dimension-user_id | 131581790 |
| octolytics-dimension-user_login | purescript-lua |
| octolytics-dimension-repository_id | 587200487 |
| octolytics-dimension-repository_nwo | purescript-lua/purescript-lua |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 587200487 |
| octolytics-dimension-repository_network_root_nwo | purescript-lua/purescript-lua |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 9983dd5da06943f833c971dd5b6bc988e2858be5 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/purescript-lua/purescript-lua/pull/244/files#start-of-content |
| https://github.com/ |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpurescript-lua%2Fpurescript-lua%2Fpull%2F244%2Ffiles |
| GitHubRepository hosting, code review, and collaboration | https://github.com/platform |
| CopilotAI coding agent for tasks, projects, and automated work | https://github.com/features/copilot |
| ActionsCI/CD and automation | https://github.com/features/actions |
| Code QualityQuality analysis, fixes, and enforcement | https://github.com/features/code-quality |
| CodespacesCloud development environments | https://github.com/features/codespaces |
| Code SecurityVulnerability detection and remediation | https://github.com/security/advanced-security/code-security |
| Secret ProtectionSecret scanning and leak prevention | https://github.com/security/advanced-security/secret-protection |
| All Features | https://github.com/features |
| Documentation | https://docs.github.com/en |
| Training | https://learn.github.com/skills |
| Certifications | https://learn.github.com/credentials |
| Build with Copilot | https://github.com/features/ai |
| Customize Copilot | https://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview |
| Integrations | https://github.com/marketplace |
| Trending repos | https://github.com/trending |
| GitHub Sponsors | https://github.com/open-source/sponsors |
| Developer articles | https://github.com/resources/articles |
| ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place. | https://github.blog/changelog/ |
| Enterprises | https://github.com/enterprise |
| Team | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| See all industries | https://github.com/solutions/industry |
| Why GitHub | https://github.com/why-github |
| Customer Stories | https://github.com/customer-stories |
| Business insights | https://github.com/solutions/executive-insights |
| Trust Center | https://github.com/trust-center |
| GitHub Advanced SecurityEnterprise-grade code security | https://github.com/security/advanced-security |
| Copilot for businessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/enterprise/premium-support |
| Documentation | https://docs.github.com/en |
| Resource center | https://github.com/resources |
| Blog | https://github.blog/ |
| Events & webinars | https://github.com/resources/events |
| Community Forum | https://github.com/orgs/community/discussions |
| Customer Stories | https://github.com/customer-stories |
| Integrations | https://github.com/marketplace |
| Customer support | https://help.github.com/ |
| Training | https://learn.github.com/skills |
| GitHub Status | https://www.githubstatus.com/ |
| About | https://github.com/about |
| Partners | https://github.com/partners |
| Changelog | https://github.blog/changelog/ |
| GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub. | https://githubuniverse.com/ |
| Pricing | https://github.com/pricing |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpurescript-lua%2Fpurescript-lua%2Fpull%2F244%2Ffiles |
| Sign up | https://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=purescript-lua%2Fpurescript-lua |
| Reload | https://github.com/purescript-lua/purescript-lua/pull/244/files |
| Reload | https://github.com/purescript-lua/purescript-lua/pull/244/files |
| Reload | https://github.com/purescript-lua/purescript-lua/pull/244/files |
| purescript-lua | https://github.com/purescript-lua |
| purescript-lua | https://github.com/purescript-lua/purescript-lua |
| Code | https://github.com/purescript-lua/purescript-lua |
| Issues48 (48) | https://github.com/purescript-lua/purescript-lua/issues |
| Pull requests | https://github.com/purescript-lua/purescript-lua/pulls |
| Discussions | https://github.com/purescript-lua/purescript-lua/discussions |
| Actions | https://github.com/purescript-lua/purescript-lua/actions |
| Projects | https://github.com/purescript-lua/purescript-lua/projects |
| Security and quality | https://github.com/purescript-lua/purescript-lua/security |
| Insights | https://github.com/purescript-lua/purescript-lua/insights |
| Sign up for GitHub
| https://github.com/signup?return_to=%2Fpurescript-lua%2Fpurescript-lua%2Fissues%2Fnew%2Fchoose |
| terms of service | https://docs.github.com/terms |
| privacy statement | https://docs.github.com/privacy |
| Sign in | https://github.com/login?return_to=%2Fpurescript-lua%2Fpurescript-lua%2Fissues%2Fnew%2Fchoose |
| Unisay | https://github.com/Unisay |
| main | https://github.com/purescript-lua/purescript-lua/tree/main |
| issue-231/complexity-capture-lattice | https://github.com/purescript-lua/purescript-lua/tree/issue-231/complexity-capture-lattice |
|
Conversation
1
| https://github.com/purescript-lua/purescript-lua/pull/244 |
|
Commits
4
| https://github.com/purescript-lua/purescript-lua/pull/244/commits |
|
Checks
2
| https://github.com/purescript-lua/purescript-lua/pull/244/checks |
|
Files changed
| https://github.com/purescript-lua/purescript-lua/pull/244/files |
| Please reload this page | https://github.com/purescript-lua/purescript-lua/pull/244/files |
|
feat(optimizer): gate inlining with Complexity/Capture lattices
| https://github.com/purescript-lua/purescript-lua/pull/244/files#top |
|
Show all changes
4 commits
| https://github.com/purescript-lua/purescript-lua/pull/244/files |
|
2207b71
test(optimizer): specs for the Complexity/Capture inlining gates (#231)
Unisay Jul 11, 2026
| https://github.com/purescript-lua/purescript-lua/pull/244/commits/2207b714b68c287acc9bf1040e5a6081a3938af5 |
|
97368f0
feat(optimizer): gate inlining with Complexity/Capture lattices (#231)
Unisay Jul 12, 2026
| https://github.com/purescript-lua/purescript-lua/pull/244/commits/97368f0adf252d157d978e4bbd7196a03673031d |
|
2d0079f
test(golden): accept structural churn from the Complexity/Capture gat…
Unisay Jul 11, 2026
| https://github.com/purescript-lua/purescript-lua/pull/244/commits/2d0079fc0bb866086944cf93efe65e80a69f5861 |
|
ed79493
docs(magic-do): state the transformation generically in the module he…
Unisay Jul 12, 2026
| https://github.com/purescript-lua/purescript-lua/pull/244/commits/ed794936f2f1be53fa5d77117de7b2e156086946 |
|
Clear filters
| https://github.com/purescript-lua/purescript-lua/pull/244/files |
| Please reload this page | https://github.com/purescript-lua/purescript-lua/pull/244/files |
| Please reload this page | https://github.com/purescript-lua/purescript-lua/pull/244/files |
|
20260712_090000_unisay_complexity_capture_inlining.md
| https://github.com/purescript-lua/purescript-lua/pull/244/files#diff-045c85c8e50eecd2a41840a63eca69220b670bb89347fad52b638ec84dfe417d |
|
MagicDo.hs
| https://github.com/purescript-lua/purescript-lua/pull/244/files#diff-328cbd548cb26793eb748fd65aeac8ad258513e2b55db04b4d1aefc7477ea06f |
|
Optimizer.hs
| https://github.com/purescript-lua/purescript-lua/pull/244/files#diff-487ead9d0ca9c3e6f68e23c604b0ae9070089e0dd0f7d214cdce5fbc878f3315 |
|
Types.hs
| https://github.com/purescript-lua/purescript-lua/pull/244/files#diff-c628fb950daac01f47dc80a039e24b8b452f9d578ab0d55483d10758027b4884 |
|
Spec.hs
| https://github.com/purescript-lua/purescript-lua/pull/244/files#diff-241ea2421c606c31b9414fb386f9f4d1beb60055ed792935b393101edfd7b949 |
|
golden.ir
| https://github.com/purescript-lua/purescript-lua/pull/244/files#diff-a50730a65be2dd43fb54fcc7256daba19c0f0d185fa91ae70fd74eb6dc88babb |
|
golden.lua
| https://github.com/purescript-lua/purescript-lua/pull/244/files#diff-f09de2d9591e7ed04c015cf5105c29cef2be557187d5d7b8ca203b70d4f11bfc |
|
golden.ir
| https://github.com/purescript-lua/purescript-lua/pull/244/files#diff-8529207f5726b1c4ce856b7d81dadbbbdc4b244d37e96f40d897c3acc69290b8 |
|
golden.lua
| https://github.com/purescript-lua/purescript-lua/pull/244/files#diff-0c90c2d7623d39f887ed98803e0198ce7532cb955c04690d5c518a02bb16d0e1 |
|
golden.ir
| https://github.com/purescript-lua/purescript-lua/pull/244/files#diff-40d54b27f028b6066bcec746327a3f0a128053c75819d4019f03cfcc0fce015f |
|
golden.lua
| https://github.com/purescript-lua/purescript-lua/pull/244/files#diff-a3c17d21777b8fc58fbba68eb74a46fb303e60a17d8524ca2674479e0ebf7eb9 |
|
golden.ir
| https://github.com/purescript-lua/purescript-lua/pull/244/files#diff-d3c70e506ea822ff99389c6a4e383878df25de8723c47a01e91e7dc5792501dc |
|
golden.lua
| https://github.com/purescript-lua/purescript-lua/pull/244/files#diff-596c7cb04898e2e110885627fbe42de08e09aa38b253a73bf3a99c9cedfa6bec |
|
golden.ir
| https://github.com/purescript-lua/purescript-lua/pull/244/files#diff-214ade9cc7aa9bbbaeb07927c013dfa7eeb9f9e2f12ed14f5d31fc98a446bd13 |
|
golden.lua
| https://github.com/purescript-lua/purescript-lua/pull/244/files#diff-67e4dcf4711ce34fdb0ed8a2c23c4b638cf54c282818689a85be15ec720ace60 |
|
golden.ir
| https://github.com/purescript-lua/purescript-lua/pull/244/files#diff-c87daf3e43a53dd52fa264f09901b86021b6ee624f9da16bea90707758b8abfe |
|
golden.lua
| https://github.com/purescript-lua/purescript-lua/pull/244/files#diff-7a0f829c8097adffc9b5bff2f03fd5a9a7d69ed4d2e1719bd21e8c484253266d |
|
golden.ir
| https://github.com/purescript-lua/purescript-lua/pull/244/files#diff-df535e1f7273af0cc86db20df55495de4552000d7bf2f3abb21f421d07947914 |
|
golden.lua
| https://github.com/purescript-lua/purescript-lua/pull/244/files#diff-8f846c962c84e2efb0046e7848c15b3bac3e044be37a2d2ee0620f823f2e9b0f |
|
golden.ir
| https://github.com/purescript-lua/purescript-lua/pull/244/files#diff-943a6e999776e2a06a4d4209af7f89e9a8d977d6000c31c70ed84e781da2e2ff |
|
golden.lua
| https://github.com/purescript-lua/purescript-lua/pull/244/files#diff-56618fb442d7b6de74d0159576d795d225986345ac7840c4a3a8a3831cb98ad3 |
|
golden.ir
| https://github.com/purescript-lua/purescript-lua/pull/244/files#diff-9f1799ede16b2de76bbd9ce943935d297b0b2196125598eee26cc4313177c6b4 |
|
golden.lua
| https://github.com/purescript-lua/purescript-lua/pull/244/files#diff-5921e666a0348af0dd78380b07fead46422cafb2d7dadb38988ae54c01af9164 |
|
golden.ir
| https://github.com/purescript-lua/purescript-lua/pull/244/files#diff-61f79094c925f1c00df559521926a985640236fe532d9ccec94b9893442659e3 |
|
golden.lua
| https://github.com/purescript-lua/purescript-lua/pull/244/files#diff-12b1d0aa4433bf963d1b2b3685ea3ec7726991cd5b797cdb7c8ce480aa7d24dd |
| changelog.d/20260712_090000_unisay_complexity_capture_inlining.md | https://github.com/purescript-lua/purescript-lua/pull/244/files#diff-045c85c8e50eecd2a41840a63eca69220b670bb89347fad52b638ec84dfe417d |
|
View file
| https://github.com/purescript-lua/purescript-lua/blob/ed794936f2f1be53fa5d77117de7b2e156086946/changelog.d/20260712_090000_unisay_complexity_capture_inlining.md |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/purescript-lua/purescript-lua/pull/244/{{ revealButtonHref }} |
| lib/Language/PureScript/Backend/IR/MagicDo.hs | https://github.com/purescript-lua/purescript-lua/pull/244/files#diff-328cbd548cb26793eb748fd65aeac8ad258513e2b55db04b4d1aefc7477ea06f |
|
View file
| https://github.com/purescript-lua/purescript-lua/blob/ed794936f2f1be53fa5d77117de7b2e156086946/lib/Language/PureScript/Backend/IR/MagicDo.hs |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/purescript-lua/purescript-lua/pull/244/{{ revealButtonHref }} |
|
| https://github.com/purescript-lua/purescript-lua/pull/244/files#diff-328cbd548cb26793eb748fd65aeac8ad258513e2b55db04b4d1aefc7477ea06f |
|
| https://github.com/purescript-lua/purescript-lua/pull/244/files#diff-328cbd548cb26793eb748fd65aeac8ad258513e2b55db04b4d1aefc7477ea06f |
| lib/Language/PureScript/Backend/IR/Optimizer.hs | https://github.com/purescript-lua/purescript-lua/pull/244/files#diff-487ead9d0ca9c3e6f68e23c604b0ae9070089e0dd0f7d214cdce5fbc878f3315 |
|
View file
| https://github.com/purescript-lua/purescript-lua/blob/ed794936f2f1be53fa5d77117de7b2e156086946/lib/Language/PureScript/Backend/IR/Optimizer.hs |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/purescript-lua/purescript-lua/pull/244/{{ revealButtonHref }} |
|
| https://github.com/purescript-lua/purescript-lua/pull/244/files#diff-487ead9d0ca9c3e6f68e23c604b0ae9070089e0dd0f7d214cdce5fbc878f3315 |
|
| https://github.com/purescript-lua/purescript-lua/pull/244/files#diff-487ead9d0ca9c3e6f68e23c604b0ae9070089e0dd0f7d214cdce5fbc878f3315 |
|
| https://github.com/purescript-lua/purescript-lua/pull/244/files#diff-487ead9d0ca9c3e6f68e23c604b0ae9070089e0dd0f7d214cdce5fbc878f3315 |
|
| https://github.com/purescript-lua/purescript-lua/pull/244/files#diff-487ead9d0ca9c3e6f68e23c604b0ae9070089e0dd0f7d214cdce5fbc878f3315 |
|
| https://github.com/purescript-lua/purescript-lua/pull/244/files#diff-487ead9d0ca9c3e6f68e23c604b0ae9070089e0dd0f7d214cdce5fbc878f3315 |
|
| https://github.com/purescript-lua/purescript-lua/pull/244/files#diff-487ead9d0ca9c3e6f68e23c604b0ae9070089e0dd0f7d214cdce5fbc878f3315 |
|
| https://github.com/purescript-lua/purescript-lua/pull/244/files#diff-487ead9d0ca9c3e6f68e23c604b0ae9070089e0dd0f7d214cdce5fbc878f3315 |
|
| https://github.com/purescript-lua/purescript-lua/pull/244/files#diff-487ead9d0ca9c3e6f68e23c604b0ae9070089e0dd0f7d214cdce5fbc878f3315 |
|
| https://github.com/purescript-lua/purescript-lua/pull/244/files#diff-487ead9d0ca9c3e6f68e23c604b0ae9070089e0dd0f7d214cdce5fbc878f3315 |
|
| https://github.com/purescript-lua/purescript-lua/pull/244/files#diff-487ead9d0ca9c3e6f68e23c604b0ae9070089e0dd0f7d214cdce5fbc878f3315 |
|
| https://github.com/purescript-lua/purescript-lua/pull/244/files#diff-487ead9d0ca9c3e6f68e23c604b0ae9070089e0dd0f7d214cdce5fbc878f3315 |
|
| https://github.com/purescript-lua/purescript-lua/pull/244/files#diff-487ead9d0ca9c3e6f68e23c604b0ae9070089e0dd0f7d214cdce5fbc878f3315 |
|
| https://github.com/purescript-lua/purescript-lua/pull/244/files#diff-487ead9d0ca9c3e6f68e23c604b0ae9070089e0dd0f7d214cdce5fbc878f3315 |
| lib/Language/PureScript/Backend/IR/Types.hs | https://github.com/purescript-lua/purescript-lua/pull/244/files#diff-c628fb950daac01f47dc80a039e24b8b452f9d578ab0d55483d10758027b4884 |
|
View file
| https://github.com/purescript-lua/purescript-lua/blob/ed794936f2f1be53fa5d77117de7b2e156086946/lib/Language/PureScript/Backend/IR/Types.hs |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/purescript-lua/purescript-lua/pull/244/{{ revealButtonHref }} |
|
| https://github.com/purescript-lua/purescript-lua/pull/244/files#diff-c628fb950daac01f47dc80a039e24b8b452f9d578ab0d55483d10758027b4884 |
|
| https://github.com/purescript-lua/purescript-lua/pull/244/files#diff-c628fb950daac01f47dc80a039e24b8b452f9d578ab0d55483d10758027b4884 |
| Please reload this page | https://github.com/purescript-lua/purescript-lua/pull/244/files |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |