|
|
|
|
|
by rnantes
2425 days ago
|
|
I love Swift and I think it could be one of the best languages on the server. However here are a few things that I think would make it better: - Async/Await - Swift and Swift package manager support on Windows - Swift Package Manager resources and run scripts - Backtraces - Faster/incremental builds |
|
There's some long-term plans for concurrency: https://gist.github.com/lattner/31ed37682ef1576b16bca1432ea9...
IIRC the compiler already has internal support for coroutines. Unfortunately, I think it will probably a long time before we get user-facing features like async/await.
> Swift and Swift package manager support on Windows
Swift works on Windows with all tests passing, though I imagine it's still a lot of work to compile and run (but I haven't checked).
> Swift Package Manager resources and run scripts
I agree this would be nice. Swift PM doesn't really give you much flexibility right now.
> Backtraces
Discussed in the article (section Swift Backtrace):
> This package provides support for automatically printing crash backtraces of Swift programs on Linux. Backtraces are generated by a builtin C library libbacktrace and demangled using a private Swift runtime call. We hope to improve the implementation by adopting SE-0262 when it is approved. We are also working with the Swift core team to discuss the benefits of merging this functionality into the Swift standard library.
> Faster/incremental builds
Swift has pretty good incremental builds, especially compared to the early versions. Compile times are way better than they used to be and are continuing to improve.