Python in a desktop environment

2007-03-10 Thread David Cramer
If you had an application that you were about to begin development on
which you wanted to be cross platform (at least Mac and Windows),
would you suggest using c++ and Python?

I'm asking because we were originally thinking about doing c# but
after attending PyCon this year I'm reconsidering. We are already
using Python for the website and I figure a c++ backend w/ a Python
GUI may work really well, and would be pretty easy to port.

Any opinions?

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Python in a desktop environment

2007-03-11 Thread David Cramer
On Mar 10, 10:52 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:
> David Cramer wrote:
> > If you had an application that you were about to begin development on
> > which you wanted to be cross platform (at least Mac and Windows),
> > would you suggest using c++ and Python?
>
> I'd strongly consider a pure python solution (I'd choose wxpython),
> but if I needed to code backend stuff in a lower level language I'd
> use C rather than C++.

Well we want it to be very robust, and python isn't exactly the
fastest language, or one with the lowest overhead :)

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Python in a desktop environment

2007-03-12 Thread David Cramer
On Mar 12, 9:56 am, Bruno Desthuilliers  wrote:
> Diez B. Roggisch a écrit :
>
> > Bruno Desthuilliers wrote:
>
> >> Grant Edwards a écrit :
> >> (snip)
>
> >>> Python is _far_ more robust than C++.
>
> >> I wouldn't say so - robustness is a quality of a program, not of a
> >> language !-)
>
> > Nope. Dealing with dangling references and double frees, complex
> > copy-semantics that change only by a feeble character or via overloaded and
> > thus hard to comprehend assignment operators are all properties of C++,
>
> Indeed
>
> > and
> > tremendously afflict robustness IMHO.
>
> robustness of programs written with this language, yes.
>
> NB : I'm afraid the smiley got lost somewhere between screen and
> readers, so here comes another one !-)

Everyone seems to have misunderstood what I want. I'm a Python
developer, I don't give a rats ass about what people say about C#,
Python, or c++, they all have their uses. My main reasoning for
considering C++ as the backend is some things (reading memory for
example) are much easier to do in C++ than in Python, and we already
have a lot written in C++.

The argument about robustness, has nothing to do with how nicely
formatted the language is, or how great the tracebacks are, it's
strictly about how high the memory cost is and how much CPU it's going
to take. Python is well known for being high on memory and C++ being
compiled can be a lot faster for things.

Anyways, thanks for everyones feedback, we will most likely go with a
combination of Python and C++.

-- 
http://mail.python.org/mailman/listinfo/python-list