News for hackers. Stuff that matters.
Re:Swift Server Work Group Annual Update by Tainnor on Thursday October 31, 2019 @04:24PM (#21413334)
Apart from the fact that you ignored the other two arguments I made, the LSP is not production ready. It even says so on its very own github page: https://github.com/apple/sourcekit-lsp#status
Re:Swift Server Work Group Annual Update by scarface74 on Thursday October 31, 2019 @04:28PM (#21413376)
The XCode profiling is mostly for iOS apps - not server side code. You wouldn’t really be better off using a Mac for profiling server side code.

And what server side code “behaves differently”

Where does it say it’s not “production ready” on the GitHub link?

Re:Swift Server Work Group Annual Update by Redoubts on Thursday October 31, 2019 @06:11PM (#21414297)
> Behaves differently

For me, lots of string and substring operations throw NotImplemented exceptions on Linux, when they just work on Mac. This kinda sucks because there’s no compiletime or linttime warning for this.

Re:Swift Server Work Group Annual Update by saagarjha on Thursday October 31, 2019 @06:01PM (#21414193)
> The XCode profiling is mostly for iOS apps - not server side code. You wouldn’t really be better off using a Mac for profiling server side code.

Instruments, which ships with Xcode, is quite powerful.

Re:Swift Server Work Group Annual Update by badrequest on Thursday October 31, 2019 @05:03PM (#21413693)
Your response to "there's no good tools for profiling Swift apps on Linux" is "you only want to do that for iOS apps anyway?" I profile server code all the time, it's simply unacceptable to think I'd ever use a language that didn't facilitate it. Go does (https://blog.golang.org/profiling-go-programs). I've not used Rust, so I can't speak to that.
Re:Swift Server Work Group Annual Update by scarface74 on Thursday October 31, 2019 @05:07PM (#21413720)
You mentioned specific profiling in XCode and how that makes it necessary for server development. XCode doesn’t have much of any profiling that would be beneficial to server development - the entire topic of the submission.
Re:Swift Server Work Group Annual Update by Eric_WVGG on Thursday October 31, 2019 @05:06PM (#21413719)
> And what server side code “behaves differently” [mean]

Spend a bit of time on the Vapor Discord channel and read about all the quirks Linux users have to deal with that the rest of us don’t.

(My impression is that it’s due to Foundation libs.)

Re:Swift Server Work Group Annual Update by scarface74 on Thursday October 31, 2019 @05:08PM (#21413726)
So instead of a specific example you want us to go to a random discourse channel?
Re:Swift Server Work Group Annual Update by veidr on Thursday October 31, 2019 @06:24PM (#21414406)
But that _is_ true: the Foundation library — which because Swift has a super small core library is really kind of critical to basically any kind of program — behaves differently on Linux.

I write Swift code that runs on Linux and also on macOS or iOS, and we frequently have to have sections of "if Linux, run this code, else run this other code".

And while that's trivial to write, it's not trivial to find all the places where you have to do that.

(Nevertheless, I like Swift a lot and am using it on Linux.)