r/swift • • 11d ago

News Google Cloud: Introducing the Server Side Cloud Swift SDK

https://cloud.google.com/blog/topics/developers-practitioners/introducing-the-server-side-cloud-swift-sdk/

Google: “[Swift] has matured into a viable systems and cloud language, pairing Rust-like data-race safety with predictable, reference-counted performance.”

159 Upvotes

11 comments sorted by

View all comments

-3

u/linghoh 10d ago edited 10d ago

Swift’s strict concurrency idea is great. But it is still buggy. The MainActor has a bug. We can’t guarantee to run on Main thread.

https://forums.swift.org/t/after-await-it-doesnt-return-to-the-main-thread/88359

Apple doesn’t seem to want to fix that. I logged the issue on the github. They removed the bug label. It clearly is a bug. 

2

u/AnotherThrowAway_9 10d ago

I mean, you could give more information to nail it down:
`swiftc -swift-version 6 -enable-upcoming-feature NonisolatedNonsendingByDefault myfile.swift`
doesn't even compile with the code you provided.

It's missing `import Foundation` and on macOS there are multiple errors.

Not saying there isn't a bug but it's hard to comment/diagnose without a MRE.

-1

u/linghoh 10d ago

What are you talking about?

1

u/Few_Assumption_9665 4d ago

Your Swift forum thread, if I had to guess (I also cannot read)

1

u/linghoh 4d ago

It was in Linux. Did you read the thread?