Tremulous Forum
General => General Discussion => Topic started by: DASPRiD on May 15, 2007, 11:40:05 pm
-
Hi peeps,
After a long fight with myself, I finally found the way into C++. As some of you maybe know, I planned to rewrite the entire frontend of Tremstats. Well, as this isn't enough, I'm now also rewriting the backend from the slow Python scripting language to C++.
I'm trying to hold the depencies short, so I only use small external classes, which I can deliver directly with the application source files. Sadly, it is not possible, to ship everything with it. One of the greater depencies is mysql++, an object oriented way to work with MySQL. Another depency will a read method of JPEG and TGA files be.
So, I'm still a guy, who always want's to lower the depencies. If you know libraries, which I can use for the called things, and also easily include into the source tree of Tremstats, feel free to post links here. That's so far from my side. After Tremstats 0.9.1 reaches a usable stage, I will update SVN with it. Version 0.9.1 will surely be compatible with the current MySQL structure.
Greez,
DASPRiD
-
Can I kill the Python?
Great job Das
-
Good :)
-
all i know about C++ and python is that they are 2 of the six coding languages everyone should know, but it sounds like a lot of work, so i thank you for doing it.
-
If all that matters are tga and jpeg files, it isn't a problem. Coding a TGA loader is a matter of minutes once you have the 3 lines specs available, and for jpeg, you can easily include the jpeg lib code in your project if you want.
For mysql, I don't know much about that but I think it might be a bad idea to do it. Someone with more knowledge about the thing is required.
-
Well, I found enough small libraries, which I can easily include into the application source tree. So this depency is fixed. I'm now also going to drop mysql++ and using the default mysql library instead. So this will stay as depency, but shouldn't be a big problem, as many servers with MySQL installed still should have the regarding libraries.
-
Why not using sqllite instead of mysql?
In my opinion mysql is a littlebit overpowered for saving game stats only.
-
all i know about C++ and python is that they are 2 of the six coding languages everyone should know, but it sounds like a lot of work, so i thank you for doing it.
1.C/C++
2. Java
3. Python
4. HTML
5. C#
6.PASCAL (<- to make it easier for learning other languages) (DELPHI is almost the same as PASCAL but is used for non-dos apps)
IMO.
-
Why not using sqllite instead of mysql?
In my opinion mysql is a littlebit overpowered for saving game stats only.
Because SQLite is underpowered. All the calculations, which have to be done, at parse time, and at runtime, are heavy, so we need MySQL. Also the mass of data, which comes with the game stats, is much more, than SQLite is supposed to handle.
NiTRoX:
HTML is no coding language.
-
Aight sorry i tought it was considered as a coding lanugage. I'l larrange my list again
1.C/C++
2. Java
3. Python
4. Visual / Basic
5. C#
6.PASCAL / Delphi (<- to make it easier for learning other languages) (DELPHI is almost the same as PASCAL but is used for non-dos apps)
-
..if you're going to have java and python on there you need PHP to be on there as well. PHP makes the net go round. C# is to0 low and Java is too high... and you forgot Lisp.. wtf
-
damn you ruined dasprids thread
( ... )
-
THANK YOU, this will help us windoze servers a lot.
-
THANK YOU, this will help us windoze servers a lot.
if you can install mysql on a windoze server why can't you install python?
-
You can.
-
I have, it is just quite a pain to get it to behave.
I just skipped everything and installed Cygwin.