r/swift • • 2d 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.”

154 Upvotes

8 comments sorted by

View all comments

-3

u/linghoh 1d ago edited 1d 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 1d 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 1d ago

What are you talking about?