{"id":22472199,"url":"https://github.com/ckampfe/weave","last_synced_at":"2025-03-27T16:21:36.126Z","repository":{"id":72030680,"uuid":"90570784","full_name":"ckampfe/weave","owner":"ckampfe","description":"Describe and execute graphs","archived":false,"fork":false,"pushed_at":"2017-05-08T00:36:37.000Z","size":5,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-01T20:11:18.396Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ckampfe.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":"2017-05-08T00:27:20.000Z","updated_at":"2020-01-03T03:16:21.000Z","dependencies_parsed_at":"2023-03-23T09:01:43.265Z","dependency_job_id":null,"html_url":"https://github.com/ckampfe/weave","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/ckampfe%2Fweave","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ckampfe%2Fweave/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ckampfe%2Fweave/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ckampfe%2Fweave/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ckampfe","download_url":"https://codeload.github.com/ckampfe/weave/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245878931,"owners_count":20687299,"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-12-06T12:12:37.153Z","updated_at":"2025-03-27T16:21:36.103Z","avatar_url":"https://github.com/ckampfe.png","language":"Clojure","funding_links":[],"categories":[],"sub_categories":[],"readme":"# weave\n\nI wanted to see if I could reimplement the graph bits of https://github.com/plumatic/plumbing\n\n\n## Use\n\n```clojure\n(require '[weave.core :refer [fnk compile-eager compile-lazy view-dependency-graph!]])\n(require '[clojure.pprint])\n\n\n(def example {:a (fnk [] 1)\n              :b (fnk [a] (+ a 1))\n              :c (fnk [a] (+ a 3))\n              :d (fnk [a c] (+ a c))\n              :e (fnk [a b d] (+ a b d))\n              :f (fnk [a c] (+ 1 2))})\n\n((compile-eager example))\n\n{:a 1, :b 2, :c 4, :f 3, :d 5, :e 8}\n\n(clojure.pprint/pprint (take 10 ((compile-lazy example))))\n\n({:a 1,\n  :b #function[clojure.lang.AFunction/1],\n  :c #function[clojure.lang.AFunction/1],\n  :d #function[clojure.lang.AFunction/1],\n  :e #function[clojure.lang.AFunction/1],\n  :f #function[clojure.lang.AFunction/1]}\n {:a 1,\n  :b 2,\n  :c #function[clojure.lang.AFunction/1],\n  :d #function[clojure.lang.AFunction/1],\n  :e #function[clojure.lang.AFunction/1],\n  :f #function[clojure.lang.AFunction/1]}\n {:a 1,\n  :b 2,\n  :c 4,\n  :d #function[clojure.lang.AFunction/1],\n  :e #function[clojure.lang.AFunction/1],\n  :f #function[clojure.lang.AFunction/1]}\n {:a 1,\n  :b 2,\n  :c 4,\n  :d #function[clojure.lang.AFunction/1],\n  :e #function[clojure.lang.AFunction/1],\n  :f 3}\n {:a 1, :b 2, :c 4, :d 5, :e #function[clojure.lang.AFunction/1], :f 3}\n {:a 1, :b 2, :c 4, :d 5, :e 8, :f 3})\nnil\n\n(view-dependency-graph! example)\n```\n\u003cimg src=\"http://i.imgur.com/UkNjS8d.png\" width=\"200\"\u003e\n\n## License\n\nCopyright © 2017 Clark Kampfe\n\nDistributed under the MIT License\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fckampfe%2Fweave","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fckampfe%2Fweave","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fckampfe%2Fweave/lists"}