Python -> C++ compilation

Roman Suzi rnd at onego.ru
Thu May 31 03:39:45 EDT 2001


On Thu, 31 May 2001, Courageous wrote:

> >> Corporations have additional concerns, like "who's going
> >> to maintain your code after you are gone?" Perhaps, for
> >> example, they don't want to train up a Python staff. If so,
> >> that's their loss, but also their prerogative.
> >
> >I will not leave Python code around, only C++ one. 
> 
> Which will be fine until *another* developer on your staff
> checks in a change into CVS on top of your C++ code. Furthermore,
> as I pointed out before somewhat obliquely, generated code is
> often nightmarish (and uncommented). There's no way something
> like this could ever survive on a team effort, and what you'd
> be leaving behind wouldn't be fit for human consumption.

I see... 
 
> Hence my categorical rejection of this idea (speaking as an
> engineering lead).
> 
> Having you worked on very many group efforts? 

Yes. Fortunately, currently we have Python as a standard
and we frown upon if somebody codes in Perl ;-)

> Issues of coding
> "on the same sheet of music" as well as coordinating with
> other developers raise their ugly head. Surely you're aware,
> for example, that many projects have specific coding standards,
> comment content rules, and so forth, right?

Yes. That is why I want a Python program to isolate me. It will
read-in/read-out C++ code and provide me with some macro-work.
 
> Your generator simply _cannot_ fit in here. Even if your
> Python->C++ generator magically passed all your comments
> through, they'd likely be garbled once they reached C++.
> 
> If you're working on a solo project where the leave-behind
> code is not intended to be inspected by other developers, you
> should just be using your language of choice as is. It would,
> in my opinion, be easier for a C++ programmer to learn Python
> and then decode your work than it would be for them to fiddle
> through generated code, even when said code was already in C++.

> and-it-would-be-better-for-everyone's-sanity ly yrs

Thank you for your input. I still could imagine Python could be used to
help me write/browse C++ code (I remember freshmeat anounce of 
such programs), but having in mind what you have said.

Probably this is all stupid if some CASE tools are in use
at the place which generates needed code.

cause-I-fear-all-that-strong-typing ly yours, Roman A.Suzi
-- 
 - Petrozavodsk - Karelia - Russia - mailto:rnd at onego.ru -
 





More information about the Python-list mailing list