Skip to content

Micro Implementation of Incremental Computation in Clojure

License

Notifications You must be signed in to change notification settings

aibrahim/micro_adapton

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

micro_adapton

Micro Implementation of Incremental Computation in Clojure, based on this paper https://arxiv.org/abs/1609.05337

Usage

In repl

=> (use 'micro_adapton.adapton)
=> (def r1 (adapton-ref 10))
=> (def r2 (adapton-ref 8))
=> (def a (let [a-temp (mk-athunk (fn [] (- (adapton-compute r1) (adapton-compute r2))))]
            (adapton-add-dcg-edge! a-temp r1)
            (adapton-add-dcg-edge! a-temp r2)
          a-temp))
=> (adapton-compute a)
=> (adapton-ref-set! r1 20)
=> (adapton-compute a)

About

Micro Implementation of Incremental Computation in Clojure

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published