5 ms·
I do feel like there’s a “X will be the year of Linux on the desktop!” quality to this stuff. 2024 will be the year of Swift on the server/embedded systems/anyw
by afavour 2y ago
I do feel like there’s a “X will be the year of Linux on the desktop!” quality to this stuff. 2024 will be the year of Swift on the server/embedded systems/anywhere that isn’t iOS/macOS!
I really enjoy programming in Swift. But I’m not convinced it’ll ever escape the confines of iOS development because there isn’t that persuasive a case for it. It’s nice. But “nice” isn’t enough motivation to create an entire ecosystem. You’re not going to be able to reuse most iOS-oriented swift code in an embedded system so you’ll be starting from scratch.
- frou_dh 2y ago> “nice” isn’t enough motivation to create an entire ecosystem. Just look at backend web development. There's prodigious duplication of effort by each language camp to create their own web framework, database libraries, etc. Why does each camp bother? They just think their chosen language is really nice.
- steve1977 2y agoInterestingly, there is not too much momentum behind Swift-based web frameworks, despite the language being perceived as nice by many (as far as I can tell).
- deleted 2y ago[deleted]
- SV_BubbleTime 2y agoThe practical use case here imo, is that your low level stuff, your vendor material, your legacy code is all C. Your high level application gets to be in swift and create objects, I assume have concurrency, a robust error and exception system. I like it. I’m not sure it’s going to beat Rust or Zig, but I wouldn’t be upset if it did. I would seriously look at it for the next project. I love that you can keep VS Code, CMake, and dockerize the environment. What I’m not sure about is the debugging.
- pjmlp 2y agoIt suffices to be the language of choice on Apple platforms. This kind of embedded stuff is also used internally at Apple, and is preparing the work to replace firmware stuff like iBoot that is written on a Apple specific Safe C dialect.
- hbn 2y agoWhat did Go do to make it so ubiquitous? Seems like it was mostly just a “nice” language
- pzo 2y agoIt got introduced at time when completion was less fierce and competing languages sucked at that time. Sometimes it's just as well about timing. Swift, Kotlin, Typescript, Rust didn't exist at that time. If today Go got introduced for the first time I doubt it would gain any momentum. Swift is probsbly to late to the party considering big competition amount languages and their ecosystems being "nice" today is not enough.
- w10-1 2y agoGo drove the cloud-native migration from java/enterprise, riding the wave from behemoth machines to small containers, as a result of Google deciding to build alternatives to Java/Oracle and raw C. The ease of the language and the self-contained binaries just changed how fast that could happen, not whether it would happen.
- steve1977 2y agoKubernetes
- serial_dev 2y agoProbably many things... Google hype, popular cloud native open source projects showing its potential, well known creators, good to acceptable tooling, strong standard library, low memory footprint, concurrency, simplicity, productivity, the whole philosophy behind it. Some of these are questionable, but I heard all these by some people. What does this say about Swift's chances to gain mainstream popularity outside of the Apple ecosystem? Probably nothing, as the languages and the circumstances are so different.
- afavour 2y agoBeing backed by Google was huge. Swift is backed by Apple but not outside of their specific use cases. If Apple had announced they were going to start making all their backend services in Swift too I imagine things could have looked very different.
- pohl 2y agoIsn’t their motivation just the need to create verifiable foundations for the platform for AI private cloud compute? Everything else should just be gravy.
- wahnfrieden 2y agohttps://skip.tools https://skip.tools offers a compelling option for going SwiftUI-first and having Android too. And a vision (and reference implementation) for how to start doing this on more platforms too.