Title: [fork-ffi] foldable-traversable: declare the fork-shaped traverseArrayImpl as Fn6 · Issue #271 · purescript-lua/purescript-lua · GitHub
Open Graph Title: [fork-ffi] foldable-traversable: declare the fork-shaped traverseArrayImpl as Fn6 · Issue #271 · purescript-lua/purescript-lua
X Title: [fork-ffi] foldable-traversable: declare the fork-shaped traverseArrayImpl as Fn6 · Issue #271 · purescript-lua/purescript-lua
Description: Problem The fork's Data.Traversable.traverseArrayImpl diverges from upstream: it takes an extra array-concat argument, making it a 6-argument curried foreign (upstream's is 5). It is not exported, so its shape is free to change, and it i...
Open Graph Description: Problem The fork's Data.Traversable.traverseArrayImpl diverges from upstream: it takes an extra array-concat argument, making it a 6-argument curried foreign (upstream's is 5). It is not exported, ...
X Description: Problem The fork's Data.Traversable.traverseArrayImpl diverges from upstream: it takes an extra array-concat argument, making it a 6-argument curried foreign (upstream's is 5). It is not ex...
Opengraph URL: https://github.com/purescript-lua/purescript-lua/issues/271
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[fork-ffi] foldable-traversable: declare the fork-shaped traverseArrayImpl as Fn6","articleBody":"## Problem\n\nThe fork's `Data.Traversable.traverseArrayImpl` diverges from upstream: it takes an extra array-concat argument, making it a 6-argument curried foreign (upstream's is 5). It is not exported, so its shape is free to change, and it is the only fork-diverged foreign signature in the whole package set (#186 audit, stream 1). As a curried foreign it costs a closure per argument on every `traverse` over an array.\n\n## Approach\n\nDeclare it `Fn6` and wrap: `traverseArrayImpl = runFn6 traverseArrayImplNative …` (or reshape the definition site `traverse = runFn6 impl apply map pure (\u003c>)` directly). The `.lua` entry becomes one 6-ary function. The win is real only where the call site ends up saturated after inlining: the instance defines `traverse` by partially applying 4 of 6 arguments, so the collapse depends on the dictionary method inlining at use sites. Worth doing when touching the fork anyway; measure before claiming a number.\n\n## Prerequisites / Relations\n\nNo hard prerequisites. Found by the #186 audit (closed). The measured win depends on the inliner collapsing dictionary-method call sites, so it pairs with the call-site inliner work in #245 without depending on it. Ships as a foldable-traversable fork release plus a set bump.\n\n## Verification / Measurement\n\nThe fork's regression tests stay green, a compiled `traverse`-over-array program still evaluates identically, and the generated Lua for a saturated call site shows the direct 6-ary call.\n","author":{"url":"https://github.com/Unisay","@type":"Person","name":"Unisay"},"datePublished":"2026-07-13T13:53:54Z","url":"https://github.com/purescript-lua/purescript-lua/issues/271"}
| 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 | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:3c4e83e2-ca6f-e1e5-7a03-6ebaf470eee2 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D816:237673:7E0366:A9E7B1:6B00E040 |
| html-safe-nonce | af36c08c9e33d03b7315b21daa51edd2564c3a4d2157860df618d9bcf5c623be |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEODE2OjIzNzY3Mzo3RTAzNjY6QTlFN0IxOjZCMDBFMDQwIiwidmlzaXRvcl9pZCI6IjQ0MTE4NjI0NjQ5MTI3NDQ1MTIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | afec4f8e39c7a9b69e28d1c2310c24746adc059e8969344cc3ab772c94c30e26 |
| hovercard-subject-tag | issue:4874301374 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/purescript-lua/purescript-lua/271/issue_layout |
| twitter:image | https://opengraph.githubassets.com/3fa52ee4148c68c670481958153dd2b71cc30f0353f4d8dd5228b3ee4c5d9dd3/purescript-lua/purescript-lua/issues/271 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/3fa52ee4148c68c670481958153dd2b71cc30f0353f4d8dd5228b3ee4c5d9dd3/purescript-lua/purescript-lua/issues/271 |
| og:image:alt | Problem The fork's Data.Traversable.traverseArrayImpl diverges from upstream: it takes an extra array-concat argument, making it a 6-argument curried foreign (upstream's is 5). It is not exported, ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Unisay |
| hostname | github.com |
| expected-hostname | github.com |
| None | 043c3f30fbcbe2c6c8e729e10cbbbc90c406546f9fbbb67c648d38f6b7d16daf |
| turbo-cache-control | no-preview |
| 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 |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 5425dc24e8bd8d6fca9641a12afc984825a43875 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width