Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

chore: upgrade Proto code to Swift 6#14

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
spikecurtis merged 1 commit intomainfromspike/proto-swift-6
Dec 19, 2024

Conversation

spikecurtis
Copy link
Collaborator

@spikecurtisspikecurtis commentedDec 18, 2024
edited
Loading

Upgrades Proto to Swift 6, mostly by telling the compiler explicitly that things are sendable, but in some cases by scoping down our closures so they only capture sendable objects.

@spikecurtisGraphite App
Copy link
CollaboratorAuthor

This stack of pull requests is managed byGraphite. Learn more aboutstacking.

@spikecurtisspikecurtis marked this pull request as ready for reviewDecember 18, 2024 16:53
@ethanndickson
Copy link
Member

Just thinking about it after the fact, is there a reason we wouldn't want to make Speaker & Handshaker an actor?

@spikecurtis
Copy link
CollaboratorAuthor

spikecurtis commentedDec 19, 2024
edited
Loading

Just thinking about it after the fact, is there a reason we wouldn't want to make Speaker & Handshaker an actor?

The reason I didn't makeSpeaker and actor is that as far as I can tell, actors don't have inheritance. An alternative design might be to make theSpeaker an actor, and then have theTunnel and/orManager compose aSpeaker internally. However, we'd have to rethink the way the outer object gets notified about messages and RPCs --- overriding handlers won't work.

For theHandshaker, I was having trouble getting it to work because of the way we use DispatchIO callbacks to write to the data: data has to be mutable and DispatchIO callbacks aren'tasync. I couldn't figure out how to make an actor work for that.

@spikecurtisGraphite App
Copy link
CollaboratorAuthor

spikecurtis commentedDec 19, 2024
edited
Loading

Merge activity

  • Dec 19, 4:46 AM EST: A user started a stack merge that includes this pull request viaGraphite.
  • Dec 19, 4:46 AM EST: A user merged this pull request withGraphite.

@spikecurtisspikecurtis merged commitae65c20 intomainDec 19, 2024
4 checks passed
@ethanndicksonethanndickson deleted the spike/proto-swift-6 branchJanuary 23, 2025 02:49
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@ethanndicksonethanndicksonethanndickson approved these changes

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@spikecurtis@ethanndickson

[8]ページ先頭

©2009-2025 Movatter.jp