Title: Uncurry optimization · Issue #479 · purescript/purescript · GitHub
Open Graph Title: Uncurry optimization · Issue #479 · purescript/purescript
X Title: Uncurry optimization · Issue #479 · purescript/purescript
Description: I made this jsPerf as a test http://jsperf.com/curry-cost The automatic currying of functions is an awesome part of this language and functional in general. But in javascript it comes at a serious cost (particularly if your paradigm is t...
Open Graph Description: I made this jsPerf as a test http://jsperf.com/curry-cost The automatic currying of functions is an awesome part of this language and functional in general. But in javascript it comes at a serious ...
X Description: I made this jsPerf as a test http://jsperf.com/curry-cost The automatic currying of functions is an awesome part of this language and functional in general. But in javascript it comes at a serious ...
Mail addresses
notifications@github.com
Opengraph URL: https://github.com/purescript/purescript/issues/479
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Uncurry optimization ","articleBody":"I made this jsPerf as a test http://jsperf.com/curry-cost\n\nThe automatic currying of functions is an awesome part of this language and functional in general. But in javascript it comes at a serious cost (particularly if your paradigm is to use shit tons of function application). \n\nSome languages (Fay and Elm) flatten out curries at compile time if they are not used. So\n\n```\n add3 x y z = x + y + z\n trace 1 2 3\n```\n\ninstead of becoming:\n\n```\n var add3 = function(x){\n return function(y){\n return function(z){\n return x + y + z;\n };\n };\n };\n trace(add3(1)(2)(3));\n```\n\nbecomes:\n\n```\n var add3 = function(x,y,z){\n return x + y + z;\n };\n trace(add3(1,2,3));\n```\n\nare there any plans to add optimization around currying? I believe this could be done without breaking changes.\n","author":{"url":"https://github.com/Fresheyeball","@type":"Person","name":"Fresheyeball"},"datePublished":"2014-07-13T18:56:44Z","url":"https://github.com/purescript/purescript/issues/479"}
| 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:c57c3b83-f59e-1f19-e393-21b1709ffd6d |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A916:34EA7D:80B604:A72011:6B00D7E0 |
| html-safe-nonce | 5e029a77948ffb24e6b7ed79c8971ed70759cfa5495190b21408fc100cb6860f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBOTE2OjM0RUE3RDo4MEI2MDQ6QTcyMDExOjZCMDBEN0UwIiwidmlzaXRvcl9pZCI6IjY4NTkxNzAwOTE4NTUwNDI1MjgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 0b9eba2d687aace03d0a53a9702858b1a1f64af33852e62b80b91a9a72bedaef |
| hovercard-subject-tag | issue:37747358 |
| 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/purescript/479/issue_layout |
| twitter:image | https://opengraph.githubassets.com/6394ed7d1467b232aab5f1f1ecabab250e332dfc6e6a65800068afd8ce76f3cc/purescript/purescript/issues/479 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/6394ed7d1467b232aab5f1f1ecabab250e332dfc6e6a65800068afd8ce76f3cc/purescript/purescript/issues/479 |
| og:image:alt | I made this jsPerf as a test http://jsperf.com/curry-cost The automatic currying of functions is an awesome part of this language and functional in general. But in javascript it comes at a serious ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Fresheyeball |
| hostname | github.com |
| expected-hostname | github.com |
| None | a481f62a1e04c9b9bdcb5628230682c66d59006f5b13b080f79cba84a176905b |
| turbo-cache-control | no-preview |
| go-import | github.com/purescript/purescript git https://github.com/purescript/purescript.git |
| octolytics-dimension-user_id | 6556677 |
| octolytics-dimension-user_login | purescript |
| octolytics-dimension-repository_id | 13206906 |
| octolytics-dimension-repository_nwo | purescript/purescript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 13206906 |
| octolytics-dimension-repository_network_root_nwo | purescript/purescript |
| 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 | 84c8c5cc25e2fb7f2308428458538436baecc6d2 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width