Tremulous Forum

General => General Discussion => Topic started by: DASPRiD on May 15, 2007, 11:40:05 pm

Title: Tremstats 0.9 comes written in C++
Post 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
Title: Tremstats 0.9 comes written in C++
Post by: Lava Croft on May 15, 2007, 11:49:30 pm
Can I kill the Python?


Great job Das
Title: !
Post by: garoth on May 16, 2007, 12:44:45 am
Good :)
Title: Tremstats 0.9 comes written in C++
Post by: Lord Baxter on May 16, 2007, 09:49:33 am
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.
Title: Tremstats 0.9 comes written in C++
Post by: Stof on May 16, 2007, 10:23:10 am
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.
Title: Tremstats 0.9 comes written in C++
Post by: DASPRiD on May 16, 2007, 01:23:59 pm
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.
Title: Tremstats 0.9 comes written in C++
Post by: m0wlwurf on May 16, 2007, 03:52:11 pm
Why not using sqllite instead of mysql?

In my opinion mysql is a littlebit overpowered for saving game stats only.
Title: Tremstats 0.9 comes written in C++
Post by: NiTRoX on May 16, 2007, 04:04:29 pm
Quote from: "Lord Baxter"
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.
Title: Tremstats 0.9 comes written in C++
Post by: DASPRiD on May 16, 2007, 04:08:15 pm
Quote from: "m0wlwurf"
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.
Title: Tremstats 0.9 comes written in C++
Post by: NiTRoX on May 16, 2007, 06:52:48 pm
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)
Title: Tremstats 0.9 comes written in C++
Post by: PIE on May 16, 2007, 09:45:52 pm
..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
Title: Tremstats 0.9 comes written in C++
Post by: f0rqu3 on May 16, 2007, 09:50:18 pm
damn you ruined dasprids thread
( ... )
Title: Tremstats 0.9 comes written in C++
Post by: Paradox on May 16, 2007, 11:50:16 pm
THANK YOU, this will help us windoze servers a lot.
Title: Tremstats 0.9 comes written in C++
Post by: kevlarman on May 17, 2007, 12:08:02 am
Quote from: "Paradox"
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?
Title: Tremstats 0.9 comes written in C++
Post by: TinMan on May 17, 2007, 12:23:31 am
You can.
Title: Tremstats 0.9 comes written in C++
Post by: Paradox on May 17, 2007, 04:55:52 am
I have, it is just quite a pain to get it to behave.
I just skipped everything and installed Cygwin.