Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I'd like to see Swift adopted more on non-Apple operating systems, some of the recent GTK apps written in Swift are pretty cool.


I'd really rather not, personally. All my Swift experiences have been fighting the abysmal compilation times.


That's a bit of an issue in Rust world, too.


Swift is pretty next level compared to Rust. Rust does seem like a fairly constant level of slow and linearly slows down as the project gets larger. Swift tends to have huge degradations on seemingly innocent changes that make the type inference go off the rails. Although at least if you spend the time to track these down you can fix the worst offenders.


Pardon me for not getting your context, but are compile times a big issue in software development? I have never programmed professionally and all my experiences with code is from a couple of classes taken in college a decade ago.


When doing UI things, a common workflow is to have code and the app side-by-side, make a small tweak in the code, recompile/hot-reload, look at he result, repeat. A long compile time makes workflow a pain.


It's not as good as Flutter/RN hot reload but SwiftUI previews do make this a lot better.


In general, you're right. But there are at least 2 times where they're absolutely vital- anytime you're dealing with a UI and data exploration in data science (since you make a lot of frequent, small changes in the goal of fine tuning something.) Everything else, best practices has good testing and partial compilations to make it moot. There's probably some other contexts that make it valuable, but I've never had to deal with those.


What apps are you thinking of? Curious to check them out.


The greenfield Ladybird browser is adopting Swift as its C++ replacement language.


Arc Browser on macOS and Windows is a decent example


There's been a lot of work on this in the last few years with Windows support, preliminary Android support is also being worked on and should appear at some point in Swift 6.


Is swift going to do what flutter and kotlin multiplatform cannot?


There probably won't be a cross-platform UI layer and many Apple frameworks won't work, although apparently the Foundation Swift rewrite already works. For a lot of companies though, simply being able to share business logic will be a big plus. At my current company we have a lot of talented Swift people and existing code written in the language so being able to share anything would be a huge advantage.

I'm biased but I personnaly find the language really productive to work with, runs fast enough for my needs and let's me target more and more platforms.


It seems something like that already exists:

https://skip.tools/blog/scrumskipper

I mostly work with flutter but Skip looks pretty cool.


I think Skip is doing a lot of this via transpilation, so I think you're expected to still write a lot of Android / Kotlin code.


sadly Gtk's support for MacOS is best efforts only




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: