6 ms·
Swiftly 1.0
- zero0529 2y agoSo is this like UV for swift or what is the gain here or can I ditch Xcode and use this instead?
- nindalf 2y agoIt's like rustup or nvm (node version manager) for Swift. Swiftly installs Swift. If all you needed Xcode for was to install Swift then yes, you can replace Xcode with swiftly.
- jagged-chisel 2y agoKeep in mind, however, that there seems to be an intentional handicap if you’re on an older version of macOS: you can’t install the latest Swift. I have an Intel-based MacBook Pro that doesn’t update beyond macOS 13, and it runs neither Xcode 16 nor Swift 6. Presumably, one might be able to build Swift 6 from source. My workaround is containers.
- throwaway48476 2y agoApple is even more egregious than windows 10 years of support. As computers aren't getting faster at the same rate as before companies are forcing obsolescence more.
- curun1r 2y ago> that doesn’t update beyond macOS 13 ...in a way supported by Apple. But OpenCore [0] makes installing the latest OS on older Macs relatively simple. You lose out on some features that your hardware doesn't support (e.g. Apple Intelligence), but most of that is unnecessary at best. [0] https://dortania.github.io/OpenCore-Legacy-Patcher/ https://dortania.github.io/OpenCore-Legacy-Patcher/
- pccole 2y agono, its similar to pyenv, its for installing, updating, managing swift lang versions.
- sidkshatriya 2y agoWhat happened to Swift ? I used to hear so much about it -- now not so much. Maybe I'm in my echo chamber ?
- pjmlp 2y agoMostly likely your echo chamber is outside Apple developer ecosystem? Swift is doing great.
- jtrueb 2y ago??? Swift is terrible right now. Language features conflicting, async story migrating, compile issues horrific and IDE support in its infancy.
- jmull 2y agoI haven't noticed particular issues. I would hardly say perfect, but it's regular headaches.
- jtrueb 2y agoHow many years old is your swift codebase?
- cosmic_cheese 2y agoI’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.
- pjmlp 2y agoMost 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.
- K0nserv 2y agoSteve Klabnik talked about how he and rest of the early Rust team recognised the importance of tools like this on a recent Oxide and Friends episode[0], it's well worth a listen. I think this is a positive sign for Swift and Apple's continued push to increase it's viability as a general purposes language outside of Apple's ecosystems. It's still early, but directionally it's promising. 0: https://oxide-and-friends.transistor.fm/episodes/a-happy-day-for-rust https://oxide-and-friends.transistor.fm/episodes/a-happy-day...
- ein0p 2y agoI know a number of people at Apple, some of them pretty high up. The long and short of it is, Apple doesn't really give a shit about the world outside its ecosystem. It will interoperate when it has to (e.g. wifi, bluetooth, web standards) but if an effort does not help with selling Apple hardware, that effort will not get headcount or funding. So whatever multiplatform efforts you are seeing happen in spite of, not thanks to, Apple's stance.
- K0nserv 2y agoI don't doubt that, but someone is definitely trying. For example they moved Swift out of the Apple GitHub org and the announcement blog post[0] calls out Swift's use outside Apple's ecosystems. Their blog archives has more posts that I read as a focus on improving Swift outside the Apple ecosystem, some examples: * Updating the Visual Studio Code extension for Swift[1] * Introducing Oblivious HTTP support in Swift[2] * How Swift's server support powers Things Cloud[3] I can see arguments for how wider adoption of Swift outside of Apple, and especially in the server ecosystem, helps Apple. In particular, lots of apps are being written using React Native and Flutter and at least one hurdle there is that Swift lacks developer mindshare. 0: https://www.swift.org/blog/swiftlang-github/ https://www.swift.org/blog/swiftlang-github/ 1: https://www.swift.org/blog/the-next-chapter-in-swift-build-technologies/ https://www.swift.org/blog/the-next-chapter-in-swift-build-t... 2: https://www.swift.org/blog/introducing-swift-nio-oblivious-http/ https://www.swift.org/blog/introducing-swift-nio-oblivious-h... 3: https://www.swift.org/blog/how-swifts-server-support-powers-things-cloud/ https://www.swift.org/blog/how-swifts-server-support-powers-...
- kamil55555 2y agoI wish using Swift for development outside Apple world would be feasible.
- danpalmer 2y agoI’ve been using it for a hobby project targeting a Linux server deployment. It’s good, and I don’t think the Apple ties are what’s holding it back now, I think it’s a relative lack of good frameworks and libraries. What’s there is often excellent quality, but it’s still a bit hit and miss even for common library use cases. I often think about what my day-1 stack would be for a new company. Swift would be on the table as an option.
- liuliu 2y agoIf you stick with x86_64 land and > Swift 6.0, there is nothing infeasible about it.
- timsneath 2y agoVery feasible. From embedded (https://www.swift.org/blog/embedded-swift-examples/ https://www.swift.org/blog/embedded-swift-examples/) to Linux apps (https://www.swift.org/blog/adwaita-swift/ https://www.swift.org/blog/adwaita-swift/) to tiny games (https://www.swift.org/blog/byte-sized-swift-tiny-games-playdate/ https://www.swift.org/blog/byte-sized-swift-tiny-games-playd...) to ML (https://www.swift.org/blog/mlx-swift/ https://www.swift.org/blog/mlx-swift/) to Windows (https://www.swift.org/blog/swift-everywhere-windows-interop/ https://www.swift.org/blog/swift-everywhere-windows-interop/) to Private Cloud Compute (https://github.com/apple/security-pcc https://github.com/apple/security-pcc)...
- tiffanyh 2y agoZig Isn’t a major reason why people enjoy Zig so much is because of the built-in tooling such as this, having it Day 1 with the language.
- bonestamp2 2y agoThis is cool. I haven't looked a swift since it first came out but I wonder if their documentation is any better now... I remember trying to do things and I'd read about commands on Stack overflow that I couldn't even find in their documentation, or they were listed in the documentation but had literally no useful information about them.
- lukeh 2y agoThings I like about Swift: works great on Linux, fun to write in, excellent interoperability with C, C++ and even Java. Thinks I like less: compile times, binary size, runtime type introspection overhead (Codable performance was killing our application), getting async/await right (still that's always going to be hard whichever way you slice it).
- mleonhard 2y agoWill this make it possible to run unit tests of code that needs to import UIKit, outside of Simulator?
- fithisux 2y agoWindows support would be good to have for people to try it out.
- natemcintosh 2y agoI think this will be a big boost to the swift ecosystem. The ability to add and remove language versions as needed is so convenient, and I'm glad more and more languages are adding it.