Running an Engine

Its a simple question... What is the best way and languages to use to develop a daemon which will run as an API for game engine, control panels, chatrooms, etc? Basicly, sending commands to it and it processing them and sending data back to the client. Hopefully that gets the idea across. Below are my thoughts on it and also its around the areas I know.

PHP:
Easy language to program in and it does have the ability to program sockets if needed but the best way to go about what I would be either to make a cron run every min that would check a mysql of questions and run the neccessary actions (this would be boggy) or to build a socket daemon which would run all the time and just have an API that would be custom encrypted which would easily allow for what ever functionality need. Although, I would thing a PHP daemon wouldnt very effeicent compare to a python or C++ one.

Python:
A great language which is very flexiable and seems to be better than php but not as good as C++. (Not trying to get in any battles over whats better this is just waht i have learned and its generalizations...) Python would be able to create multible threads making it have a great amount of connections over time as the script grew in popularity. Problem comes where I am not very good with python yet even though its learning curve doesnt seem too steep. Its just a matter of taking extra time to learn it and work with it. The question would be how much better would it be? Or would it just be the best to go right to C++?

Bash:
Programming it in bash would be super simple and give the engine a great amount of power because of working right along with command line. (Hopefully what I am saying is right). But I dont know how fast bash is and second. I am sure at some point I would have to integrate other languages (such as python or C++) to help get the job done? Again, making me wonder, why not start off there in the first place?

And, so those are the languages I have looked into so far and I figure C++ would be the best even with the little bit of knowledge I know.

Enough with the research and my thoughts. Give me your feed back on what you think would be the best?

Syphic

 

 

 

 

Top