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

New Objective-C runtime features #462

Merged
merged 3 commits into from
Jul 29, 2023
Merged

New Objective-C runtime features #462

merged 3 commits into from
Jul 29, 2023

Conversation

madsmtm
Copy link
Owner

@madsmtm madsmtm commented Jun 16, 2023

Last year, Apple improved a few things in the Objective-C runtime and clang, see this video from WWDC22. Last time I checked, these were not yet available in the open-source version of clang, though they might be by now.

We don't really have a good way to enable these automatically yet, see #266, but for now, we can implement these features behind a feature flag unstable-apple-new, for people to try them out!

TODO: Implement the optimized versions of:

  • Protocol checks
    • Not possible for us since our protocol checks are done using the runtime
  • Message sending
  • Retain and release
    • Yet unsure if completely sound
  • Autorelease elision

@madsmtm madsmtm added enhancement New feature or request A-objc2 Affects the `objc2`, `objc2-exception-helper` and/or `objc2-encode` crates labels Jun 16, 2023
@madsmtm madsmtm merged commit 282188d into master Jul 29, 2023
@madsmtm madsmtm deleted the new-objc-features branch July 29, 2023 05:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-objc2 Affects the `objc2`, `objc2-exception-helper` and/or `objc2-encode` crates enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant