Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move Map primitives to structures module #51

Open
Calvin-L opened this issue Aug 9, 2018 · 2 comments
Open

Move Map primitives to structures module #51

Calvin-L opened this issue Aug 9, 2018 · 2 comments

Comments

@Calvin-L
Copy link
Collaborator

Calvin-L commented Aug 9, 2018

The code for heaps is more or less entirely contained in heaps.py. I like how this design worked out, and I think it would be worth moving the code related to maps (er, hash maps, not map-function-over-collection) to a similar maps.py file.

@izgzhen
Copy link
Collaborator

izgzhen commented Oct 18, 2018

i am also thinking about a proposal in which we can have a clean & well-defined interface between the core synthesis engine and plug-in-types.

@Calvin-L
Copy link
Collaborator Author

A starting point you might consider: The _register procedure already allows you to extend Cozy with additional types. The heaps code is connected to the rest of Cozy using that mechanism.

What we are missing is a clean interface; one quick way to make progress would be to create an abstract class with all the methods of the Heaps object and have Heaps and other subclasses extend it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants