{"id":17176279,"url":"https://github.com/evhub/point-free-transformer","last_synced_at":"2025-03-24T21:42:26.173Z","repository":{"id":79769473,"uuid":"552636486","full_name":"evhub/point-free-transformer","owner":"evhub","description":"A point-free implementation of a one-layer transformer in Coconut.","archived":false,"fork":false,"pushed_at":"2022-10-18T22:05:32.000Z","size":116,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-30T01:44:58.603Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/evhub.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-10-17T01:37:08.000Z","updated_at":"2023-01-31T11:34:39.000Z","dependencies_parsed_at":"2023-06-10T19:15:27.618Z","dependency_job_id":null,"html_url":"https://github.com/evhub/point-free-transformer","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evhub%2Fpoint-free-transformer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evhub%2Fpoint-free-transformer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evhub%2Fpoint-free-transformer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evhub%2Fpoint-free-transformer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/evhub","download_url":"https://codeload.github.com/evhub/point-free-transformer/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245359253,"owners_count":20602322,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-14T23:59:47.371Z","updated_at":"2025-03-24T21:42:26.149Z","avatar_url":"https://github.com/evhub.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# point-free-transformer\n\nA [point-free](https://en.wikipedia.org/wiki/Tacit_programming) implementation of a one-layer transformer in [Coconut](https://coconut-lang.org/).\n\n![](https://i.imgur.com/QSmFE2m.png)\n\n![](https://i.imgur.com/9WpR3Rf.png)\n\n![](https://i.imgur.com/RB8iFGw.png)\n\nSee the full highlighted source [here](https://refined-github-html-preview.kidonng.workers.dev/evhub/point-free-transformer/raw/main/point_free_transformer.html).\n\nSome help for those that don't read Coconut:\n- `..\u003e` is forward function composition (so `f ..\u003e g` is `g . f` in Haskell)\n- `f$(\u003cargs\u003e)` is partial application (so `f$(\u003cargs\u003e)` is `functools.partial(f, \u003cargs\u003e)` in Python)\n- `lift` “lifts” a function so that all of its arguments become unary functions (for a binary function, `lift` is the S' combinator, or `liftA2` in Haskell—e.g. `lift(f)(g, h)` is equivalent to `lambda x: f(g(x), h(x))` in Python)\n- `(\u003cop\u003e)` is the operator function for `\u003cop\u003e` (so `(+)` is `operator.add` in Python)\n- `(. \u003cop\u003e \u003carg\u003e)` is equivalent to `\u003cop\u003e$(?, \u003carg\u003e)` (`?` is a placeholder that means that argument isn't partially applied)\n- `.method(\u003cargs\u003e)` is equivalent to `lambda x: x.method(\u003cargs\u003e)` in Python\n\nAlso, `einsum` here is [`better_einsum.einsum`](https://github.com/evhub/better_einsum).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fevhub%2Fpoint-free-transformer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fevhub%2Fpoint-free-transformer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fevhub%2Fpoint-free-transformer/lists"}