Hacker News new | ask | show | jobs
by Xeoncross 744 days ago
Simple, no-fuss self-hosted server software should really be Rust, or Go / C++ if needed.

All three of them allow you embed the UI assets (media, JS, CSS) into the binary and all three work great with key/value stores (badger, leveldb, rocksdb, etc..) or SQLite.

There is no install. No setup. No packages to download first. Just a simple binary that respects OS signals, has crazy good throughput, and uses so little memory that your router can run it.

Please, consider moving your JVM/Node.js/Electron project to one of these as a chance to jump into really performant software.

(There are also a lot of RSS servers written in Rust/Go/C on Github: https://github.com/search?q=rss+host+language%3AGo+language%...)

2 comments

This one is written in Go. The front end in Svelte is built into static files and served by Go. The docker container just makes it easy to build but they do distribute a single static binary
Node.js / PHP / dotnet / JVM projects can be bundled to a single binary file.

Sure, the binaries are bigger, and they cannot run on routers, but you can easily run many of them simultaneously on RaspberryPi, which is usually the bare minimum HW people use to self-host.

Performance wise, difference should be negligible for most use cases, and allows people to write software in the language that's most suited for them and the project.

> Performance wise, difference should be negligible for most use cases

I think you mean unnoticeable (or similar); the difference in performance (memory usage and CPU cycles) is certainly not negligible.