News for hackers. Stuff that matters.
Re:The Next Chapter in Swift Build Technologies by cosmic_cheese on Saturday February 01, 2025 @03:13PM (#42901778)
Can only speak for myself, but I’d love to be able to use Swift elsewhere so I don’t need to drag around a JVM and all the things that come with it (Kotlin) or have to wrestle with Rust’s sematics and disinclination towards old style imperative desktop UI development. Swift isn't perfect of course, but it’s the closest I’ve come to a language feeling “comfy”.
Re:The Next Chapter in Swift Build Technologies by desiderantes on Saturday February 01, 2025 @05:30PM (#42903117)
So you haven't heard of Kotlin Multiplatform.
Re:The Next Chapter in Swift Build Technologies by cosmic_cheese on Saturday February 01, 2025 @06:28PM (#42903658)
Have heard of it, haven’t investigated it deeply. Looks to still have some of the less-great points of the Java ecosystem on the build side of things (gradle) which is a detractor for me.

Kotlin’s syntax is also weird/quirky in some ways.

Re:The Next Chapter in Swift Build Technologies by bartekpacia on Saturday February 01, 2025 @07:10PM (#42904004)
> Kotlin’s syntax is also weird/quirky in some ways.

I'm curious to learn what you mean by this! :)

Re:The Next Chapter in Swift Build Technologies by cosmic_cheese on Saturday February 01, 2025 @08:19PM (#42904570)
No terenary if and the elvis operator, for one. Stuff like that trips me up frequently when jumping between Kotlin and Swift/other C-likes.
Re:The Next Chapter in Swift Build Technologies by koakuma-chan on Saturday February 01, 2025 @08:35PM (#42904698)
Re:The Next Chapter in Swift Build Technologies by bartekpacia on Saturday February 01, 2025 @09:47PM (#42905204)
Ah, I see. Tbh, I actually like the lack of ternary and elvis, they are nicely handled by if expression (as the other comment notes)
Re:The Next Chapter in Swift Build Technologies by privacyis1mp on Saturday February 01, 2025 @06:15PM (#42903541)
What are your experiences of using Kotlin for modern macOS/iOS development? How's the support looking when Apple releases new XCode?
Re:The Next Chapter in Swift Build Technologies by aalimov_ on Sunday February 02, 2025 @03:35AM (#42907158)
Kotlin Multiplatform (KMP) is neat for android devs that want to be able to code for both platforms using a toolset/language they are familiar with, but for iOS development KMP is a hassle (personal opinion). I’d rather just write the code twice. Also, I actually like Xcode. As for Android Studio, up until the more recent versions the GUI felt really clunky to me (which made working in it a bit of a slog).
Re:The Next Chapter in Swift Build Technologies by mdhb on Sunday February 02, 2025 @01:02PM (#42910372)
Or Dart
Re:The Next Chapter in Swift Build Technologies by pjmlp on Sunday February 02, 2025 @01:59AM (#42906669)
You mean like the huge ecosystem of libraries for almost anything one can thing of, and IDE tooling, with 30 years of experience in production?
Re:The Next Chapter in Swift Build Technologies by rnikander on Monday February 03, 2025 @09:55PM (#42927160)
I was using Swift before. Currently learning Rust. Want to use it for cross-platform UI, and I'm stuggling with exactly what you describe there.