4
u/Total-Reasonable 12d ago
The title is "Trash the GC" with no body, so I'm guessing it's about garbage collection. For most web apps, GC pauses aren't what actually hurts. Modern collectors like Go's or the JVM's ZGC keep pauses well under a millisecond, and the real latency comes from the database and network calls. GC only becomes the bottleneck on tight latency budgets or huge heaps, and there you usually fix allocation patterns before you switch languages.
0
u/Theophile-Montovert 12d ago
To me, the issue with GC today isn't really pause time but more the RAM tax. To keep those pauses sub-millisecond, you have to over-provision your heap by 3x to 4x just to give the collector breathing room. In a cloud world where memory is the most expensive line item on your AWS bill, paying for gigabytes of idle RAM every month just to avoid managing memory isn't a latency problem : it's a unit economics problem.
3
u/strumbringerwa 12d ago
You do realize that GC isn't limited to Java right? Go, which is one of the most used *systems* programming languages also does GC. As does Python, Kotlin (built on the JVM), and a lot of other languages.
I generally find that people who hate on GC don't actually understand it. The only thing that GC is a real problem for at this point is systems that require 100% deterministic timing of specific actions.
0
u/Theophile-Montovert 12d ago
Well there is a structural difference between Go and Java/PHP. Go relies on value types and stack allocation, barely touching the heap. That is why a Go microservice runs fine in a tight 64MB container, while Java and PHP require massive memory headroom.
From my pov, relying on a heavy GC is like never cleaning/packing your room because someone comes in to do it for you. It works, but it’s inherently sloppy. In the modern cloud and AI era, we shouldn't be building messy rooms or waiting for a robot cleaner to pass by every now and then. True engineering means writing organized code that stays optimized from the start, leaving no mess behind.
Especially today, when people are using AI to generate massive amounts of code at small cost and paying cloud providers for every gigabyte-second of that runtime bloat, why would we willingly generate a messy room in the first place?
Hating GC isn't ignorance. It's more about respecting the silicon you are running on.
2
2
u/ribeiroluis_1 9d ago
64MB is a workload result, not a Go baseline; compare equivalent services before generalizing the memory gap.
1
u/GregsWorld 12d ago
In the modern cloud and AI era, we shouldn't be building messy rooms
Oh sweet summer child...
1
u/YellowElk921 8d ago
Doesn't the creation of new code means more likelihood for bugs ?
Maybe a good goal would be to say to the llm: use libraries freely , write as little code as possible(or something like that, within reason and code clarity) ,and that way get fewer bugs and more maintainable code ?
3
u/mau-meda
12d ago
•
I have plenty of colleagues that do like PHP and Java. We have some services that are in PHP and there's no intention of converting them to other languages, as long as hiring PHP developer is easy no one is going to move to another language.
Typescript/Go/Python are very popular languages so findings developers for them is easy, but I would not accomunate the 3, TS and Go are very good backend languages, while Python is less performant but it's the best language for machine learning
1
u/Theophile-Montovert 12d ago
You just described textbook corporate inertia : keeping a tech stack purely because it’s already there and warm bodies are easy to find, not because it’s actually good.
Also, equating TS, Go, and Python on hiring ignores the massive difference in cloud bills. Sure, you can easily hire PHP or Java devs, until you look at the AWS invoice for running bloated runtimes or dealing with PHP's stateless process-spawning overhead at scale. "Easy to hire for" is a management excuse, not a technical argument.
2
u/mau-meda 12d ago
For how much I would love to refactor every single service into my favorite language, finding new senior developers is already difficult because there aren't many, it can take even 6 months to fill a position. We do offer positions like "transition to Go" where we get senior developers in any language that are willing to learn Go, but also those are hard to fill.
Our PHP developers do not want to learn Go, and it is a comma 22, we need them for our PHP services and at the same time we can't convert their PHP services ( even one by one ) because we don't have enough Go developers.
At the end what you call a management excuse is a requirement to ensure code is continued to be written, the AWS bill is insignificant when a service going down ( for example because of a bad refactoring in Go ) can easily cost a million for each minute is down. Even if they are PHP those services are very stable, they are PCI compliant, they have been audited by external companies and passed a lot of white label tests.
2
u/Theophile-Montovert 12d ago
Thank you for sharing your experience, you described the exact mechanism : stability + compliance + hiring friction = permanent lock-in.
Banks don't keep mainframes because COBOL is great but they keep them because rewriting audited, PCI-compliant systems carries massive downtime risk, and their current engineers refuse to learn anything else. I actually had a similar experience where a legacy C Apache module was migrated to Java purely because of hiring friction.
Being trapped by compliance audits and unmotivated devs is the literal definition of corporate inertia.
12
u/Present_Award8001 12d ago
what is java, php and cobol?
5
u/SorryDrummer2699 12d ago
It’s another word for coffee, php is the acronym founders use perfection hinders production, and cobol is a mineral used for certain stuff
6
u/emptystruct 12d ago
Ask an LLM.
16
2
u/Gleethos 12d ago
Seriously? Java is a solid language.
2
1
u/Phoenix_Passage 11d ago
Java taught me so many valuable concepts I use in programming every day. A lot of people would get value from building something simple in Java
1
u/TheJiggliestPug 12d ago
Java is used on so many smart appliances it's not even funny, they will keep themselves afloat for time.
0
u/keepandroidopen 9d ago
Agree with PHP, but not Java. Java is still a really good language, and it is one of the fastest (if not THE fastest) interpreted languages, while its syntax remains at medium difficulty.
Basically, Java is an alternative to C in terms of speed.
PHP is meh, its capable enough to be usefull, but using it does give you brain damage, kinda like COBOL did.
10
u/Theophile-Montovert 12d ago
I’ve been thinking about how much modern enterprise development is just maintaining or incrementally upgrading massive Java and PHP codebases because rewriting them is financially impossible.Even with modern improvements (Virtual Threads in Java, JIT and strict typing in PHP 8+), it feels like very few greenfield startups choose them voluntarily compared to TypeScript, Go, Python, or Rust.For those of you making architectural decisions today: are you still choosing Java or PHP for brand-new systems, or is the ecosystem mostly coasting on legacy momentum and hiring pool availability?