These are good improvements, but are there no plans to take advantage of registry support with a properly secured, centralized registry? Until that's in place, Swift's ecosystem will be strictly inferior to most other languages, no matter how resilient our modules are in practice.
A centralized package repository seems out of scope for the language team.
Given they're the only ones who can possibly address it by integrating it into Swift itself, I don't know who else you think could do it.
You’re asking a technical team to commit to getting into the business of running and maintaining a centralized package repository. That’s not a problem within the scope of SwiftPM tool improvements.
Furthermore, your assertion that the lack of an ordained centralized repository makes Swift “inferior” is highly dubious.
Not especially, but this isn't really the place. I'm just pointing out that when the community thinks of ecosystem improvements, module resilience isn't what most people envision.
Doug's post is about the upcoming Swift 6 language mode. Adding a centralized package registry doesn't require a language mode, so you shouldn't expect any discussion of that here, no matter how interesting or important it might be.
You might have missed it, but we did make a blog post about a month ago talking about more general project priorities and upcoming work, and it does include information about SwiftPM and its work towards a package registry. If you'd like to talk about that, you might participate in the forums thread about that post, or you could find / start a thread in Development > Package Manager.
I mean, there could certainly be impacts to SPM's Swift 6 mode, but fair enough. Feel free to delete the digression.
Yes, that's the intent here. There's currently an open issue to make sure that these aren't treated as unsafe flags.
Are you conflating "upcoming" and "experimental"? "Experimental" are not fully implemented and not reviewed, so one shouldn't depend on them at all and they don't belong in release compilers.
"Upcoming" features are ones that have been reviewed and implemented and can be used with any compiler that supports them. We'll promote a feature from "experimental" to "upcoming" once it's been reviewed, accepted, and implemented.
Doug
Thanks for the clarity.
Definitely not within the year.
Doug
there is a big difference between maintaining a centralized package repository and a centralized package registry.
the latter seems like a very reasonable request, and something that i feel has been sorely missing for quite some time.
As @John_McCall said, it’s not a reasonable request in the context of this discussion, which is about language modes.
To be clear, I'm not weighing in about the idea itself, I'm just saying it's off-topic in this thread because it doesn't rely on a language mode.
I've been hoping that people would just let it lie, but if it keeps kicking up, I'll move the discussion to a separate thread.
Hi.
Can Swift / ObjC interop improvements be the priority for Swift 6 too? There are couple of missing capabilities (1, 2, 3) which can unlock other important developments like deterministic builds with llbuild, and proper ObjectiveC support by SPM.
Would those be breaking changes? If not, they could be in Swift 6 but would not be relevant to this thread about the Swift 6 language mode.
It looks like #3 that you linked is related to SE-0384 that's currently in review, so please make sure to offer any input you have there as well.
I don't have enough swift compiler knowledge to estimate if those would be a breaking changes or not, but to my judging, if according to this comment the proper way of supporting ObjC forward declarations is to have an index of ObjC type names in Swift, it may affect the swift module format. Deterministic builds support, if it involves changing the way how and/or where the include paths are stored, might affect the swift module format as well. Parallelization of module loading by lldb might require the change of the module format, too. So it would be great if these issues can be carefully considered and taken into account in terms of
- what is the vision for the solution to them, and
- should the solution be prioritized and implemented as a part of the Swift 6 scope.
I suspect I'm not alone in that I'm not entirely sure what a "language mode" is.