Java is painful

Thoughts on the further development of Haven & Hearth? Feel free to opine!

Java is painful

Postby stides » Fri Dec 13, 2019 5:10 pm

Are there plans to bring the game to a more current technology?
stides
 
Posts: 1
Joined: Fri Dec 13, 2019 5:09 pm

Re: Java is painful

Postby Fostik » Fri Dec 13, 2019 5:26 pm

Java is very current technology, there is nothing wrong with engine choice.
Known as zunzon. Contact discord: zunzon.
User avatar
Fostik
 
Posts: 2226
Joined: Tue Jul 05, 2011 4:08 pm
Location: EU

Re: Java is painful

Postby MagicManICT » Fri Dec 13, 2019 7:47 pm

If you have an issue with Java, maybe you could elaborate more? There's no more issues with Java than with many of the other game design APIs used today. Windows just likes to make a fuss about anything that isn't directly tied to Microsoft's pocketbooks, and Apple seems to hate Java with a passion at a level only scorned women would know.
Opinions expressed in this statement are the authors alone and in no way reflect on the game development values of the actual developers.
User avatar
MagicManICT
 
Posts: 18436
Joined: Tue Aug 17, 2010 1:47 am

Re: Java is painful

Postby shubla » Sat Dec 14, 2019 1:34 am

Fostik wrote:Java is very current technology, there is nothing wrong with engine choice.

There are many things wrong with java.
Performance is not as good as alternatives, also I think that loftar doesn't like java, also the reason why java was used in first place no longer exists (1 click launch jnlp) also there are some quite stupid things that oracle has done recently with licensing and other things...

Devs should have coded the client from scratch when they started rendering rewrite, but I think that they are deep in sunk cost fallacy now, too late to turn back.
Image
I'm not sure that I have a strong argument against sketch colors - Jorb, November 2019
http://i.imgur.com/CRrirds.png?1
Join the moderated unofficial discord for the game! https://discord.gg/2TAbGj2
Purus Pasta, The Best Client
User avatar
shubla
 
Posts: 13043
Joined: Sun Nov 03, 2013 11:26 am
Location: Finland

Re: Java is painful

Postby loftar » Sat Dec 14, 2019 3:12 am

shubla wrote:also the reason why java was used in first place no longer exists (1 click launch jnlp) also there are some quite stupid things that oracle has done recently with licensing and other things...

Devs should have coded the client from scratch when they started rendering rewrite, but I think that they are deep in sunk cost fallacy now, too late to turn back.

I don't think that's quite true. With the new launcher, there is now a 1-click launch Jar instead of JNLP, which arguably just works better than JNLP ever did. There are also other reasons for using Java, most importantly the ability to dynamically load code in a platform-independent manner. I'm not even sure how I'd replicate that on other platforms with less than either including a full copy of LLVM with the client or pre-compiling all dynamic code for all possible combinations of hardware and operating system that it might run on.
"Object-oriented design is the roman numerals of computing." -- Rob Pike
User avatar
loftar
 
Posts: 9045
Joined: Fri Apr 03, 2009 7:05 am

Re: Java is painful

Postby MagicManICT » Sat Dec 14, 2019 6:21 am

loftar wrote:I'm not even sure how I'd replicate that on other platforms with less than either including a full copy of LLVM with the client or pre-compiling all dynamic code for all possible combinations of hardware and operating system that it might run on.

There really isn't. Ideally, .Net is supposed to work in this way. In practice it doesn't (that I'm aware of, at least).

shubla wrote:Performance is not as good as alternatives

You need to dig up the performance reports. Loftar posted them at one point on the forums some years ago.
Opinions expressed in this statement are the authors alone and in no way reflect on the game development values of the actual developers.
User avatar
MagicManICT
 
Posts: 18436
Joined: Tue Aug 17, 2010 1:47 am

Re: Java is painful

Postby DPblH » Tue Dec 17, 2019 11:52 am

loftar wrote:There are also other reasons for using Java, most importantly the ability to dynamically load code in a platform-independent manner.

This is just sounds like "Java is good because I coded so". While there is no problem for whole world to download updates, you decided to use ugliest and unsafe way.
Give a man a game engine and he delivers a game. Teach a man how to make a game engine and he never delivers anything.
User avatar
DPblH
 
Posts: 431
Joined: Wed Jun 09, 2010 4:57 pm

Re: Java is painful

Postby Granger » Tue Dec 17, 2019 8:17 pm

loftar wrote:There are also other reasons for using Java, most importantly the ability to dynamically load code in a platform-independent manner. I'm not even sure how I'd replicate that on other platforms with less than either including a full copy of LLVM with the client or pre-compiling all dynamic code for all possible combinations of hardware and operating system that it might run on.

http://docs.godotengine.org/en/stable/g ... -resources

Mobile platforms: iOS, Android
Desktop platforms: Windows, macOS, Linux, UWP, *BSD, Haiku
Web using HTML5 and WebAssembly

Who needs Java?
⁎ Mon Mar 22, 2010 ✝ Thu Jan 23, 2020
User avatar
Granger
 
Posts: 9264
Joined: Mon Mar 22, 2010 2:00 pm

Re: Java is painful

Postby shubla » Tue Dec 17, 2019 8:33 pm

I guess that the launcher is faster on windows if it knows which program to open it with so its one click. (On linux I use command line so its not that fast or easy)
But one could argue that same can be achieved with C++, or then one could have launcher in Java which then downloads the game in c++.


There are many multi-platform games that don't seem to have any issues. Dynamically loading code? If you mean your res file system, one should not have used it in the first place.

magicman wrote:You need to dig up the performance reports. Loftar posted them at one point on the forums some years ago.

I only found some discussion about C# and java differences.
If somebody says that java game is as fast (or faster!) than C and C++ he is wrong.

Though I somewhat agree that HnH should not use some ready-made game engine, at least with smaller game engines (like the one that swampmonster linked) there is a chance that they just stop maintaining it or something...
Image
I'm not sure that I have a strong argument against sketch colors - Jorb, November 2019
http://i.imgur.com/CRrirds.png?1
Join the moderated unofficial discord for the game! https://discord.gg/2TAbGj2
Purus Pasta, The Best Client
User avatar
shubla
 
Posts: 13043
Joined: Sun Nov 03, 2013 11:26 am
Location: Finland

Re: Java is painful

Postby Granger » Tue Dec 17, 2019 9:34 pm

shubla wrote:Though I somewhat agree that HnH should not use some ready-made game engine, at least with smaller game engines (like the one that swampmonster linked) there is a chance that they just stop maintaining it or something...

I argue Godot engine is better, because he'll have both the full source and the right to use it as he sees fit - with Java he has neither and oracle seems to be busy killing it.
⁎ Mon Mar 22, 2010 ✝ Thu Jan 23, 2020
User avatar
Granger
 
Posts: 9264
Joined: Mon Mar 22, 2010 2:00 pm

Next

Return to Critique & Ideas

Who is online

Users browsing this forum: Claude [Bot], Google [Bot], PetalBot [Bot] and 68 guests