{"id":13671574,"url":"https://github.com/Adapton/adapton.rust","last_synced_at":"2025-04-27T18:31:25.177Z","repository":{"id":21349242,"uuid":"91174791","full_name":"Adapton/adapton.rust","owner":"Adapton","description":"General-purpose abstractions for incremental computing, in Rust","archived":false,"fork":false,"pushed_at":"2022-03-24T22:33:27.000Z","size":820,"stargazers_count":355,"open_issues_count":4,"forks_count":12,"subscribers_count":14,"default_branch":"master","last_synced_at":"2025-03-27T23:48:30.768Z","etag":null,"topics":["adapton","rust"],"latest_commit_sha":null,"homepage":"http://adapton.org","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Adapton.png","metadata":{"files":{"readme":"README-Cruft.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-MPL2.0","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-05-13T13:03:13.000Z","updated_at":"2025-02-27T13:55:03.000Z","dependencies_parsed_at":"2022-08-07T10:00:23.088Z","dependency_job_id":null,"html_url":"https://github.com/Adapton/adapton.rust","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/Adapton%2Fadapton.rust","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Adapton%2Fadapton.rust/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Adapton%2Fadapton.rust/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Adapton%2Fadapton.rust/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Adapton","download_url":"https://codeload.github.com/Adapton/adapton.rust/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251187179,"owners_count":21549597,"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":["adapton","rust"],"created_at":"2024-08-02T09:01:13.631Z","updated_at":"2025-04-27T18:31:24.829Z","avatar_url":"https://github.com/Adapton.png","language":"Rust","funding_links":[],"categories":["Rust"],"sub_categories":[],"readme":"*This file is stuff I removed from the readme, but have not (yet)\n decided to completely delete from the repo.*\n\nLibrary Components:\n=====================\n\n- The library exposes a small **core interface**.\nFor details, see the documentation of `engine` interface:\n```\n  cargo doc\n  open target/doc/adapton/engine/index.html\n```\n\n- The library uses rust macros to provide **syntactic sugar**.  \nSee [`macros.rs`](https://github.com/cuplv/adapton.rust/blob/master/src/macros.rs).  \n\n- The library implements this interface with an **imperative data structure**, and **without garbage collection**.  \nSee [`engine.rs`](https://github.com/cuplv/adapton.rust/blob/master/src/engine.rs).\n\n- The library provides generic **incremental data structures and algorithms**.  \nSee also: [`collections.rs`](https://github.com/cuplv/adapton.rust/blob/master/src/collections.rs).\n**This collections module is a work in progress.**\n  \n- **Next**:  \n  - sequences as random access zippers (See also: https://arxiv.org/abs/1608.06009)\n  - tries that represent sets, maps (See also: https://arxiv.org/abs/1503.07792, Section 3.2),\n  - generic fixed-point loop\n  - graphs, graph exploration algorithms (e.g., search)\n\n\nSupported Incremental Computation Paradigms:\n==============================================\n\n- **Pure Function Caching**:  \n[*Incremental computation via function caching*](http://dl.acm.org/citation.cfm?id=75305)  \n*Bill Pugh and Tim Teitelbaum.*  \n**POPL 1989.**  \n  - hash-cons'd, purely-functional data structures\n  - memoized function calls (to pure computations)\n\n- **Structural Adapton**:  \n[Adapton: Composable, Demand-Driven Incremental Computation.](https://www.cs.umd.edu/~hammer/adapton/)  \n*Matthew A. Hammer, Yit Phang Khoo, Michael Hicks and Jeffrey S. Foster.*  \n**PLDI 2014.**  \n  - changeable input cells\n  - bidirectional DCG structure\n  - dirtying traversal; repair traversal.\n\n- **Nominal Adapton:**  \n[Incremental Computation with Names](http://arxiv.org/abs/1503.07792)  \n*Matthew A. Hammer, Joshua Dunfield, Kyle Headley, Nicholas Labich, Jeffrey S. Foster, Michael Hicks, David Van Horn.*  \n**OOPSLA 2015.**  \n  - first-class names\n  - nominal memoization\n  \nFuture work\n============\n\n- Benchmarking based on tests:\n  - report time statistics\n  - [report memory statistics](http://stackoverflow.com/questions/30869007/how-to-benchmark-memory-usage-of-a-function)\n\n\nTechnicalities specific to Rust\n============================================\n\nDeconstruction of DCG as Rust traits and types\n-----------------------------------------------------------------\n\nSee draft on [play.Rust-lang.org](http://is.gd/4czIEG)\n\nThis provides a 1000-foot view of how we are encoding the Demanded\nComputation Graph (DCG) into Rust's universe of legal type and trait\ndefinitions.\n\nTechnical Debt\n------------------\n\n- In `engine.rs` I wrote `Producer::copy` and the `ShapeShifter` trait.  Both avoid returning a `Self`.  \nIs there a better way?  \nSee also: [0255-object-safety](https://github.com/rust-lang/rfcs/blob/master/text/0255-object-safety.md)  \n- Do I need really need `Rc\u003cBox\u003cFn (_) -\u003e _\u003e\u003e` instead of `Rc\u003cFn (_) -\u003e _\u003e`?  \nWhy?  \n- Done:\n  - [trait-objects-with-associated-types](http://users.rust-lang.org/t/trait-objects-with-associated-types/746/16?u=matthewhammer)\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FAdapton%2Fadapton.rust","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FAdapton%2Fadapton.rust","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FAdapton%2Fadapton.rust/lists"}