3 ms·
Whats the stdlib situation for swift in comparison to newish languages like go or rust. I know its not batteries included lke python - and doesnt have a massive
by rzerowan 7mo ago
Whats the stdlib situation for swift in comparison to newish languages like go or rust. I know its not batteries included lke python - and doesnt have a massive dev ecosystem of helper libs seeming to be mostly tied to macOS/iOS operating system API/ABI.
- frizlab 7mo agoA good source of available packages is the Swift Package Index. You can search here packages compatible with Linux[0]. [0] https://swiftpackageindex.com/search?query=platform%3Alinux https://swiftpackageindex.com/search?query=platform%3Alinux
- marcprux 7mo agoAnd also Android[1]! [1] https://swiftpackageindex.com/search?query=platform%3Aandroid https://swiftpackageindex.com/search?query=platform%3Aandroi...
- willtemperley 7mo agoThere are still challenges with basics like compression, which tends to involve trawling Github for the least dubious toy project. Even Apple's Compression framework is missing important algorithms like ZSTD. Another problem is the Apache Software Foundation don't seem to have any Swift maintainers, which means there really aren't any good pure Swift libraries for Arrow or Parquet. There are some really good open-source libraries from Apple like Swift Collections or Swift Binary Parsing.
- marcprux 7mo ago> There are still challenges with basics like compression FWIW, there is an active discussion on this very topic: https://forums.swift.org/t/proposal-compression-library/85413 https://forums.swift.org/t/proposal-compression-library/8541...
- willtemperley 7mo agoThat’s really useful information, thanks.
- cdcarter 7mo agoAs of very recently, the entire stdlib (i.e. "Foundation") is open source and available on all platforms Swift targets. For a while, the Linux builds had a much smaller/limited version of Foundation, but it's fully supported now.