CozySynthesizer / cozy

The collection synthesizer
https://cozy.uwplse.org
Apache License 2.0
209 stars 18 forks source link

List type in specifications #13

Open Calvin-L opened 7 years ago

Calvin-L commented 7 years ago

Right now specifications can have bags (i.e. multisets) and sets. Cozy can use lists in output implementations, but having lists in specifications would also be useful: often the order of insertion is important. This comes up especially in caches that employ least-recently-used eviction.

Wishlist:

prateekiiest commented 6 years ago

can I work on this issue?

mernst commented 6 years ago

If you know what to do, then certainly. Please open a pull request with the fix. Thanks!

izgzhen commented 6 years ago

@Calvin-L I will help working out sort method for List type. I guess I need to:

mernst commented 6 years ago

@Calvin-L Does "devise a good state maintenance sketch" mean that one exists that is not good, or that none exists? (Also, in what file would that go? In state_maintenance.py? I didn't see anything about lists in there now.)

Calvin-L commented 6 years ago

Currently none exists. As a result, Cozy falls back to the default maintenance sketch, which is to recompute from scratch.