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-7768] Write Non-Swift version of _bridgeAnythingToObjectiveC as a C++ runtime function #50307

Open
jckarter opened this issue May 24, 2018 · 0 comments
Assignees
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. standard library Area: Standard library umbrella

Comments

@jckarter
Copy link
Member

Previous ID SR-7768
Radar None
Original Reporter @jckarter
Type Bug
Additional Detail from JIRA
Votes 1
Component/s Standard Library
Labels Bug
Assignee @millenomi
Priority Medium

md5: f67527d349a499e877a3f0eeb025465c

Issue Description:

The initial implementation of _bridgeAnythingToObjectiveC is valiantly written in Swift, but the Swift source-level language does not really expose the low-level manipulation primitives for type metadata, existentials, or optionals necessary to do a good job here, so it ends up leaning on a bunch of new runtime and standard library SPI. It would be cleaner from an ABI perspective, and likely better performing, to write this function purely in C++ using the low-level runtime APIs.

@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
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. standard library Area: Standard library umbrella
Projects
None yet
Development

No branches or pull requests

1 participant