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

Generated code for composition in subpart and incident #109

Merged
merged 8 commits into from
Feb 16, 2024

Conversation

slwu89
Copy link
Member

@slwu89 slwu89 commented Feb 13, 2024

Addresses #9 and #16. This is quite a simple PR, just moving the binary operation out of foldl and foldr from subpart and incident into a generated loop. Happy for comments!

I note that the somewhat aesthetically displeasing if statement in the generated method is because Tuple{Symbol} or even Tuple{Vararg{Symbol,1}} is ambiguous when competing with Tuple{Vararg{Symbol}}.

[NOTE] codecov report seems to have false positives. The new tests include testing for errors when the user provides a tuple of arrows that do not compose.

Copy link

codecov bot commented Feb 13, 2024

Codecov Report

Attention: 2 lines in your changes are missing coverage. Please review.

Comparison is base (6865de2) 91.71% compared to head (2958b4d) 91.81%.

Files Patch % Lines
src/DenseACSets.jl 92.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #109      +/-   ##
==========================================
+ Coverage   91.71%   91.81%   +0.10%     
==========================================
  Files          22       22              
  Lines        1918     1943      +25     
==========================================
+ Hits         1759     1784      +25     
  Misses        159      159              

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

@slwu89 slwu89 requested a review from epatters February 13, 2024 00:51
@slwu89 slwu89 requested review from jpfairbanks and removed request for epatters February 15, 2024 16:07
@slwu89
Copy link
Member Author

slwu89 commented Feb 16, 2024

@jpfairbanks good to merge?

@olynch olynch merged commit 89ea432 into AlgebraicJulia:main Feb 16, 2024
9 checks passed
@olynch
Copy link
Member

olynch commented Feb 16, 2024

Slick use of comptime @slwu89!!

@slwu89 slwu89 deleted the composable-keys branch February 16, 2024 22:52
@epatters epatters added the enhancement New feature or request label Feb 16, 2024
@epatters epatters changed the title generated code for composition in subpart and incident Generated code for composition in subpart and incident Feb 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants