The Ghost of Christmas Future, II

Announcements about major changes in Haven & Hearth.

Re: The Ghost of Christmas Future, II

Postby Myzreal » Tue Jun 09, 2015 7:00 am

server side to PHP.


PHP is a tragic choice for a full blown game server. It's good for a website backend.
Paste me to get hacked: http://a/%%30%30
Myzreal
 
Posts: 69
Joined: Sun Jul 03, 2011 5:32 pm

Re: The Ghost of Christmas Future, II

Postby Granger » Tue Jun 09, 2015 9:44 am

sabinati wrote:
YarPirate wrote:Thanks. I've never heard of Lisp before. Going to look that up now.

I was warned away from Python :p. And that PHP is what I should use server side.


python is great for learning how to code, but it isn't as fast, performance wise, as c

You can use PyPy as runtime to have it faster (thanks to JiT - compared to CPython), and at the end profile and convert the critical sections to a compiled extension (C or RPython or whatever works for you).
For concurrency stackless is very interesting, EVE-Online relies on (and is happy with) it for their servers.

nobody should use php for applications, it's at best a template engine, and the things it is at worst shouldn't be said in public

See also: http://eev.ee/blog/2012/04/09/php-a-fra ... ad-design/ or just google 'php sucks' and read some of the first hits.
⁎ Mon Mar 22, 2010 ✝ Thu Jan 23, 2020
User avatar
Granger
 
Posts: 9254
Joined: Mon Mar 22, 2010 2:00 pm

Re: The Ghost of Christmas Future, II

Postby loftar » Tue Jun 09, 2015 3:46 pm

VDZ wrote:That's peculiar. Not the hate towards Java, that makes 100% sense, but why the hell is the client in Java if loftar hates Java?

I've posted about it elsewhere, but the original reason was because of Java Web Start -- which, of course, I'm now regretting with Oracle's certificate faggotry. Since then, however, I have very much come to appreciate some of Java's platform-independent features -- in particular, the way it can load new code in a platform-independent manner. That would be fairly laborious to implement in a language such as C or C++. I guess it would work well in Lisp, but I'm not sure I consider SBCL's compiler good enough to write a game client with (though I'd be happy to be proven wrong).

Generally, my opinion of Java is that the VM is pretty nice (though it's not as if I couldn't find things to complain about if you wanted me to), but that the language sucks.

Granger wrote:
nobody should use php for applications, it's at best a template engine, and the things it is at worst shouldn't be said in public

See also: http://eev.ee/blog/2012/04/09/php-a-fra ... ad-design/ or just google 'php sucks' and read some of the first hits.

The toolbox analogy was a pretty good description of PHP, yes. It's not so much that PHP is unusable or that it's impossible to do things with it, it's just that it's not good for anything.
"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: The Ghost of Christmas Future, II

Postby Potjeh » Tue Jun 09, 2015 4:21 pm

Why not C#?
Image Bottleneck
User avatar
Potjeh
 
Posts: 11811
Joined: Fri May 29, 2009 4:03 pm

Re: The Ghost of Christmas Future, II

Postby loftar » Tue Jun 09, 2015 4:48 pm

Potjeh wrote:Why not C#?

Well, given that Java and C# are pretty much equivalent at their cores, I figure I might as well choose the language that:
  • Has the better JIT,
  • Has the more well-defined runtime,
  • Has a Linux implementation that doesn't suck, and
  • Has an ecosystem that isn't Windows-centric.
N'est ce pas?

In particular, I consider myself first and foremost to be using the Java VM before I'm using the Java language, and if I were to be using C#, I would likewise consider myself to be using the CLR rather than C# itself, and the JVM just seems to be so much better documented and defined than the CLR. I've still to find even a reasonable overview of the latter -- precisely like all other Microsoft tech that "isn't meant to be used directly", it seems to be quite obscure and hard to get at.
"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: The Ghost of Christmas Future, II

Postby Oddity » Tue Jun 09, 2015 4:54 pm

VDZ wrote:The moment they open-source the server code, people will constantly be investigating it for potential exploits.

Searching for exploits is hardly a problem.

The problem is that the community would cease to exist, because instead of there being a single world we all play in, the community would be fractured into dozens of completely worthless servers with only 1 or 2 people online ever. (Protip: Haven & Hearth doesn't work without other players)

YarPirate wrote:I was warned away from Python :p. And that PHP is what I should use server side.

Not for a game server, you dummy.

borka wrote:https://github.com/boshaw/sbcl-hnh-stuff ;)

It's beautiful :')
jadamkaz wrote:ah i remember my run in with odditown they are good ppl im sure the only reason they killed ME is because they are troll hunters and i was a troll
User avatar
Oddity
 
Posts: 1979
Joined: Sun Jun 20, 2010 12:04 am
Location: BC, Canadia

Re: The Ghost of Christmas Future, II

Postby loftar » Tue Jun 09, 2015 5:01 pm

Oddity wrote:
YarPirate wrote:I was warned away from Python :p. And that PHP is what I should use server side.

Not for a game server, you dummy.

Not for anything, really.
"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: The Ghost of Christmas Future, II

Postby Tonkyhonk » Tue Jun 09, 2015 5:56 pm

loftar wrote:
Oddity wrote:
YarPirate wrote:I was warned away from Python :p. And that PHP is what I should use server side.

Not for a game server, you dummy.

Not for anything, really.

what about these forums
User avatar
Tonkyhonk
 
Posts: 4501
Joined: Fri Sep 10, 2010 6:43 am

Re: The Ghost of Christmas Future, II

Postby windmaker » Tue Jun 09, 2015 6:09 pm

or the wiki..
Image #swag
User avatar
windmaker
 
Posts: 1855
Joined: Thu Mar 29, 2012 7:08 am
Location: in the forum where some mods are fags.

Re: The Ghost of Christmas Future, II

Postby YarPirate » Tue Jun 09, 2015 6:17 pm

Well I am slowly working on the engine at the moment. Still researching the client-server relationship. So thanks for all the info.

C++ and GLFW/GLEW is what I have decided to use, probably OPENAL for audio and all that. About the PHP there was some other language I was supposed to use with it but that's lost in paperwork right now and I can't remember what it was. (organizing things only happens like once a month for me haha).

I'm trying to come up with ideas on how to make a large open world (perhaps even bigger) such as you have done. Im not sure if I should separate the map into pieces and run each piece or group of pieces on separate servers. There are other ways of doing it too. Still trying to decide the best way.

Have any of you guys used the new Unreal Dev Kit?
YarPirate
 
Posts: 31
Joined: Mon Jun 01, 2015 1:04 am

PreviousNext

Return to Announcements

Who is online

Users browsing this forum: Claude [Bot] and 2 guests