News for hackers. Stuff that matters.
Re:Swift Numerics by todd3834 on Thursday November 07, 2019 @11:02PM (#21479874)
I recently tried to use Swift for a UDP server that was meant to run on Linux. I quickly realized the Network Framework is for iOS/MacOS/iPadOS only.

I ended up using Go and I'm happy with it. I really wanted to do full stack Swift though. Just so I could become better at the language.

Re:Swift Numerics by favorited on Friday November 08, 2019 @03:18AM (#21480669)
Honestly that's no different than realizing that AVFoundation or CoreGraphics is Apple-platform-only...

Network.framework is an Objective-C framework (I'm honestly surprised I don't seen any C++ symbols in the binary) – it was never supposed to be a cross-platform framework.

SwiftNIO is the official base of the OSS Swift cross-platform networking toolchain. It's the equivalent of Java's Jetty package.

Re:Swift Numerics by ynx on Friday November 08, 2019 @04:37AM (#21480959)
Netty, not Jetty.
Re:Swift Numerics by favorited on Friday November 08, 2019 @12:51PM (#21484809)
Right, thanks!