egraphs-good / egglog

egraphs + datalog!
https://egraphs-good.github.io/egglog/
MIT License
458 stars 54 forks source link

Support user-defined scheduler #431

Open yihozhang opened 1 month ago

yihozhang commented 1 month ago

To support user-defined schedulers, this PR does a few things

Currently, the following command is supported:

(run-schedule
  (repeat 5
    (with-scheduler (simple)
      (repeat 5 (run analysis)))
    (with-scheduler (backoff)
      (repeat 5 (run optimization))))