Python wrapper for C++ core
handful of nothing
handful at gmail.com
Tue Oct 17 20:19:03 EDT 2006
IMHO,
What I learned with the time and of course with books =) :
Python gives you rapid turnaround. You can try different approaches and
archictetures to solve the problem in much faster way than you would
with C++.
When you really need to crunch numbers, and numpy/othermodule is not
enough for you, then you would need to go down and optimize it in c++.
So, the ability to change, re-create and try another strategy would be
a killer reason for me to use python (like I have in the past) for
games or sim apps.
[]s
Robert Heller wrote:
> At 17 Oct 2006 16:05:40 -0700 holly.woodland at gmail.com wrote:
>
> >
> > Hi All
> >
> > Apologies in advance for the pretty basic question - but I can't seem
> > to find an answer anywhere else.
> >
> > I am developing a fluid sim in C++ and have heard that many people use
> > Python in conjunction with C++ for this sort of thing (especially in
> > games dev).
> >
> > What I can't understand why you would want to do this. Obviously the
> > core would be written in C++ (for my purposes anyway) so what parts
> > would be written in Python? What is the benefit, in this situation, of
> > using Python instead of C++?
> >
> > thanks for your help
>
> If they were using Python/Tk to develop a GUI, it makes sense (although
> I would use Tcl/Tk, being a Tcl fan). In either case, SWIG can generate
> the interface between C/C++ and Python/Tcl.
>
> >
> > Holly
> >
> >
>
> --
> Robert Heller -- 978-544-6933
> Deepwoods Software -- Linux Installation and Administration
> http://www.deepsoft.com/ -- Web Hosting, with CGI and Database
> heller at deepsoft.com -- Contract Programming: C/C++, Tcl/Tk
More information about the Python-list
mailing list