It is currently Tue May 06, 2025 3:24 pm

All times are UTC - 8 hours [ DST ]




Post new topic Reply to topic  [ 20 posts ] 
Author Message
Offline
 Post subject: How does one go about writing a go server?
Post #1 Posted: Sun Jun 24, 2012 7:31 am 
Dies in gote

Posts: 45
Liked others: 3
Was liked: 18
Rank: Kgs 5 Kyu
I was told to write my own go server in egr by an user today because I made some disgruntled remarks about how long it is taking wms to fix the stone sounds.

So how exactly does one go about writing a go server? I am not interested in operating a go server, just in creating one for the kick of it.

Top
 Profile  
 
Offline
 Post subject: Re: How does one go about writing a go server?
Post #2 Posted: Sun Jun 24, 2012 7:41 am 
Honinbo

Posts: 10905
Liked others: 3651
Was liked: 3374
See http://senseis.xmp.net/?NNGS :)

_________________
The Adkins Principle:
At some point, doesn't thinking have to go on?
— Winona Adkins

Visualize whirled peas.

Everything with love. Stay safe.


This post by Bill Spight was liked by: xed_over
Top
 Profile  
 
Offline
 Post subject: Re: How does one go about writing a go server?
Post #3 Posted: Sun Jun 24, 2012 4:25 pm 
Lives with ko

Posts: 294
Liked others: 25
Was liked: 78
Rank: 6d
KGS: Dexmorgan
Wbaduk: c0nanbatt
duckweed wrote:
I was told to write my own go server in egr by an user today because I made some disgruntled remarks about how long it is taking wms to fix the stone sounds.

So how exactly does one go about writing a go server? I am not interested in operating a go server, just in creating one for the kick of it.



If you have to ask this question, then you would need to learn a lot to harness the abilities to build one.
Its a lot of work and effort to build a multiplayer system that just works, and an inmense one to make it a good experience.
I assume you are a programmer?


However, you can definitely collaborate on an existing server. There are some open sourced ones, and Kaya itself has parts of it open-sourced so people can collaborate.

_________________
Founder of Kaya.gs

Top
 Profile  
 
Offline
 Post subject: Re: How does one go about writing a go server?
Post #4 Posted: Sun Jun 24, 2012 4:36 pm 
Lives in sente
User avatar

Posts: 801
Location: Amsterdam (NL)
Liked others: 353
Was liked: 107
Rank: KGS 7 kyu forever
GD Posts: 460
kgs move sounds are like bullets into your ear. Try to listen to Guo Juan's teaching audio lessons at KGSplus. You'll want to switch off the sound but then her voice is gone as well.

Top
 Profile  
 
Offline
 Post subject: Re: How does one go about writing a go server?
Post #5 Posted: Sun Jun 24, 2012 4:50 pm 
Dies in gote

Posts: 45
Liked others: 3
Was liked: 18
Rank: Kgs 5 Kyu
Kaya.gs wrote:

If you have to ask this question, then you would need to learn a lot to harness the abilities to build one.
Its a lot of work and effort to build a multiplayer system that just works, and an inmense one to make it a good experience.
I assume you are a programmer?


However, you can definitely collaborate on an existing server. There are some open sourced ones, and Kaya itself has parts of it open-sourced so people can collaborate.


I'm just curious how hard it would be to write a basic one.



cyclops wrote:
kgs move sounds are like bullets into your ear. Try to listen to Guo Juan's teaching audio lessons at KGSplus. You'll want to switch off the sound but then her voice is gone as well.


Yeah, it always puzzled me why no one ever bought her a noise cancelling microphone or just told her to switch off kgs sounds.

Top
 Profile  
 
Offline
 Post subject: Re: How does one go about writing a go server?
Post #6 Posted: Sun Jun 24, 2012 9:01 pm 
Dies with sente

Posts: 72
Liked others: 1
Was liked: 24
Rank: KGS 2k
KGS: cata
duckweed wrote:
Kaya.gs wrote:

If you have to ask this question, then you would need to learn a lot to harness the abilities to build one.
Its a lot of work and effort to build a multiplayer system that just works, and an inmense one to make it a good experience.
I assume you are a programmer?


However, you can definitely collaborate on an existing server. There are some open sourced ones, and Kaya itself has parts of it open-sourced so people can collaborate.


I'm just curious how hard it would be to write a basic one.


If you don't know how to program, it'll take you several dozen hours to get to making useful progress, and there'll be many hundreds of hours of roadbumps after that before you get something useful working. Them's the breaks. I'd start out by finding a friend who knows how to program and asking if they'll recommend you resources to learn with.

If you do know how to program, you already spent those hours; it's not a particularly unusual or difficult project, so hop to it.

Top
 Profile  
 
Offline
 Post subject: Re: How does one go about writing a go server?
Post #7 Posted: Mon Jun 25, 2012 3:44 am 
Honinbo

Posts: 9552
Liked others: 1602
Was liked: 1712
KGS: Kirby
Tygem: 커비라고해
Are you asking how to program, or...? If you already know how to program, why not start with an SGF parser... Or maybe before that, think of some of the features you want your server to have.

Another problem is, even if you write a server, it will take time to get a lot of people using your server, unless it's really a lot coolaer than the existing ones. And if it's less cool than the existing ones, that may never happen.

Either way, I won't discourage you from trying. If nothing else, you'll learn something... :-)

_________________
be immersed

Top
 Profile  
 
Offline
 Post subject: Re: How does one go about writing a go server?
Post #8 Posted: Mon Jun 25, 2012 4:14 am 
Dies in gote

Posts: 45
Liked others: 3
Was liked: 18
Rank: Kgs 5 Kyu
Kirby wrote:
Are you asking how to program, or...? If you already know how to program, why not start with an SGF parser... Or maybe before that, think of some of the features you want your server to have.

Another problem is, even if you write a server, it will take time to get a lot of people using your server, unless it's really a lot coolaer than the existing ones. And if it's less cool than the existing ones, that may never happen.

Either way, I won't discourage you from trying. If nothing else, you'll learn something... :-)



I do know some programming, just not anything I would need to do something like this.

I guess I would need to learn python, javascript, html and css and start with trying write to a goban on a web page.

I don't plan to be a go server operator. I think when the programmer is the operator, it is not a good arrangement.


Last edited by duckweed on Mon Jun 25, 2012 7:59 am, edited 1 time in total.
Top
 Profile  
 
Offline
 Post subject: Re: How does one go about writing a go server?
Post #9 Posted: Mon Jun 25, 2012 7:16 am 
Lives in gote
User avatar

Posts: 655
Location: Czechia
Liked others: 29
Was liked: 41
Rank: 1d KGS
KGS: Laman
duckweed wrote:
I do know some programming, just not anything I would need to do something like this.

I guess I would need to learn python, javascript, html and css and start with trying write a goban on a web page.

I don't plan to be a go server operator. I think when the programmer is the operator, it is not a good arrangement.

i don't think you will make it, but everything you learn by the way is good to know, so definitely go for it while your enthusiasm lasts

as a side note, the web solution is popular nowadays and i like it personally, but it is by no means necessary, especially not for such a "for fun" project. any language would work. which ones can you speak?

_________________
Spilling gasoline feels good.

I might be wrong, but probably not.

Top
 Profile  
 
Offline
 Post subject: Re: How does one go about writing a go server?
Post #10 Posted: Mon Jun 25, 2012 9:38 am 
Oza
User avatar

Posts: 2777
Location: Seattle, WA
Liked others: 251
Was liked: 549
KGS: oren
Tygem: oren740, orenl
IGS: oren
Wbaduk: oren
Someone already mentioned this above. If you want to see what it takes to write a go server, you can always just take a look at the nngs source code. A few years ago, I compiled it and ran it for fun to check it out.

I think all you really need to write a good server is C, but I'm biased by my day job. :)

Top
 Profile  
 
Offline
 Post subject: Re: How does one go about writing a go server?
Post #11 Posted: Mon Jun 25, 2012 6:53 pm 
Dies with sente

Posts: 72
Liked others: 1
Was liked: 24
Rank: KGS 2k
KGS: cata
Yeah, if you don't have previous experience doing web development, I don't see why there'd be any need to jump down that particular rabbit hole for this project. You could just write the server and client in whatever language you're already comfortable with.

Top
 Profile  
 
Offline
 Post subject: Re: How does one go about writing a go server?
Post #12 Posted: Tue Jun 26, 2012 10:04 am 
Lives in gote
User avatar

Posts: 450
Location: Portland, OR USA
Liked others: 257
Was liked: 287
KGS: wms
Here's how I did it:

1. Spend a few years designing and implementing communications protocols.
2. Learn Java.
3. Write go server with experience from 1 and 2.
4. ???
5. Profit!

I'm still working out step 4.

By the way, I will not be "fixing" the stones sounds. It's a java bug, it works in older java, and at this point I'm fed up and not fixing java bugs any more. Any time I have is going to an HTML client so I can spend my time fixing web browser regressions instead.

Top
 Profile  
 
Offline
 Post subject: Re: How does one go about writing a go server?
Post #13 Posted: Tue Jun 26, 2012 10:41 am 
Judan

Posts: 6727
Location: Cambridge, UK
Liked others: 436
Was liked: 3720
Rank: UK 4 dan
KGS: Uberdude 4d
OGS: Uberdude 7d
4. Sell ad-hoc KGS+ lectures on demand?


This post by Uberdude was liked by: wms
Top
 Profile  
 
Offline
 Post subject: Re: How does one go about writing a go server?
Post #14 Posted: Tue Jun 26, 2012 4:18 pm 
Oza

Posts: 2264
Liked others: 1180
Was liked: 553
wms wrote:
so I can spend my time fixing web browser regressions instead.

something tells me that you'll soon be wishing you were fixing java bugs instead of dealing with the plethora of browser incompatibilities :)


This post by xed_over was liked by: oren
Top
 Profile  
 
Offline
 Post subject: Re: How does one go about writing a go server?
Post #15 Posted: Wed Jun 27, 2012 7:49 am 
Lives with ko
User avatar

Posts: 242
Location: Pa, Va
Liked others: 15
Was liked: 64
Rank: KGS 4 Kyu
GD Posts: 2067
KGS: mgd
DGS: mdobbins
xed_over wrote:
wms wrote:
so I can spend my time fixing web browser regressions instead.

something tells me that you'll soon be wishing you were fixing java bugs instead of dealing with the plethora of browser incompatibilities :)


Make the HTML code work for a browser that runs on every OS, then say that that browser is the KGS client. ;)
At least then no one can complain that they have no way to access KGS as everyone can run multiple browsers on any platform. :)

_________________
Michael Dobbins; Dragon: mdobbins, KGS: mgd, AGA#: 4253,
My Website

Top
 Profile  
 
Offline
 Post subject: Re: How does one go about writing a go server?
Post #16 Posted: Wed Jun 27, 2012 5:34 pm 
Lives in sente
User avatar

Posts: 801
Location: Amsterdam (NL)
Liked others: 353
Was liked: 107
Rank: KGS 7 kyu forever
GD Posts: 460
wms wrote:
By the way, I will not be "fixing" the stones sounds. It's a java bug, it works in older java, and at this point I'm fed up and not fixing java bugs any more. Any time I have is going to an HTML client so I can spend my time fixing web browser regressions instead.


It is hard for me to imagine that Java is responsible for having Guo Juan firing auditive bullets at me through KGSPlus. If it is possible to turn stone sound off then someone might tell GJ to switch it off. If it is not possible yet then it is probably not Java that prevents it.

Top
 Profile  
 
Offline
 Post subject: Re: How does one go about writing a go server?
Post #17 Posted: Thu Jun 28, 2012 10:23 am 
Lives in gote
User avatar

Posts: 450
Location: Portland, OR USA
Liked others: 257
Was liked: 287
KGS: wms
cyclops wrote:
It is hard for me to imagine that Java is responsible for having Guo Juan firing auditive bullets at me through KGSPlus.
No, the stones sounds picked up by Guo's mic isn't Java's fault. The stones sounds that you can't hear any more are, though.

Top
 Profile  
 
Offline
 Post subject: Re: How does one go about writing a go server?
Post #18 Posted: Thu Jun 28, 2012 10:31 am 
Judan

Posts: 6727
Location: Cambridge, UK
Liked others: 436
Was liked: 3720
Rank: UK 4 dan
KGS: Uberdude 4d
OGS: Uberdude 7d
People have asked her to turn off her stones sounds off. You'd have to ask her why she doesn't. My guess is she doesn't understand the problem / know how to fix it (despite people trying to explain in chat), which is rather surprising seeing as she's a professional Go teacher.

Top
 Profile  
 
Offline
 Post subject: Re: How does one go about writing a go server?
Post #19 Posted: Thu Jun 28, 2012 10:42 am 
Gosei

Posts: 1543
Liked others: 111
Was liked: 324
Uberdude wrote:
People have asked her to turn off her stones sounds off. You'd have to ask her why she doesn't. My guess is she doesn't understand the problem / know how to fix it (despite people trying to explain in chat), which is rather surprising seeing as she's a professional Go teacher.


I like the stone sounds in her lectures actually. It gives an additional sense of interaction somehow.

_________________
North Lecale

Top
 Profile  
 
Offline
 Post subject: Re: How does one go about writing a go server?
Post #20 Posted: Thu Jun 28, 2012 11:11 am 
Lives in sente
User avatar

Posts: 1103
Location: Netherlands
Liked others: 408
Was liked: 422
Rank: EGF 4d
GD Posts: 952
Javaness2 wrote:
Uberdude wrote:
People have asked her to turn off her stones sounds off. You'd have to ask her why she doesn't. My guess is she doesn't understand the problem / know how to fix it (despite people trying to explain in chat), which is rather surprising seeing as she's a professional Go teacher.


I like the stone sounds in her lectures actually. It gives an additional sense of interaction somehow.


I suppose there's also another solution, if you have some kind of "levels" app for your computer, you could just bring down that particular frequency a bit. I'm pretty sure they're out there somewhere.

_________________
Tactics yes, Tact no...

Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 20 posts ] 

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