News for hackers. Stuff that matters.
Re:Swiftly 1.0 by jtrueb on Friday March 28, 2025 @06:15PM (#43510397)
??? Swift is terrible right now. Language features conflicting, async story migrating, compile issues horrific and IDE support in its infancy.
Re:Swiftly 1.0 by jmull on Friday March 28, 2025 @06:27PM (#43510500)
I haven't noticed particular issues.

I would hardly say perfect, but it's regular headaches.

Re:Swiftly 1.0 by cosmic_cheese on Friday March 28, 2025 @07:01PM (#43510815)
I’ve not had much trouble either, not recently anyway. The transition from v1 → v2 → v3 was rough, but that’s par for the course when you’re an early adopter.

The new async model looks like a bit of a bear, but that’s why there’s a toggle for it that works on a per-module level so you can incrementally adopt it whenever you see fit.

Honestly I’ve had more pain out of the Kotlin/Android experience in the past several years. If Swift suddenly became a tier 1 language option there I’d switch right away.

Re:Swiftly 1.0 by jtrueb on Friday March 28, 2025 @06:30PM (#43510531)
How many years old is your swift codebase?
Re:Swiftly 1.0 by pjmlp on Saturday March 29, 2025 @07:14AM (#43514539)
Most Objective-C codebases are brown field development.

Apple themselves, the only framework that they started from scratch in recent years was Metal, and even there only die hards use Objective-C instead of the Swift bindings.

Could be better, it isn't as bad as you make it to be, for a language whose design goals are to replace C, C++ and Objective-C for Apple.

Re:Swiftly 1.0 by jtrueb on Saturday March 29, 2025 @12:18PM (#43516607)
Having worked on the old, the migrating, and the new, I appreciate Swift more than Objective-C mostly due to IDE support.

If they had put the effort into Objective-C++ that they put into Swift, I struggle to imagine it in a worse place than Swift is in these days.

Re:Swiftly 1.0 by pjmlp on Saturday March 29, 2025 @01:43PM (#43517194)
Any language that is copy-paste compatible with C is a lost cause in regards to security.

From language features and community culture point of view.

Re:Swiftly 1.0 by jtrueb on Saturday March 29, 2025 @02:24PM (#43517454)
I think that is a bit of an overstatement given the amount of legacy code and bindings generation capabilities. I do think it had to swing towards memory safe and C++ still didn’t have a plan for smart pointers much less move semantics when Swift dev started.

Who knows what present day Objective-C++ could have been if it had been the workhorse language of choice. Maybe this profiles thing Bjarne is pushing could have been in the roadmap. We will never know.

Re:Swiftly 1.0 by pjmlp on Saturday March 29, 2025 @03:04PM (#43517702)
Not at all, besides Objective-C would have been dead by now, had it not been for NeXT reverse acquisition of Apple.

Additionally Objective-C++ never was seen anything beyond interop with existing C++ code, and only old timers like myself have its documentation, you will hardly find anything about it on Apple's documentation nowadays.