Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Simply put (very simple) because the GC is directly wired into the core of the language design.
-
Java does run in a VM aka JVM.
The whole design for the language - despite it's shortcomings for modern hardware - is around this central core.
Now the second part of core foundation is objects.
Java is at it's core a language specifically designed to avoid pointers "externally" and hide it. Objects will be garbage collected and the design of the core VM evolves around these core concepts.
One of the reasons Java hasn't had Value types till now is this...
You may lookup Project Valhalla - which is the major taskforce behind evolving the VM.
Note that a lot of stuff is really... Deep knowledge about what Java does and why. Black vodoo if you aren't into language design etc. -
-
Because Java is meant to always be memory safe, you're simply not intended to do manually memory management
-
@IntrusionCM Jaya also. Well, at least that was the initial Java promise.
(Disclamer : I didn't write a single java code line in about 12 years, no idea the state of java right now) -
@IntrusionCM with 11k points, I though it would be beneath you to point up a typiong mistake :)
But yeah, jaya is well going ! -
something something, java is a language explicitly without pointers, something something
quote: the creator of java -
@NoToJavaScript I wasn't sure what your comment should mean... I couldn't make sense of it. I thought Jaya was a project name, not a typo
-
@IntrusionCM I mean, without going through that sort of mind torture would anyone be able to contribute to the core of an established language (and get the fame and adulation that comes with it 🤣)?
-
-
@IntrusionCM presumably because all the kiddies want to be some permutation of Linus Torvalds
Related Rants
So, like, why doesn't Java let me do manual memory management? In C# if I want to screw up the code-base and everyone that comes after me with my half-informed experiments it totally lets me.
question
memory