News for hackers. Stuff that matters.
Re:Making Games with Kotlin by moksly on Wednesday December 11, 2019 @03:57AM (#21760745)
Assuming JVM is (or will be) installed is a little risky though, isn’t it? We got rid of it in our enterprise setting some years ago, and we hardly seem unique in having removed JAVA from our available techs in our area.

I know games aren’t exactly meant for enterprise, but it’s been even longer since I had a JVM on my private computer. Maybe I’m alone in that?

This is not to shit in Kotlin, it’s certainly a nice language, but I wouldn’t expect widespread adoption to be what it was a decades ago.

Re:Making Games with Kotlin by matsemann on Wednesday December 11, 2019 @04:03AM (#21760772)
One usually just bundles a jre and package the whole thing to a binary[0]. You wouldn't even know the game you're playing is running java. One could probably improve this further with modules and the newer additions to java/jvm (jlink).

[0]: https://github.com/libgdx/libgdx/wiki/Bundling-a-JRE

Re:Making Games with Kotlin by dharmab on Wednesday December 11, 2019 @07:56AM (#21761935)
Yup, with jlink you don't need to ship a full JRE, just the parts your binary actually uses. The user just runs a small binary and doesn't need to install and update a separate JRE.
Re:Making Games with Kotlin by numlock86 on Wednesday December 11, 2019 @04:03AM (#21760773)
The alternative (which is against the initial argument that you just ship a .jar) seems to be to include a JRE with your software. Minecraft and LibreOffice do this for example.
Re:Making Games with Kotlin by pjmlp on Wednesday December 11, 2019 @04:10AM (#21760808)
JRE is no more.

You just create a custom image for you application with the Java linker.

Re:Making Games with Kotlin by croo on Wednesday December 11, 2019 @05:29AM (#21761187)
I haven't seen a pc without java since forever. But I'm a java developer so each to his own bubble huh? :)
Re:Making Games with Kotlin by mbel on Wednesday December 11, 2019 @05:39AM (#21761245)
Well I could say that I haven't seen a PC with Java since forever. But I'm a C developer so perhaps I live in another bubble ;)
Re:Making Games with Kotlin by elamje on Wednesday December 11, 2019 @06:00AM (#21761354)
I’m neither and I can tell you that Java is most places that game players are.
Re:Making Games with Kotlin by shantly on Wednesday December 11, 2019 @09:32AM (#21762666)
My recent java experience is that you end up having to tune it and keep multiple versions and screw around a bunch if you’re doing more than one thing with it. Stick to Android dev and it’ll be fine after the initial config, but switch to something else or try to run some GUI java project off Github and you’ll lose time configuring it. I “nope” out of a lot of Java stuff as soon as I see it’s Java, as a result. If anything the situation seems a little worse than it was in, say, the ‘00s.
Re:Making Games with Kotlin by croo on Thursday December 12, 2019 @04:49AM (#21770606)
I sympathize with your problems, I also had to juggle multiple versions for a period of time on multiple projects. Docker thankfully eliminated that and even without it the most you have to do now days is to point "$JAVA_HOME" to another folder. Java and it's ecosystem is better than ever and the language updates since java 8 are great to work with. The JVM is great. Spring boot finally removed most of the the multiple days config issues. Everything is mature, every problem has one or more library to solve it.
Re:Making Games with Kotlin by rumanator on Wednesday December 11, 2019 @05:08AM (#21761086)
> Assuming JVM is (or will be) installed is a little risky though, isn’t it?

At least in Linux the package management systems enable packagers to specify dependencies such as the JVM. In Windows perhaps it's possible to bundle a JVM of choice.