{"id":15482922,"url":"https://github.com/brandonbloom/cleff","last_synced_at":"2025-04-22T16:21:42.871Z","repository":{"id":10043544,"uuid":"12089784","full_name":"brandonbloom/cleff","owner":"brandonbloom","description":"Algebraic Effect Handlers for Clojure","archived":false,"fork":false,"pushed_at":"2013-08-19T16:29:01.000Z","size":152,"stargazers_count":45,"open_issues_count":0,"forks_count":0,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-17T07:16:40.567Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Clojure","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/brandonbloom.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-08-13T18:52:19.000Z","updated_at":"2023-10-02T22:32:59.000Z","dependencies_parsed_at":"2022-08-30T14:01:57.760Z","dependency_job_id":null,"html_url":"https://github.com/brandonbloom/cleff","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/brandonbloom%2Fcleff","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brandonbloom%2Fcleff/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brandonbloom%2Fcleff/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brandonbloom%2Fcleff/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/brandonbloom","download_url":"https://codeload.github.com/brandonbloom/cleff/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250275556,"owners_count":21403680,"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-02T05:10:21.040Z","updated_at":"2025-04-22T16:21:42.850Z","avatar_url":"https://github.com/brandonbloom.png","language":"Clojure","readme":"# Cleff\n\nCleff provides a framework for extensible handling of computational effects.\n\nThe design is heavily inspired by the Eff programming language. This project\naims to provide a proof of concept implementation of all of the examples in\n[Programming with Algebraic Effects and Handlers][1] by Bauer and Pretnar.\n\n## Status\n\nThe basics of first-class effects and handlers are working.\n\nHere's a simple non-deterministic choice effect:\n\n```clojure\n(defn choose-all [c]\n  (handler\n    (value [x] [x])\n    c\n    (decide []\n      (concat (continue true) (continue false)))))\n\n(let [c (choice)]\n  (handle-with (choose-all c)\n    (let [x (if (effect c 'decide) 10 20)\n          y (if (effect c 'decide) 0 5)]\n      (- x y))))\n;;=\u003e (10 5 20 15)\n```\n\nLots left to do:\n\n- Polish up the syntax\n- defprotocol-style defeffect\n- Subroutines for coping with core.async's lexical IOC\n\nSee the `test/` directory for some more examples.\n\n## License\n\nCopyright © 2013 Brandon Bloom\n\nDistributed under the Eclipse Public License, the same as Clojure.\n\n\n[1]: http://math.andrej.com/2012/03/08/programming-with-algebraic-effects-and-handlers/\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrandonbloom%2Fcleff","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrandonbloom%2Fcleff","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrandonbloom%2Fcleff/lists"}