News for hackers. Stuff that matters.
Re:The Green Side of the Lua by faangguyindia on Thursday May 28, 2026 @05:49AM (#48306754)
How can that be possible, in my experience

Equivalant service in Java idles around 400mb of ram when Go service might use 70mb.

Re:The Green Side of the Lua by Capricorn2481 on Friday May 29, 2026 @01:03PM (#48326022)
Because it allocates RAM up front by default. You can reduce that yourself with a single flag. You'd be surprised how far you can tune down modern Java and still run faster than Go. I did this on the benchmark games and some of those programs that used so much RAM didn't need any of it.

There's little about Go's design that is more "Ram efficient." That's not what it was made for. It's for low latency, and if you want that in Java, there are other GC's that can do that (with similar tradeoffs to Go).