Java has been used by programmers of mobile games just fine, for ages. The trick is the same that one would need with any other environment: knowing what objects you’ll need to allocate for a level, and not allocate more than that.
Oh yeah I know all about that, I’m talking about what it actually uses within the JVM 😅 It’s a messy monster of a game once modded, and there’s really nothing you can do about it other than some slight optimizations here and there.
Whenever I look at it, it just looks “comfortable.” I’m most familiar with C#, and I’m interested in some of the type features of Kotlin that are not yet a part of C#.
Java is neat: you just get what you write. There are things that really makes you cry and Java is not among them
It makes me cry when modded minecraft uses 100% of my CPU and eats up 20gb of ram. (This is only a little bit java’s fault)
Java should not be used for game engine design. Stop-the-world events and poor shaders support do not help.
JVM eats as much memory as you give it, so try playing with -Xmx param
Java has been used by programmers of mobile games just fine, for ages. The trick is the same that one would need with any other environment: knowing what objects you’ll need to allocate for a level, and not allocate more than that.
Oh yeah I know all about that, I’m talking about what it actually uses within the JVM 😅 It’s a messy monster of a game once modded, and there’s really nothing you can do about it other than some slight optimizations here and there.
Just make the 200 line boiler code setup to make some
system.stuff.thingy.log.println(“hello world”);
Then it’s not compatible with the installed vm.
This almost never happens, unless you do very niche things or have unrealistic expectations from your file system.
Niche things include using obsolete cyphers for net communication or running java code on the ibm mainframe, not something you do day to day.
Java has changed a lot since Java 8. Here’s a 3-line HelloWorld.java compatible with Java 21+:
void main() { System.out.println("Hello, World!"); }Every language is like that
Hahaha… man you have a whole life ahead of you.
What?
They’s a vibecoder.
Fine langauage, terrible build tools
Is that why there’s like 27 languages that are based on the same jvm?
I feel weirdly drawn to learning kotlin.
You should, it’s fun to use and runs on pretty much every platform.
Whenever I look at it, it just looks “comfortable.” I’m most familiar with C#, and I’m interested in some of the type features of Kotlin that are not yet a part of C#.
Of which like 3 work in production