Python - betta than C?
I have been glancing at some books on Python lately, (i work in a library) and supposedly it is somewhat of a simpler version of C.
Does anybody have any experience with Python that could give me some opinion on how fast and powerful this language is?
Thanks
SPAR1
Ok, first off, it is not simpiler C. Python is built on the foundation of C++ for use as a better cross platform scripting language. It is robust, but by no means removes using C/C++ from the picture.
You should go to Python Homepage and read read read, and you can also try yer hand at python java,Python Java Homepage
I have used LUA, Python and am working on Java, as a scripting language. All of them are exquisite in implementation. As for suppliments, they would never harness the full power of C/C++ standalone.
Python is fast so fast that if you embed it inside a C/C++ app for scripting, it flies. LUA is a close second, and Java depends on the VM installed on the client machine.
It is also powerful, being a OO language and being able to take advantage of COM on the WIN platform, plus, you don''t need to rewrite a single line of code if you port to linux. It is 100% cross-platofrm compatible.
Hope that helps.
"Five passengers set sail that day, for a three hour tour, a three hour tour...."
You should go to Python Homepage and read read read, and you can also try yer hand at python java,Python Java Homepage
I have used LUA, Python and am working on Java, as a scripting language. All of them are exquisite in implementation. As for suppliments, they would never harness the full power of C/C++ standalone.
Python is fast so fast that if you embed it inside a C/C++ app for scripting, it flies. LUA is a close second, and Java depends on the VM installed on the client machine.
It is also powerful, being a OO language and being able to take advantage of COM on the WIN platform, plus, you don''t need to rewrite a single line of code if you port to linux. It is 100% cross-platofrm compatible.
Hope that helps.
"Five passengers set sail that day, for a three hour tour, a three hour tour...."
Python combined with C/C++ Rocks!!
My 3D engine has Python embedded so I can write high level scripts to interact with the 3D world. Its nice not to have to recompile everytime I change a variable or want to load a different model.
There are performance limits to the use of Python in a application like this but if the interfaces into the engine are limited to higher level funcitons then it rocks!
For instance, if you want to implement a particle system with 1000 active objects with physics simulation dont be suprised when it begins to crawl. Python is more suited for making function calls into your engine like:
'CreateParticleSystem(x,y,z,number_of_particles)'
And then your C/C++ code would handle it from there.
I wrote a simple 3D pong game for a flipcode contest last year with an early version of my 3D Python Engine:
http://www.flipcode.com/contest-october99.shtml
You can download it here:
ftp://ftp.flipcode.com/contest/1999/september/entry06.zip
I included the Python script (pong.py) file in the ZIP so you can actually see the python source to the game.
And as the other poster stated Python is cross platform. If I could go back in time I would have written the engine in OpenGL instead of Direct3D. It would be too cool to see it running on Linux
Edited by - emfb on June 13, 2000 12:13:42 AM
My 3D engine has Python embedded so I can write high level scripts to interact with the 3D world. Its nice not to have to recompile everytime I change a variable or want to load a different model.
There are performance limits to the use of Python in a application like this but if the interfaces into the engine are limited to higher level funcitons then it rocks!
For instance, if you want to implement a particle system with 1000 active objects with physics simulation dont be suprised when it begins to crawl. Python is more suited for making function calls into your engine like:
'CreateParticleSystem(x,y,z,number_of_particles)'
And then your C/C++ code would handle it from there.
I wrote a simple 3D pong game for a flipcode contest last year with an early version of my 3D Python Engine:
http://www.flipcode.com/contest-october99.shtml
You can download it here:
ftp://ftp.flipcode.com/contest/1999/september/entry06.zip
I included the Python script (pong.py) file in the ZIP so you can actually see the python source to the game.
And as the other poster stated Python is cross platform. If I could go back in time I would have written the engine in OpenGL instead of Direct3D. It would be too cool to see it running on Linux
Edited by - emfb on June 13, 2000 12:13:42 AM
"You know you're obsessed with computer graphics when you're outside and you look up at the trees and think, "Wow! That's spectacular resolution!""
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement