3 ms·
Go's big advantage over other memory managed languages is the very low overhead of its runtime - a hello world Go app is probably less than 5MB on disk with all
by tsimionescu 8y ago
Go's big advantage over other memory managed languages is the very low overhead of its runtime - a hello world Go app is probably less than 5MB on disk with all dependencies, and takes up less than 5 MB of RAM. This is absolutely wonderful if you want an architecture of many independent containerized apps, especially with something like Kubernetes or Docker Swarm. Compared to that, the smallest Java container on the classic Docker repos is about 90MB in size and takes up a few tens of MB RAM.
Apparently there is a new Java project [1] floating around that is promising a way to use Java exactly in this use case, but I haven't played around with it.
[1]: https://quarkus.io/ https://quarkus.io/
- apta 8y agohttp://august.nagro.us/small-java.html http://august.nagro.us/small-java.html You can run an empty Spring Boot service in 15MB of RAM or so.
- pyrale 8y agoHow many mbs for a hello world in forth ?
- tsimionescu 8y agoHey, I said 'over other memory managed languages'! I really wouldn't compare it to one of the tiniest languages this side of asm. I also think Forth would be a harder sell in a corporation than Go. Or C++. Or ASM, probably.