Coding Co in Python

07/30/2013 00:56 LordGragen.#1
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 Spirited#2
#Edit: I just read a modern article on python's performance. Ignore my previous statements.
[Only registered and activated users can see links. Click Here To Register...]
07/30/2013 01:27 Super Aids#3
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 LordGragen.#4
Quote:
Originally Posted by Super Aids View Post
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 Spirited#5
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 LordGragen.#6
Quote:
Originally Posted by Fang View Post
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 Super Aids#7
Fang you can actually compile Python FYI.
07/31/2013 06:59 LordGragen.#8
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 Korvacs#9
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 Super Aids#10
Korvacs. Multiprocessors.
[Only registered and activated users can see links. Click Here To Register...]
07/31/2013 18:46 Korvacs#11
Quote:
Originally Posted by Super Aids View Post
Korvacs. Multiprocessors.
[Only registered and activated users can see links. Click Here To Register...]
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 Super Aids#12
True at that.