It is currently Tue May 06, 2025 5:11 am

All times are UTC - 8 hours [ DST ]




Post new topic Reply to topic  [ 23 posts ]  Go to page 1, 2  Next
Author Message
Offline
 Post subject: Java ( was: How does a go server like KGS/Kaya keep running?
Post #1 Posted: Fri Sep 28, 2012 9:26 am 
Oza
User avatar

Posts: 2777
Location: Seattle, WA
Liked others: 251
Was liked: 549
KGS: oren
Tygem: oren740, orenl
IGS: oren
Wbaduk: oren
SmoothOper wrote:
Also it seems to be fairly high centered on Java as a technology, which is also a limiting technology in many ways. IE the authors of the software are unwilling to go that extra mile to make the best possible product, and it shows in the basic usefulness or functionality of their product.


As opposed to what? The truly popular go servers for desktop only provide a Windows only client which seems to be much more limiting.

Top
 Profile  
 
Offline
 Post subject: Re: How does a go server like KGS/Kaya keep running?
Post #2 Posted: Fri Sep 28, 2012 9:51 am 
Lives in sente

Posts: 946
Liked others: 1
Was liked: 41
Rank: IGS 5kyu
KGS: KoDream
IGS: SmoothOper
oren wrote:
SmoothOper wrote:
Also it seems to be fairly high centered on Java as a technology, which is also a limiting technology in many ways. IE the authors of the software are unwilling to go that extra mile to make the best possible product, and it shows in the basic usefulness or functionality of their product.


As opposed to what? The truly popular go servers for desktop only provide a Windows only client which seems to be much more limiting.



Not true, I have an IGS client on my iPad and on my windows machine. The problem is that writing one client that works everywhere will always limit the application to the functionality that is universal across platforms, so for example it won't be using touch technology on the iPad since it isn't implemented on a windows platform, and the windows platform will start noticeably slower and use more memory that is necessary due to the JVM being convenient for the programmer but inconvenient for the users. This is what I am talking about when I say Java programmers are not committed :blackeye: to going the extra mile.

Top
 Profile  
 
Offline
 Post subject: Re: How does a go server like KGS/Kaya keep running?
Post #3 Posted: Fri Sep 28, 2012 10:02 am 
Dies in gote

Posts: 52
Liked others: 0
Was liked: 19
Rank: KGS 13k
Universal go server handle: ProtoJazz
I really dont know what you mean about limitations in java. Even the new GoPanda client is in Java, And it looks pretty cool. Everything seems to be moving
more towards cross platform (Something like java) Or web based (Like Kaya)
The only real drawbacks to something like Java in a programming sence is that it is dificult to micro manage your resorces. Something a game would need
to be able to run on a mid range pc, while still running the latest DirectX. Go doesnt really need that, It has more then enough resources to run great
without the need for such heavy optimization. C++ is not as common as it used to be, and outside of very specific stuff C isnt really used for programs,

Top
 Profile  
 
Offline
 Post subject: Re: How does a go server like KGS/Kaya keep running?
Post #4 Posted: Fri Sep 28, 2012 10:04 am 
Lives in sente

Posts: 852
Location: Central Coast
Liked others: 201
Was liked: 333
Rank: KGS [-]
GD Posts: 428
SmoothOper wrote:
Not true, I have an IGS client on my iPad and on my windows machine. The problem is that writing one client that works everywhere will always limit the application to the functionality that is universal across platforms, so for example it won't be using touch technology on the iPad since it isn't implemented on a windows platform, and the windows platform will start noticeably slower and use more memory that is necessary due to the JVM being convenient for the programmer but inconvenient for the users. This is what I am talking about when I say Java programmers are not committed :blackeye: to going the extra mile.


Just thought I'd mention, there is an android application for KGS that works rather well on tablets and phones.

Top
 Profile  
 
Offline
 Post subject: Re: How does a go server like KGS/Kaya keep running?
Post #5 Posted: Fri Sep 28, 2012 10:19 am 
Lives in sente

Posts: 946
Liked others: 1
Was liked: 41
Rank: IGS 5kyu
KGS: KoDream
IGS: SmoothOper
ProtoJazz wrote:
I really dont know what you mean about limitations in java. Even the new GoPanda client is in Java, And it looks pretty cool. Everything seems to be moving
more towards cross platform (Something like java) Or web based (Like Kaya)
The only real drawbacks to something like Java in a programming sence is that it is dificult to micro manage your resorces. Something a game would need
to be able to run on a mid range pc, while still running the latest DirectX. Go doesnt really need that, It has more then enough resources to run great
without the need for such heavy optimization. C++ is not as common as it used to be, and outside of very specific stuff C isnt really used for programs,


Who is going to buy a high end computer just to have java make it behave like a mid range machine. I don't care for waiting for my clients to start the JVM, and I prefer to be able to do other things while I play go, or at least have them running in the background. Browse the internet, listen to music. Check my email etc. The lack of sophistication for managing resources means there are many programmers out there who can do it without thinking so much, and quite frankly we wished they would quit shipping borky products :roll: that consume so much resources and make the multitasking machines run so slow.

Top
 Profile  
 
Offline
 Post subject: Re: How does a go server like KGS/Kaya keep running?
Post #6 Posted: Fri Sep 28, 2012 10:23 am 
Oza
User avatar

Posts: 2777
Location: Seattle, WA
Liked others: 251
Was liked: 549
KGS: oren
Tygem: oren740, orenl
IGS: oren
Wbaduk: oren
SmoothOper wrote:
Not true, I have an IGS client on my iPad and on my windows machine.


This is why I wrote "for desktop" in my message. Some provide special clients for iOS and Android.

Top
 Profile  
 
Offline
 Post subject: Re: How does a go server like KGS/Kaya keep running?
Post #7 Posted: Fri Sep 28, 2012 10:25 am 
Judan

Posts: 6727
Location: Cambridge, UK
Liked others: 436
Was liked: 3720
Rank: UK 4 dan
KGS: Uberdude 4d
OGS: Uberdude 7d
SmoothOper wrote:
I prefer to be able to do other things while I play go, or at least have them running in the background. Browse the internet, listen to music. Check my email etc.


I play (or chat/kibitz/idle) on KGS whilst listening to music, browsing the internet, watching videos, checking email etc. I have an 8-year-old bog standard PC.

Top
 Profile  
 
Offline
 Post subject: Re: How does a go server like KGS/Kaya keep running?
Post #8 Posted: Fri Sep 28, 2012 10:28 am 
Lives in sente

Posts: 946
Liked others: 1
Was liked: 41
Rank: IGS 5kyu
KGS: KoDream
IGS: SmoothOper
Uberdude wrote:
SmoothOper wrote:
I prefer to be able to do other things while I play go, or at least have them running in the background. Browse the internet, listen to music. Check my email etc.


I play (or chat/kibitz/idle) on KGS whilst listening to music, browsing the internet, watching videos, checking email etc. I have an 8-year-old bog standard PC.



And of the tasks you mentioned how many were in java? Have you ever tried to run multiple java programs at once?

Top
 Profile  
 
Offline
 Post subject: Re: How does a go server like KGS/Kaya keep running?
Post #9 Posted: Fri Sep 28, 2012 12:42 pm 
Gosei
User avatar

Posts: 1449
Liked others: 1562
Was liked: 140
Rank: KGS 6k
GD Posts: 892
SmoothOper, I never had any problems leaving KGS open in the background while using other Java apps.

I was going to ask if you had any data on java slowing down a high-range machine to mid-range, but this is already becoming a Java discussion thread instead of what it started as. If you want to continue the discussion, we can move it elsewhere.

_________________
a1h1 [1d]: You just need to curse the gods and defend.
Good Go = Shape.
Associação Portuguesa de Go

Top
 Profile  
 
Offline
 Post subject: Re: How does a go server like KGS/Kaya keep running?
Post #10 Posted: Fri Sep 28, 2012 1:01 pm 
Lives in sente

Posts: 946
Liked others: 1
Was liked: 41
Rank: IGS 5kyu
KGS: KoDream
IGS: SmoothOper
Phelan wrote:
SmoothOper, I never had any problems leaving KGS open in the background while using other Java apps.

I was going to ask if you had any data on java slowing down a high-range machine to mid-range, but this is already becoming a Java discussion thread instead of what it started as. If you want to continue the discussion, we can move it elsewhere.


I have had trouble running multiple java programs. You either have to run multiple JVM's or run multiple programs in the same JVM, in the former case each invocation requires a standard gigabyte of data in overhead. If you are lucky enough that your Java programs can run on the same version of JVM, 1.5, 1.6, 1.7 ... then they can run in the same invocation, however the JVM doesn't implement kernel threads so if a program uses threads it can starve the other Java programs, and we all know Java programmers have mouths to feed too.

My assertion is Java programs are written in Java for the convenience of the programmer not the convenience of the user, if KGS developers had taken the effort to write an application with users in mind it may be more popular and require fewer hardware resources on the server side so that there would be more profit. Amongst other problems that KGS may have turning a buck.

Top
 Profile  
 
Offline
 Post subject: Re: How does a go server like KGS/Kaya keep running?
Post #11 Posted: Fri Sep 28, 2012 1:45 pm 
Lives in sente
User avatar

Posts: 844
Liked others: 180
Was liked: 151
Rank: 3d
GD Posts: 422
KGS: komi
SmoothOper wrote:
I have had trouble running multiple java programs. You either have to run multiple JVM's or run multiple programs in the same JVM, in the former case each invocation requires a standard gigabyte of data in overhead. If you are lucky enough that your Java programs can run on the same version of JVM, 1.5, 1.6, 1.7 ... then they can run in the same invocation, however the JVM doesn't implement kernel threads so if a program uses threads it can starve the other Java programs, and we all know Java programmers have mouths to feed too.


Just to address a couple of the falsities above

In general, you cannot run multiple java applications in the same JVM. One notable exception are application servers like Tomcat, which host multiple concurrent applications, but these are not standalone applications, and have to engineered in a very specific way. I'm aware of no widely used equivalent that will do the same for arbitrary desktop applications.

Java applications, regardless of the version they were compiled with, will usually run in a more recent version of java (i.e. something compiled in 1.5 will run in a 1.7 JVM). Write once, run anywhere.

There is no "standard gigabyte" overhead. Java applications can consume a lot of memory, true, but there's no gigabyte minimum. KGS right now is running 110 megs for me ("Working Set Memory") in Windows 7 64 bit. A lot, to be sure, but hardly a gigabyte.

Top
 Profile  
 
Offline
 Post subject: Re: How does a go server like KGS/Kaya keep running?
Post #12 Posted: Fri Sep 28, 2012 1:57 pm 
Lives in sente

Posts: 946
Liked others: 1
Was liked: 41
Rank: IGS 5kyu
KGS: KoDream
IGS: SmoothOper
quantumf wrote:
SmoothOper wrote:
I have had trouble running multiple java programs. You either have to run multiple JVM's or run multiple programs in the same JVM, in the former case each invocation requires a standard gigabyte of data in overhead. If you are lucky enough that your Java programs can run on the same version of JVM, 1.5, 1.6, 1.7 ... then they can run in the same invocation, however the JVM doesn't implement kernel threads so if a program uses threads it can starve the other Java programs, and we all know Java programmers have mouths to feed too.


Just to address a couple of the falsities above

In general, you cannot run multiple java applications in the same JVM. One notable exception are application servers like Tomcat, which host multiple concurrent applications, but these are not standalone applications, and have to engineered in a very specific way. I'm aware of no widely used equivalent that will do the same for arbitrary desktop applications.

Java applications, regardless of the version they were compiled with, will usually run in a more recent version of java (i.e. something compiled in 1.5 will run in a 1.7 JVM). Write once, run anywhere.

There is no "standard gigabyte" overhead. Java applications can consume a lot of memory, true, but there's no gigabyte minimum. KGS right now is running 110 megs for me ("Working Set Memory") in Windows 7 64 bit. A lot, to be sure, but hardly a gigabyte.



There is a default setting, which may be interpreted as standard. http://stackoverflow.com/questions/4667 ... determined 2GB WOW! that is as much memory as my machine has. I wouldn't trust anything a Java programmer says, because I was being nice and giving them the benefit of the doubt, but gee whiz two gigabytes that is like twice as many as one gigabyte. Even a Go player can do that math ;-)

They also used to ship Java in high priority mode, so that they could fake Java being comparable to C programs in speed, by starving the OS and the other programs of CPU cycles. MS fixed that, but man is that not nice(where nice is a technical term for a program that insists on running in high priority mode when it doesn't need to). Please set the record straight by all means.

Top
 Profile  
 
Offline
 Post subject: Re: How does a go server like KGS/Kaya keep running?
Post #13 Posted: Fri Sep 28, 2012 2:43 pm 
Tengen

Posts: 4382
Location: Caldas da Rainha, Portugal
Liked others: 499
Was liked: 733
Rank: AGA 3k
GD Posts: 65
OGS: Hyperpape 4k
Let's just say that you're about to get called on a very creative reading of that post.

*grabs popcorn*

_________________
Occupy Babel!

Top
 Profile  
 
Offline
 Post subject: Re: How does a go server like KGS/Kaya keep running?
Post #14 Posted: Fri Sep 28, 2012 3:24 pm 
Lives in sente

Posts: 852
Location: Central Coast
Liked others: 201
Was liked: 333
Rank: KGS [-]
GD Posts: 428
hyperpape wrote:
Let's just say that you're about to get called on a very creative reading of that post.

*grabs popcorn*


Well, while your popcorn is still warm....

SmoothOper wrote:

There is a default setting, which may be interpreted as standard. http://stackoverflow.com/questions/4667 ... determined


The exact quote from your own link:

In the J2SE platform version 1.4.2 by default the following selections were made

initial heap size of 4 Mbyte
maximum heap size of 64 Mbyte

For Java 5 if you have greater than or equal to 2GB:

"maximum heap size: Smaller of 1/4th of the physical memory or 1GB"

Top
 Profile  
 
Offline
 Post subject: Re: How does a go server like KGS/Kaya keep running?
Post #15 Posted: Fri Sep 28, 2012 7:01 pm 
Lives in sente

Posts: 946
Liked others: 1
Was liked: 41
Rank: IGS 5kyu
KGS: KoDream
IGS: SmoothOper
Mef wrote:

"maximum heap size: Smaller of 1/4th of the physical memory or 1GB"


Lets see how many of those JVM's you can get running on a 2gig box hehe...

Sure I may be wrong on the specifics, but anyhow if you look at it java programmers don't look very good.

Top
 Profile  
 
Offline
 Post subject: Re: How does a go server like KGS/Kaya keep running?
Post #16 Posted: Fri Sep 28, 2012 7:03 pm 
Lives in sente

Posts: 800
Liked others: 141
Was liked: 123
Rank: AGA 2kyu
Universal go server handle: speedchase
SmoothOper wrote:
Sure I may be wrong on the specifics, but anyhow if you look at it java programmers don't look very good.

I'm sorry that you are inconvenienced by trying to run all that free software that people spend lots time to write.:roll:

Top
 Profile  
 
Offline
 Post subject: Re: How does a go server like KGS/Kaya keep running?
Post #17 Posted: Fri Sep 28, 2012 10:57 pm 
Dies in gote

Posts: 52
Liked others: 0
Was liked: 19
Rank: KGS 13k
Universal go server handle: ProtoJazz
as a note too, java is far more common then a lot of people realize, Goproblems is one site I can think of offhand that is mostly a java applet, And most android apps are java and run in a modified JVM.

Top
 Profile  
 
Offline
 Post subject: Re: How does a go server like KGS/Kaya keep running?
Post #18 Posted: Sat Sep 29, 2012 2:11 am 
Lives in sente

Posts: 946
Liked others: 1
Was liked: 41
Rank: IGS 5kyu
KGS: KoDream
IGS: SmoothOper
speedchase wrote:
SmoothOper wrote:
Sure I may be wrong on the specifics, but anyhow if you look at it java programmers don't look very good.

I'm sorry that you are inconvenienced by trying to run all that free software that people spend lots time to write.:roll:


Well, I am not sorry, that you can't make any money on your free apps, because Java programmers are poor programmers.

Top
 Profile  
 
Offline
 Post subject: Re: How does a go server like KGS/Kaya keep running?
Post #19 Posted: Sat Sep 29, 2012 8:41 am 
Lives in sente

Posts: 800
Liked others: 141
Was liked: 123
Rank: AGA 2kyu
Universal go server handle: speedchase
SmoothOper wrote:
Well, I am not sorry, that you can't make any money on your free apps.

In general free apps don't make any money, regardless of how many people use them
SmoothOper wrote:
because Java programmers are poor programmers.

This is a pretty big generalization, I still don't understand why you think this, or what you want to discuss

Top
 Profile  
 
Offline
 Post subject: Re: How does a go server like KGS/Kaya keep running?
Post #20 Posted: Sat Sep 29, 2012 11:11 am 
Lives in sente

Posts: 946
Liked others: 1
Was liked: 41
Rank: IGS 5kyu
KGS: KoDream
IGS: SmoothOper
speedchase wrote:
SmoothOper wrote:
Well, I am not sorry, that you can't make any money on your free apps.

In general free apps don't make any money, regardless of how many people use them
SmoothOper wrote:
because Java programmers are poor programmers.

This is a pretty big generalization, I still don't understand why you think this, or what you want to discuss


I am just defending my assertion that the technology that was chosen for KGS could be part of the reason it isn't making any money, stemming in large from the fact that Java programmers choose the technology in a convenient for the programmer mode, rather than shipping the best possible product. As you can see the Java community functions as a loosely knit semi-informed political organization that has an interest in purporting several untruths about what Java is and what its performance and requirements are, so these conversations can drag on.

Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 23 posts ]  Go to page 1, 2  Next

All times are UTC - 8 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group