|
You last visited: Today at 08:51
Advertisement
Coding Co in Python
Discussion on Coding Co in Python within the CO2 Private Server forum part of the Conquer Online 2 category.
07/30/2013, 00:56
|
#1
|
elite*gold: 0
Join Date: Dec 2012
Posts: 606
Received Thanks: 68
|
Coding Co in Python
as the title says,
what are the down sides if you code in python
and what are the good parts.
some people use just npc parts on python.
but what if we use python for the whole thing? i am asking this is because i been studying python 1 month now and i love this language,
this is the first language that rly make me sit and read boring books,
so if anyone know python and can give me some down sides i might work on them to improve them.
|
|
|
07/30/2013, 01:25
|
#2
|
elite*gold: 12
Join Date: Jul 2011
Posts: 8,283
Received Thanks: 4,191
|
#Edit: I just read a modern article on python's performance. Ignore my previous statements.
|
|
|
07/30/2013, 01:27
|
#3
|
elite*gold: 0
Join Date: Dec 2012
Posts: 1,761
Received Thanks: 950
|
You clearly have no idea what you're talking about Fang. Google uses Python for almost anything they do, they only use C++ where Python can't. Python is also used a lot in the game industry, maybe not as much as C++ tho.
@Gragen I wrote a base source in Python some time back, if I can find it then I'll let you know.
|
|
|
07/30/2013, 02:33
|
#4
|
elite*gold: 0
Join Date: Dec 2012
Posts: 606
Received Thanks: 68
|
Quote:
Originally Posted by Super Aids
You clearly have no idea what you're talking about Fang. Google uses Python for almost anything they do, they only use C++ where Python can't. Python is also used a lot in the game industry, maybe not as much as C++ tho.
@Gragen I wrote a base source in Python some time back, if I can find it then I'll let you know.
|
Please Do even a basic socket will be nice, as much as c++ strong then python or any other language but somehow i love python idk it just touch me.
# fang that was interesting link, i didn't know there can be that much different after you upgrade the version of java,
|
|
|
07/30/2013, 03:10
|
#5
|
elite*gold: 12
Join Date: Jul 2011
Posts: 8,283
Received Thanks: 4,191
|
I hope that I'm still correct in saying that python is a lot different than a compiled language (being interpreted). If you make a server, keep in mind that there are no binaries for it, it's just the source. The source files are run through the python interpreter. After reading some modern software engineering articles, it seems that python's performance has definitely increased. I'm not sure if python is still a bit slower than C#, but I'm looking into that (I might have to do my own benchmarking with a linked list and red-black tree). Now, I'm not trying to stop you - but you should keep in mind that C# might be your best language here (since you have the most experience with it). You can always make a python socket system, but I really think you should learn the basics in C# first. You'll have a better chance in completing the project.
|
|
|
07/30/2013, 08:14
|
#6
|
elite*gold: 0
Join Date: Dec 2012
Posts: 606
Received Thanks: 68
|
Quote:
Originally Posted by Fang
I hope that I'm still correct in saying that python is a lot different than a compiled language (being interpreted). If you make a server, keep in mind that there are no binaries for it, it's just the source. The source files are run through the python interpreter. After reading some modern software engineering articles, it seems that python's performance has definitely increased. I'm not sure if python is still a bit slower than C#, but I'm looking into that (I might have to do my own benchmarking with a linked list and red-black tree). Now, I'm not trying to stop you - but you should keep in mind that C# might be your best language here (since you have the most experience with it). You can always make a python socket system, but I really think you should learn the basics in C# first. You'll have a better chance in completing the project.
|
Yah c# is wonderful language and i am going to finish it for sure, but fang check this out
on Python 3.3 they added C-base io library which is allot faster then 2.7
|
|
|
07/30/2013, 08:55
|
#7
|
elite*gold: 0
Join Date: Dec 2012
Posts: 1,761
Received Thanks: 950
|
Fang you can actually compile Python FYI.
|
|
|
07/31/2013, 06:59
|
#8
|
elite*gold: 0
Join Date: Dec 2012
Posts: 606
Received Thanks: 68
|
i didnt know
BitTorrent
Blender 3D
Battlefield 2
all this are coded with Python, i guess it will be good thing to try Python for co
|
|
|
07/31/2013, 17:05
|
#9
|
elite*gold: 20
Join Date: Mar 2006
Posts: 6,126
Received Thanks: 2,518
|
You should avoid it, it implements a Global Interpreter Lock - Wikipedia, the free encyclopedia which massively hinders its threading performance.
Python is never used as the core language typically (for games), its used as a wrapper of other languages like C/C++ for example, or as a form of scripting language.
|
|
|
07/31/2013, 18:32
|
#10
|
elite*gold: 0
Join Date: Dec 2012
Posts: 1,761
Received Thanks: 950
|
Korvacs. Multiprocessors.
|
|
|
07/31/2013, 18:46
|
#11
|
elite*gold: 20
Join Date: Mar 2006
Posts: 6,126
Received Thanks: 2,518
|
Quote:
Originally Posted by Super Aids
Korvacs. Multiprocessors.

|
Which is fine if you want to do some specific threading, but how much of the standard lib is actually using this? Your still going to find yourself handcuff by the GIL in most situations.
|
|
|
07/31/2013, 23:23
|
#12
|
elite*gold: 0
Join Date: Dec 2012
Posts: 1,761
Received Thanks: 950
|
True at that.
|
|
|
Similar Threads
|
[Selling] [SERVICE]Python / Lua Coding
10/07/2013 - Metin2 Trading - 8 Replies
http://puu.sh/3s2yg
http://puu.sh/3s2yS
http://puu.sh/3s2zd
http://puu.sh/3s2zm
Noch einmal ein großes Danke an CrystelPrime, für das Tolle Design.
Mfg,
Yoshix3
|
[GUIDE] Python GUI Coding mit SetParent func
04/13/2013 - Metin2 PServer Guides & Strategies - 17 Replies
Heute zeig euch mal wie ihr euch den ganzen mathe kram mit self.PetGUIBG.SetPosition((wndMgr.GetScreenWidth() -345)+130, 245)
sparen könnt.
Als erstes rendert ihr euer Board das könnt ihr von mir aus noch mit dem self.PetGUIBG.SetPosition((wndMgr.GetScreenWidth() -345)+130, 245) code machen.
So wohlt ihr aber jetzt z.B ein Button erstellen. Dann benutzt ihr folgendes:
self.Button1.SetParent(self.PetGUIBG)
So was bedeutet das eigentlich? Ganz Einfach der Button befindet sich jetzt immer auf...
|
All times are GMT +1. The time now is 08:52.
|
|