CAP_project icon indicating copy to clipboard operation
CAP_project copied to clipboard

Add `number_of_objectified_objects_in_data_structure_of_object` etc. to compiler_hints

Open mohamed-barakat opened this issue 3 years ago • 1 comments

mohamed-barakat avatar Oct 28 '22 14:10 mohamed-barakat

The reason why I did not add this to compiler_hints is that currently the information only makes sense for a given tower. E.g. the total number of morphisms needed to construct a FreydCategory morphism depends of course on the underlying category. If we compile a tower without wrapping it, there is no natural place to store this information, expect the call to PrecompileCategory.

In the future it would be nice if a category could specify how many underlying objects and morphisms are used to create an object or morphism, and CompilerForCAP could collect this information for any given tower. But for now, this is a very primitive system.

zickgraf avatar Nov 07 '22 09:11 zickgraf