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

[SR-14117] stdlib: support differentiation of Array.subscript._modify #55256

Open
Tracked by #54401
dan-zheng opened this issue May 13, 2020 · 2 comments
Open
Tracked by #54401
Labels
AutoDiff compiler The Swift compiler in itself

Comments

@dan-zheng
Copy link
Collaborator

Previous ID SR-14117
Radar None
Original Reporter @dan-zheng
Type Sub-task
Additional Detail from JIRA
Votes 1
Component/s Compiler
Labels Sub-task, AutoDiff
Assignee None
Priority Medium

md5: df2740eef47719be1f5be6f070efa03d

Parent-Task:

  • SR-14113 Support _read and _modify accessor differentiation

is blocked by:

  • TF-1193 Support @derivative derivative registration for specific storage accessors

Issue Description:

This makes it possible to differentiate idiomatic array element assignments: array[i] = newValue.

This is the final user code that we want to support.

@swift-ci
Copy link
Collaborator

Comment by Akshaan Kakar (JIRA)

Hey @dan-zheng, I'd like to take a shot at this issue. Do you think it's a reasonable first issue to take on? If so, is it alright if I assign it to myself?

@dan-zheng
Copy link
Collaborator Author

Hi akshaan (JIRA User): this actually isn't quite suitable as a first issue.

It's blocked because derivative registration for modify accessors (e.g. @derivative(of: subscript._modify)) isn't supported yet. We haven't thought through a general way to support that. In the meantime, we're considering adding special-case differentiation support for array subscript assignments.

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
AutoDiff compiler The Swift compiler in itself
Projects
None yet
Development

No branches or pull requests

2 participants