Swift on home servers

This hardware category has been floating around for decades, but is finally starting to be productized and made easy to use. Swift would be ideal for this newly growing use case, as an applications language that supports the dominant server OS, linux. Obviously people have been using Mac Minis as home servers for a while too, and I'd like to try using the new linux Containers to run more home server software on my macOS desktop.

How have you been using Swift on home servers already and what else would you like to see to improve Swift for this? Personally, I'd like to get Swift working well on RISC-V boards like this, as I'd like to set up a home server with some board like that.

1 Like

Proper Locale.current support would be nice (I format some dates and some numeric values on my dashboard, currently solely based on LANG): Locale.current returns en_US even when the user's locale settings is different on Linux · Issue #717 · swiftlang/swift-foundation · GitHub

All 3 of my swift-nio based services get up to around 30MB of memory usage according to docker stats over a varying amount of time from the initial ~3MB. Is that expected? Not really a problem for me with 16GB RAM but it still would be nice to stay around the RAM usage at start.

These are my projects:

4 Likes

Not related to home server, just wanted to say that also witnessed it—going from 15Mb to over 40 in week or two. Tried to catch, but had no luck, and then had no time, so still not sure why. :thinking: Would be nice if someone seen the same can investigate.