473,396 Members | 2,021 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Python2CPP ?

Hello:

One topic that has always interested me are the Language translators.
Are there any that convert between Python and C++ or Python and Java?
I remember seeing one that converts from Python to or from Perl but couldn't
find it on a quick google search. I did find a Python2C
http://sourceforge.net/projects/p2c/ and I found:
http://www.strout.net/python/ai/python2c.py which are obviously incomplete.
I know there have been many discussions recently regarding C and C++.
I am (or is it - was?) a C/C++ programmer for over 15 years. Just started
with Python as we need to write come quick code in script form which can
be generated and run through an interpreter.
If not could there be a converter from Python to/from Language X and
from Language X to/from C or C++?
In another thread mentioning a decompiler. Perhaps Python to Assembly
and Assembly 2 C?

Thanks in advance:

Apr 12 '06 #1
1 2431
On 2006-04-12, Michael Yanowitz <m.********@kearfott.com> wrote:
Hello:

One topic that has always interested me are the Language translators.
Are there any that convert between Python and C++ or Python and Java?
I remember seeing one that converts from Python to or from Perl but couldn't
find it on a quick google search. I did find a Python2C
http://sourceforge.net/projects/p2c/ and I found:
http://www.strout.net/python/ai/python2c.py which are obviously incomplete.
I know there have been many discussions recently regarding C and C++.
I am (or is it - was?) a C/C++ programmer for over 15 years. Just started
with Python as we need to write come quick code in script form which can
be generated and run through an interpreter.
If not could there be a converter from Python to/from Language X and
from Language X to/from C or C++?


I've heard of an incomplete Python to C++ translator called "Shedskin"

http://pycode.com/modules/?id=40&PHP...5c2bcee95b46bd

There's also a GNU project afoot for a Python to Scheme translator which
I saw on http://savannah.gnu.org but now cannot find. This would be an
interesting project, I suppose you'd write it in Python, then it could
bootstrap itself into Scheme and C.

Scheme can be translated to C using chicken:

http://www.call-with-current-continu...org/index.html
Apr 12 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Iain King | last post by:
Hi. I've been looking everywhere for this and can't find it, apologies if I'm being obtuse: How do I set the max datagram packet size? I'm using the socket module. It seem like it's hardcoded...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.