Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Conquer Online 2 > CO2 Private Server
You last visited: Today at 14:38

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[OpenSource Project] C++ CoCore

Discussion on [OpenSource Project] C++ CoCore within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old 11/21/2010, 23:41   #46


 
KraHen's Avatar
 
elite*gold: 0
Join Date: Jul 2006
Posts: 2,216
Received Thanks: 793
Can I have a question? How is your Queue implementation differing from the std::queue in the STL?
KraHen is offline  
Old 11/22/2010, 18:53   #47
 
ImmuneOne's Avatar
 
elite*gold: 0
Join Date: Nov 2009
Posts: 754
Received Thanks: 544
Quote:
Originally Posted by KraHen View Post
Can I have a question? How is your Queue implementation differing from the std::queue in the STL?
The main reason I made my own class would be because I'm offering a multithreaded core.
ImmuneOne is offline  
Old 11/22/2010, 20:01   #48


 
KraHen's Avatar
 
elite*gold: 0
Join Date: Jul 2006
Posts: 2,216
Received Thanks: 793
Quote:
Originally Posted by ImmuneOne View Post
The main reason I made my own class would be because I'm offering a multithreaded core.
My bad, lol. I didn`t realize STL containers weren`t thread-safe ones Ty
KraHen is offline  
Old 11/23/2010, 01:00   #49
 
ImmuneOne's Avatar
 
elite*gold: 0
Join Date: Nov 2009
Posts: 754
Received Thanks: 544
EDIT: Sticking to the server core plan.
ImmuneOne is offline  
Old 12/18/2010, 04:25   #50
 
ImmuneOne's Avatar
 
elite*gold: 0
Join Date: Nov 2009
Posts: 754
Received Thanks: 544
NOTE: This project is not abandoned. I had some busy weeks at school and since I got 2 weeks off of school, I can get back to work on CoCore.
ImmuneOne is offline  
Old 12/18/2010, 12:33   #51
 
InfamousNoone's Avatar
 
elite*gold: 20
Join Date: Jan 2008
Posts: 2,012
Received Thanks: 2,882
Quote:
Originally Posted by KraHen View Post
My bad, lol. I didn`t realize STL containers weren`t thread-safe ones Ty
Most people will argue otherwise but I think you should avoid STL, and create your own wrappers whenever possible >_>

Edit:
I don't see a use for an IDispoable in C++.
InfamousNoone is offline  
Old 12/18/2010, 14:19   #52
 
Nullable's Avatar
 
elite*gold: 0
Join Date: Nov 2009
Posts: 390
Received Thanks: 321
Quote:
Originally Posted by InfamousNoone View Post
Most people will argue otherwise but I think you should avoid STL, and create your own wrappers whenever possible >_>
I find STL pretty handy if you wrap classes around them for your needs, but I don't see why you'd totally avoid them.

Quote:
Originally Posted by InfamousNoone View Post
Edit:
I don't see a use for an IDispoable in C++.
It's not IDisposable as in the .NET's IDisposable, same naming but different function. It is just a thread-safe referenced smart pointer which destroys objects after they're done with(from what I know).
Nullable is offline  
Thanks
1 User
Old 12/18/2010, 21:15   #53
 
ImmuneOne's Avatar
 
elite*gold: 0
Join Date: Nov 2009
Posts: 754
Received Thanks: 544
Quote:
Originally Posted by Nullable View Post
I find STL pretty handy if you wrap classes around them for your needs, but I don't see why you'd totally avoid them.



It's not IDisposable as in the .NET's IDisposable, same naming but different function. It is just a thread-safe referenced smart pointer which destroys objects after they're done with(from what I know).
Exactly as this 'unknown' guy above me says
ImmuneOne is offline  
Thanks
1 User
Old 12/18/2010, 23:53   #54
 
InfamousNoone's Avatar
 
elite*gold: 20
Join Date: Jan 2008
Posts: 2,012
Received Thanks: 2,882
Quote:
Originally Posted by Nullable View Post
I find STL pretty handy if you wrap classes around them for your needs, but I don't see why you'd totally avoid them.



It's not IDisposable as in the .NET's IDisposable, same naming but different function. It is just a thread-safe referenced smart pointer which destroys objects after they're done with(from what I know).
Ah ok, that makes a little more sense. The reason I avoid STL is because half the time when you recode the **** yourself it's 1000x faster.

Ok -- I'm exaggerating a bit, but if you really want my test results, I'll go dig up my old FlexibleArray<T> class (which implements all the functionality of a vector<t> and a list<t>) and I'll show you the comparison between the speed. Bricks will be shat.
InfamousNoone is offline  
Old 12/19/2010, 12:58   #55
 
Nullable's Avatar
 
elite*gold: 0
Join Date: Nov 2009
Posts: 390
Received Thanks: 321
It is true that half.. well most of the STL classes are slow but if you test against something like map<key, value>, the results of searching/inserting/removing are pretty close to the R-B trees time complexity ( O(log N) ); so it's not that bad in some cases after all.
Nullable is offline  
Old 12/19/2010, 13:15   #56
 
InfamousNoone's Avatar
 
elite*gold: 20
Join Date: Jan 2008
Posts: 2,012
Received Thanks: 2,882
Quote:
Originally Posted by Nullable View Post
It is true that half.. well most of the STL classes are slow but if you test against something like map<key, value>, the results of searching/inserting/removing are pretty close to the R-B trees time complexity ( O(log N) ); so it's not that bad in some cases after all.
Well, once I first picked up on this; I stayed as far a way from STL as I possibly could. Any chance of you guys actually committing to the revision? I wouldn't mind pitching in a bit of help if you can specify what needs to be done.

Also, I assume you want this to be cross-platform (because your using boost instead of Windows Library functions), correct?
InfamousNoone is offline  
Old 12/19/2010, 16:26   #57
 
ImmuneOne's Avatar
 
elite*gold: 0
Join Date: Nov 2009
Posts: 754
Received Thanks: 544
Quote:
Originally Posted by InfamousNoone View Post
Well, once I first picked up on this; I stayed as far a way from STL as I possibly could. Any chance of you guys actually committing to the revision? I wouldn't mind pitching in a bit of help if you can specify what needs to be done.

Also, I assume you want this to be cross-platform (because your using boost instead of Windows Library functions), correct?
The first revision is near to be done, I'm just finishing some network wrappers.
But if you want to see it before the first revision is committed you can send me a PM. Oh and yes this is going to be cross-platform.
ImmuneOne is offline  
Old 12/19/2010, 16:50   #58
 
InfamousNoone's Avatar
 
elite*gold: 20
Join Date: Jan 2008
Posts: 2,012
Received Thanks: 2,882
Quote:
Originally Posted by ImmuneOne View Post
The first revision is near to be done, I'm just finishing some network wrappers.
But if you want to see it before the first revision is committed you can send me a PM. Oh and yes this is going to be cross-platform.
Ah, ok. No problem. I'll check back now and again then and wait for the first rev'.
InfamousNoone is offline  
Old 12/22/2010, 06:13   #59
 
Lateralus's Avatar
 
elite*gold: 0
Join Date: May 2005
Posts: 1,892
Received Thanks: 918
Oh yes. I want this. I'll help as much as I can.
Lateralus is offline  
Old 01/26/2011, 21:12   #60
 
ImmuneOne's Avatar
 
elite*gold: 0
Join Date: Nov 2009
Posts: 754
Received Thanks: 544
Little update; I have been offline and not working on the project lately, my laptop has been at repair service for awhile now and the project's files are on it. The thing is I'm struggling with the repair service to take the costs under my warranty. I guess it doesn't count if you have < 10 dead pixels and a burn-in which covers half of the screen:S
ImmuneOne is offline  
Reply


Similar Threads Similar Threads
OpenSource -- Newbie Spammer
09/23/2010 - 4Story Hacks, Bots, Cheats & Exploits - 13 Replies
Hello People, Today im realase an "Newbie Spammer", the Script is OpenSource. This is an Script for Nobbys. Thanks. #RequireAdmin Global $Timer = TimerInit()
OpenSource-Server
05/12/2010 - Metin2 Private Server - 27 Replies
Hi, morgen beginnt das verlängerte Wochenende für viele. Deshalb starte ich morgen ein neues kleines Projekt. Einen OpenSource-Metin2-Server. Ich zahle einen kleinen Server (max. 100 Spieler). Die Files dieses Server sind öffentlich, einzige Ausnahme: Account-DB. Itemshop wird es natürlich nicht geben! Vielleicht gibt es ja ein paar nette Leute, die Lust hätten zu helfen. :) Der Servername wird "Syrka" (Syrka.net) lauten. MfG,
WowSharp wird Opensource!
06/29/2007 - World of Warcraft - 34 Replies
Today is a big day in the history of WoWSharp, most of it bad, some of it good. In the past 9 months since development started, WoWSharp has been a milestone in WoW-bot development. First starting out with WoWRadar and WoWFisher, then other utilities like WoWBot, SharpSeer, WoWPartyBot, where created. Everyone knows that since about a bit over a month, Blizzard has been using the WardenClient to detect 3rd party utilities. This WardenClient has put the World of Warcraft hacking on its...



All times are GMT +2. The time now is 14:38.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.