Skip to content

[AutoDiff] NFC: prettify commutative diagrams. #31525

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

Merged
merged 1 commit into from
May 4, 2020

Conversation

dan-zheng
Copy link
Contributor

Make commutative diagrams pretty using Unicode box characters.
Use lowercase letters for arrow names.


Rationale: if we're going to draw a diagram, we might as well make it as pretty as possible. Maintenance shouldn't be an issue.

Unicode resource: https://antofthy.gitlab.io/info/data/utf8-demo.txt

Inspired by: https://twitter.com/lexi_lambda/status/1255988716390297601

Make commutative diagrams pretty using Unicode box characters.
Use lowercase letters for arrow names.
@dan-zheng dan-zheng requested review from rxwei and marcrasi May 4, 2020 03:02
@dan-zheng
Copy link
Contributor Author

@swift-ci Please smoke test

// its derivative type. This is the expected lowered derivative type,
// preserving SIL typing invariants.
//
// Always use (AD) to compute lowered derivative function types.
// Always use (ad) to compute lowered derivative function types.
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice autodiff pun: Always use (ad)

@dan-zheng
Copy link
Contributor Author

Linux CI seems to have flaked.
@swift-ci Please smoke test Linux

@dan-zheng
Copy link
Contributor Author

@swift-ci Please smoke test Linux

@dan-zheng dan-zheng merged commit 31af116 into swiftlang:master May 4, 2020
@dan-zheng dan-zheng deleted the autodiff-gardening branch May 4, 2020 09:41
rxwei pushed a commit to rxwei/swift that referenced this pull request Jun 3, 2020
Make commutative diagrams pretty using Unicode box characters.
Use lowercase letters for arrow names.
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