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

renamed Is(Skeletal)FiniteSet(Map) -> IsObject/MorphismIn(Skeletal)CategoryOfFiniteSets #210

Merged
merged 1 commit into from
Aug 14, 2023

Conversation

mohamed-barakat
Copy link
Member

No description provided.

@mohamed-barakat mohamed-barakat force-pushed the prepare1 branch 3 times, most recently from 3cae71c to 7404f42 Compare June 9, 2023 23:19
@zickgraf
Copy link
Member

zickgraf commented Jul 3, 2023

Some things:

  1. The old names were much shorter and thus potentially better suited for didactical purposes. (I'm not against the change, I just wanted to mention it).
  2. We should keep FinSets and SkeletalFinSets consistent, i.e. also rename IsFiniteSet and IsFiniteSetMap.
  3. You can simply comment the synonyms for Julia, they should not be needed there.

@mohamed-barakat mohamed-barakat force-pushed the prepare1 branch 2 times, most recently from 5419aa0 to 6e8c5e4 Compare July 3, 2023 08:44
@mohamed-barakat
Copy link
Member Author

Some things:

  1. The old names were much shorter and thus potentially better suited for didactical purposes. (I'm not against the change, I just wanted to mention it).

I don't like these names for two reasons:

  • there is nothing called skeletal finite set. The word skeletal is referring to the category.
  • I don't like the convention of having the suffix Object/Morphism, especially with the name of the category is too long. I prefer IsObject/MorphismIn*, where * can be an arbitrary long name.
  1. We should keep FinSets and SkeletalFinSets consistent, i.e. also rename IsFiniteSet and IsFiniteSetMap.

Done.

  1. You can simply comment the synonyms for Julia, they should not be needed there.

Done.

Thanks.

@zickgraf
Copy link
Member

The GAP to Julia conversion now has support for DeclareSynonym: homalg-project/PackageJanitor@d4fc09e This was much easier then I expected, I thought GAP would handle synonyms in a much more elaborate way than just binding a global variable.

Also, as mentioned verbally, I suggest renaming IsObjectInCategoryOfFinSets to IsObjectInFinSets or IsObjectInCategoryOfFiniteSets, i.e. either use the shorthand FinSets or the full description CategoryOfFiniteSets (of course including similar renames for morphisms and SkeletalFinSets).

@mohamed-barakat mohamed-barakat changed the title renamed IsSkeletalFiniteSet(Map) -> IsObject/MorphismInCategoryOfSkeletalFinSets renamed Is(Skeletal)FiniteSet(Map) -> IsObject/MorphismIn(Skeletal)CategoryOfFiniteSets Jul 22, 2023
@mohamed-barakat
Copy link
Member Author

The GAP to Julia conversion now has support for DeclareSynonym: homalg-project/PackageJanitor@d4fc09e This was much easier then I expected, I thought GAP would handle synonyms in a much more elaborate way than just binding a global variable.

Nice. Still, the CI is failing.

Also, as mentioned verbally, I suggest renaming IsObjectInCategoryOfFinSets to IsObjectInFinSets or IsObjectInCategoryOfFiniteSets, i.e. either use the shorthand FinSets or the full description CategoryOfFiniteSets (of course including similar renames for morphisms and SkeletalFinSets).

Done.

@zickgraf
Copy link
Member

The GAP to Julia conversion now has support for DeclareSynonym: homalg-project/PackageJanitor@d4fc09e This was much easier then I expected, I thought GAP would handle synonyms in a much more elaborate way than just binding a global variable.

Nice. Still, the CI is failing.

You have to remove the comments for Julia again.

@mohamed-barakat
Copy link
Member Author

You have to remove the comments for Julia again.

My bad.

Please do not merge until the PR on CategoricalTowers passes. I will let you know.

@codecov
Copy link

codecov bot commented Jul 24, 2023

Codecov Report

Patch coverage: 100.00% and no project coverage change.

Comparison is base (308ee8b) 100.00% compared to head (59271a5) 100.00%.

Additional details and impacted files
@@            Coverage Diff            @@
##            master      #210   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           12        12           
  Lines         1882      1890    +8     
=========================================
+ Hits          1882      1890    +8     
Files Changed Coverage Δ
PackageInfo.g 100.00% <100.00%> (ø)
gap/CompilerLogic.gi 100.00% <100.00%> (ø)
gap/FinSets.gd 100.00% <100.00%> (ø)
gap/FinSets.gi 100.00% <100.00%> (ø)
gap/SkeletalFinSets.gd 100.00% <100.00%> (ø)
gap/SkeletalFinSets.gi 100.00% <100.00%> (ø)
gap/init.gi 100.00% <100.00%> (ø)
...fFiniteSetsWithMorphismsGivenByListsPrecompiled.gi 100.00% <100.00%> (ø)
read.g 100.00% <100.00%> (ø)

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@mohamed-barakat
Copy link
Member Author

Finally, thank you for your help :)

@mohamed-barakat
Copy link
Member Author

The merge in CategoricalTowers is done. This can now be merged.

@zickgraf
Copy link
Member

Please provide full backwards compatibility. As far as I can tell, the constructors are missing.

@mohamed-barakat
Copy link
Member Author

Please provide full backwards compatibility. As far as I can tell, the constructors are missing.

Done.

@mohamed-barakat
Copy link
Member Author

I would suggest dropping the backward compatibility for CategoryOfSkeletalFinSetsWithMorphismsGivenByListsPrecompiled since it is not used outside of FinSetsForCAP.

@zickgraf
Copy link
Member

I would suggest dropping the backward compatibility for CategoryOfSkeletalFinSetsWithMorphismsGivenByListsPrecompiled since it is not used outside of FinSetsForCAP.

I agree, CategoryOfSkeletalFinSetsWithMorphismsGivenByListsPrecompiled is not a public interface.

@zickgraf
Copy link
Member

Is there a reason why you have kept the constructor CategoryOfFinSets instead of renaming it to CategoryOfFiniteSets?

@mohamed-barakat
Copy link
Member Author

Is there a reason why you have kept the constructor CategoryOfFinSets instead of renaming it to CategoryOfFiniteSets?

This was an oversight. Done.

@mohamed-barakat
Copy link
Member Author

I agree, CategoryOfSkeletalFinSetsWithMorphismsGivenByListsPrecompiled is not a public interface.

Good.

@zickgraf zickgraf merged commit 5d7753a into homalg-project:master Aug 14, 2023
4 checks passed
@mohamed-barakat mohamed-barakat deleted the prepare1 branch August 14, 2023 12:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants