swiftlang / swift

The Swift Programming Language
https://swift.org
Apache License 2.0
67.06k stars 10.33k forks source link

[META][AutoDiff] Fix autodiff for classes and class-valued arguments #65012

Open asl opened 1 year ago

asl commented 1 year ago

This is a meta-issue noting all kinds of issues related to differentiating of classes, class methods, etc. While the things are more or less working for ordinary functions and structs, there are lots of missed functionality related to classes.

Related issues:

asl commented 1 year ago

Tagging @rxwei @dan-zheng @BradLarson

dan-zheng commented 11 months ago

Quick check: do we have non-toy motivating use cases for class differentiation? If yes, could we please share them here?

Features like class differentiation involve many design decisions, and it's nice to do use-case-driven development to ensure decisions are made in support of real use cases.

asl commented 11 months ago

This is for @BradLarson :)

rxwei commented 11 months ago

I second Dan's quick check. It seems that there are more important issues to tackle to bring us closer to Swift Evolution like ABI stability.