Basically think Transmission or Resilio Sync, both of which are written in C. I am pretty good with C, but would rather try something new while working on this side project.
My priorities are:
1. Small Compiled binary size. 5-20mb is reasonable, larger is NOT.
2. Dependency free binary, statically linked and self contained.
3. Low memory footprint.
4. Scalable to large number of clients.
I would love to work either in Swift or TypeScript, but those don't appear to be viable options. Please correct me if I am wrong, especially when it comes to Swift.
Go and Rust are my top contenders at the moment. Any other languages I should consider? Any specific stacks that you liked in the past?
PS: I am well aware of many ways to package JS code, Python code, etc, but those options are neither dependency free in practice or particularly size and memory efficient.