| Java is great on a RPi. Many people don't realize but for a garbage collected language it can be quite efficient in terms of memory used. I have a long running web server that's forced to not exceed 50 MB of heap, having an up time of one year, which means no leaks. And the great part of Java processes is that they can be fat and handle multiple things at the same time, so you only need one Java process for anything you'd like to do. It's actually hard to achieve such stats with other garbage collected languages, including Python which in my experience is a memory hog and does reference counting AFAIK, along with relying on shitty C libraries, Python processes being leaky. The other advantage that Java has, over compiled languages like Rust or Haskell is that you can compile your JAR on your workstation and then distribute just that. This is less of a concern with interpreters like Python, however anybody that tried compiling stuff with something like Haskell for RPi knows how challenging that can be. And even for Python you often end up depending on native libraries that need to be compiled from source. I mean, every Python beginner hates PostgreSQL just because of how hard it can be to install psycopg2 via pip/easy_install. In my experience Java's ease of deployment is better than anything else. You just copy a JAR and that's it. |