René's URL Explorer Experiment


Title: docs: Notes for decision-tree case compilation and Linker foreign bindings (#44) by Unisay · Pull Request #125 · purescript-lua/purescript-lua · GitHub

Open Graph Title: docs: Notes for decision-tree case compilation and Linker foreign bindings (#44) by Unisay · Pull Request #125 · purescript-lua/purescript-lua

X Title: docs: Notes for decision-tree case compilation and Linker foreign bindings (#44) by Unisay · Pull Request #125 · purescript-lua/purescript-lua

Description: Summary Continues #44, the second batch. Two more High-priority subsystems get a GHC-style Note, with See Note backlinks from the sites that depend on them. Comments only, so generated code, goldens, and eval oracles are unchanged. Note [Compiling case expressions to decision trees] in Backend.IR. The case-compilation section had only a banner and a link to the Jacobs paper, yet it spans seven functions and four types. The Note lays out the data (Match, CaseClause, MatchHistory) and the pipeline (mkBinder, prepareBindings, mkCaseClauses), and folds in the two related Medium items the issue suggested: binding each scrutinee once and pruning constructor tests through the match history. Cited from matchChosenByHeuristic and the MatchHistory type. Note [Foreign bindings structure emitted by the Linker] in IR.Linker. The Linker lowers a module's FFI into a fixed pair of shapes: one ForeignImport bound to the special foreign name, and one Inline.Always ObjectProp per foreign name. The IR dead-code pass matches those shapes by structure, so the contract was load-bearing but documented only on the consumer side. Cited from the two consumer sites in IR.DCE. Checklist Added a changelog.d/ fragment for any user-facing change (scriv create in the dev shell), or this change ships nothing releasable (CI, docs, or an internal refactor). In the dev shell (nix develop), fourmolu -i lib/ exe/ test/ and hlint lib/ exe/ test/ are clean. In the dev shell, cabal test all passes; structural goldens were re-accepted on purpose if codegen moved (PSLUA_GOLDEN_ACCEPT=1), and eval/golden.txt still holds.

Open Graph Description: Summary Continues #44, the second batch. Two more High-priority subsystems get a GHC-style Note, with See Note backlinks from the sites that depend on them. Comments only, so generated code, golden...

X Description: Summary Continues #44, the second batch. Two more High-priority subsystems get a GHC-style Note, with See Note backlinks from the sites that depend on them. Comments only, so generated code, golden...

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

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:e3a7e783-e777-e6f3-bef0-3e063d9156de
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idD8BA:2E3FEE:C552F1:FB2E0B:6B00FD9C
html-safe-nonce8359c21e9797c834444f1dee5e077460e62f4bb0e73e69539b0b5ae890432773
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEOEJBOjJFM0ZFRTpDNTUyRjE6RkIyRTBCOjZCMDBGRDlDIiwidmlzaXRvcl9pZCI6IjMyMTY5NTcxMjI0MTE1NjAzNDgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacd1f358fecc12f8f37e2b91a9341165c510f1b6b77d32876c7c311b5c451cb0c2
hovercard-subject-tagpull_request:3934783237
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/purescript-lua/purescript-lua/pull/125/files
twitter:imagehttps://avatars.githubusercontent.com/u/1009751?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/1009751?s=400&v=4
og:image:altSummary Continues #44, the second batch. Two more High-priority subsystems get a GHC-style Note, with See Note backlinks from the sites that depend on them. Comments only, so generated code, golden...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Nonee208d86428ec00a57ade75058166297440e8128a01e5287c31a53dc042bbf187
turbo-cache-controlno-preview
diff-viewunified
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 full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release7dafd017fb7809a839c443dba08622af38e63c09
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/purescript-lua/purescript-lua/pull/125/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpurescript-lua%2Fpurescript-lua%2Fpull%2F125%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%2Fpurescript-lua%2Fpurescript-lua%2Fpull%2F125%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=purescript-lua%2Fpurescript-lua
Reloadhttps://github.com/purescript-lua/purescript-lua/pull/125/files
Reloadhttps://github.com/purescript-lua/purescript-lua/pull/125/files
Reloadhttps://github.com/purescript-lua/purescript-lua/pull/125/files
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
Sign up for GitHub https://github.com/signup?return_to=%2Fpurescript-lua%2Fpurescript-lua%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fpurescript-lua%2Fpurescript-lua%2Fissues%2Fnew%2Fchoose
Unisayhttps://github.com/Unisay
mainhttps://github.com/purescript-lua/purescript-lua/tree/main
issue-44/notes-decision-tree-linkerhttps://github.com/purescript-lua/purescript-lua/tree/issue-44/notes-decision-tree-linker
Conversation 9 https://github.com/purescript-lua/purescript-lua/pull/125
Commits 2 https://github.com/purescript-lua/purescript-lua/pull/125/commits
Checks 2 https://github.com/purescript-lua/purescript-lua/pull/125/checks
Files changed https://github.com/purescript-lua/purescript-lua/pull/125/files
Please reload this pagehttps://github.com/purescript-lua/purescript-lua/pull/125/files
docs: Notes for decision-tree case compilation and Linker foreign bindings (#44) https://github.com/purescript-lua/purescript-lua/pull/125/files#top
Show all changes 2 commits https://github.com/purescript-lua/purescript-lua/pull/125/files
3c7c20d docs: Notes for decision-tree case compilation and Linker foreign bin… Unisay Jun 25, 2026 https://github.com/purescript-lua/purescript-lua/pull/125/commits/3c7c20d8721580eb39d52c842013e1de8eea803a
360ea39 docs: address Copilot review on #125 (accuracy of the Notes) Unisay Jun 25, 2026 https://github.com/purescript-lua/purescript-lua/pull/125/commits/360ea39b2f9749dc8fc41679cd5d96388db408d5
Clear filters https://github.com/purescript-lua/purescript-lua/pull/125/files
Please reload this pagehttps://github.com/purescript-lua/purescript-lua/pull/125/files
Please reload this pagehttps://github.com/purescript-lua/purescript-lua/pull/125/files
20260625_132407_unisay_notes_decision_tree_linker.md https://github.com/purescript-lua/purescript-lua/pull/125/files#diff-d4f4073b1951375d36ee9e7533964a2f51176d9678a80534ce57454c7fb67a16
IR.hs https://github.com/purescript-lua/purescript-lua/pull/125/files#diff-b2e6467526a4a74dfd4d619dae7237fb05d5ad4386d4f8a893d4f82b4c31cd39
DCE.hs https://github.com/purescript-lua/purescript-lua/pull/125/files#diff-a109a10f5eb1daf399873d5f872423b876fe04a88668660f01506076cefe8f78
Linker.hs https://github.com/purescript-lua/purescript-lua/pull/125/files#diff-114e667388f6a8a686b7993566e51078f236daa12b3d6da94e4935c60f7c3400
changelog.d/20260625_132407_unisay_notes_decision_tree_linker.mdhttps://github.com/purescript-lua/purescript-lua/pull/125/files#diff-d4f4073b1951375d36ee9e7533964a2f51176d9678a80534ce57454c7fb67a16
View file https://github.com/purescript-lua/purescript-lua/blob/360ea39b2f9749dc8fc41679cd5d96388db408d5/changelog.d/20260625_132407_unisay_notes_decision_tree_linker.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/purescript-lua/purescript-lua/pull/125/{{ revealButtonHref }}
lib/Language/PureScript/Backend/IR.hshttps://github.com/purescript-lua/purescript-lua/pull/125/files#diff-b2e6467526a4a74dfd4d619dae7237fb05d5ad4386d4f8a893d4f82b4c31cd39
View file https://github.com/purescript-lua/purescript-lua/blob/360ea39b2f9749dc8fc41679cd5d96388db408d5/lib/Language/PureScript/Backend/IR.hs
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/purescript-lua/purescript-lua/pull/125/{{ revealButtonHref }}
https://github.com/purescript-lua/purescript-lua/pull/125/files#diff-b2e6467526a4a74dfd4d619dae7237fb05d5ad4386d4f8a893d4f82b4c31cd39
https://github.com/purescript-lua/purescript-lua/pull/125/files#diff-b2e6467526a4a74dfd4d619dae7237fb05d5ad4386d4f8a893d4f82b4c31cd39
https://github.com/purescript-lua/purescript-lua/pull/125/files#diff-b2e6467526a4a74dfd4d619dae7237fb05d5ad4386d4f8a893d4f82b4c31cd39
https://github.com/purescript-lua/purescript-lua/pull/125/files#diff-b2e6467526a4a74dfd4d619dae7237fb05d5ad4386d4f8a893d4f82b4c31cd39
https://github.com/purescript-lua/purescript-lua/pull/125/files#diff-b2e6467526a4a74dfd4d619dae7237fb05d5ad4386d4f8a893d4f82b4c31cd39
https://github.com/purescript-lua/purescript-lua/pull/125/files#diff-b2e6467526a4a74dfd4d619dae7237fb05d5ad4386d4f8a893d4f82b4c31cd39
lib/Language/PureScript/Backend/IR/DCE.hshttps://github.com/purescript-lua/purescript-lua/pull/125/files#diff-a109a10f5eb1daf399873d5f872423b876fe04a88668660f01506076cefe8f78
View file https://github.com/purescript-lua/purescript-lua/blob/360ea39b2f9749dc8fc41679cd5d96388db408d5/lib/Language/PureScript/Backend/IR/DCE.hs
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/purescript-lua/purescript-lua/pull/125/{{ revealButtonHref }}
https://github.com/purescript-lua/purescript-lua/pull/125/files#diff-a109a10f5eb1daf399873d5f872423b876fe04a88668660f01506076cefe8f78
https://github.com/purescript-lua/purescript-lua/pull/125/files#diff-a109a10f5eb1daf399873d5f872423b876fe04a88668660f01506076cefe8f78
https://github.com/purescript-lua/purescript-lua/pull/125/files#diff-a109a10f5eb1daf399873d5f872423b876fe04a88668660f01506076cefe8f78
https://github.com/purescript-lua/purescript-lua/pull/125/files#diff-a109a10f5eb1daf399873d5f872423b876fe04a88668660f01506076cefe8f78
lib/Language/PureScript/Backend/IR/Linker.hshttps://github.com/purescript-lua/purescript-lua/pull/125/files#diff-114e667388f6a8a686b7993566e51078f236daa12b3d6da94e4935c60f7c3400
View file https://github.com/purescript-lua/purescript-lua/blob/360ea39b2f9749dc8fc41679cd5d96388db408d5/lib/Language/PureScript/Backend/IR/Linker.hs
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/purescript-lua/purescript-lua/pull/125/{{ revealButtonHref }}
https://github.com/purescript-lua/purescript-lua/pull/125/files#diff-114e667388f6a8a686b7993566e51078f236daa12b3d6da94e4935c60f7c3400
https://github.com/purescript-lua/purescript-lua/pull/125/files#diff-114e667388f6a8a686b7993566e51078f236daa12b3d6da94e4935c60f7c3400
Please reload this pagehttps://github.com/purescript-lua/purescript-lua/pull/125/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.