views:

238

answers:

5

Hello,

I'm now thinking, is it possible to integrate Python, Perl and C/C++ and also doing a GUI application with this very nice mix of languages?

+5  A: 

Anything is "possible", but whether it is necessary or beneficial is debatable and highly depends on your requirements. Don't mix if you don't need to. Use the language that best fits the domain or target requirements.

I can't think of a scenario where one needs to mix Python and Perl as their domain is largely the same.

Using C/C++ can be beneficial in cases where you need hardcore system integration or specialized machine dependent services. Or when you need to extend Python or Perl itself (both are written in C/C++).

EDIT: if you want to do a GUI application, it is probably easier to choose a language that fits the OS you want your GUI to run in. I.e. something like (but not limited to) C# for Windows, Objective-C for iPhone or Mac, Qt + C++ for Linux etc.

Abel
+1  A: 

Everything is possible - but why add two and a half more levels of complexity?

Martin Hohenberg
Learn and practice all at the same time.
Nathan Campos
You can do that by doing one project in one and another in the other language. You'll learn much faster when you use a language in its best fitting domain.
Abel
+1  A: 

Python & Perl? together?

I can only think of an editor.

Alexandru
+1 Ha, Very nice!
Nathan Campos
+9  A: 

Well, there is Wx, Inline::Python and Inline::C, but the question is why?

Sinan Ünür
If that's the question, what's the answer? ;)
Abel
The answer is 42, of course
DVK
@DVK Especially when you don't know the question.
Sinan Ünür
+3  A: 

There's always Parrot. Here's the Wikipedia page. It's a vm to allow you access your favorite libraries from different languages in one application.

Elizabeth Buckwalter
I don't think it's a practical solution.
Kinopiko
You shouldn't make a comment like that without an explanation.
Elizabeth Buckwalter
Padre IDE allows writing plugins in any Parrot-supported language.
Alexandr Ciornii
Parrot is hardly ready for production use.
innaM
@manni And how do you know weather or not this is a project that needs to be production quality?
Elizabeth Buckwalter
I don't, I don't make any assumptions. I just think we should provide good answers here. And as much as I'm looking forward to using Parot, currently, it's just not a good answer.
innaM