+ 3

Possibility of converting python logic into c++

Are there any possibilities of converting python code onto c++

23rd Feb 2018, 2:42 PM
Nathan Croft
4 Respuestas
+ 4
Theoretically, it's possible. I don't think though that anyone has coded a converter yet. It would take years to fully implement both languages.
23rd Feb 2018, 6:10 PM
Chris
Chris - avatar
+ 12
Sure why not? Computer language is no different than the language we use in day-to-day communication. 😉 However if you're looking for an automated tool like a Google Translator to do the job, I think you're out of luck.
23rd Feb 2018, 2:49 PM
Zephyr Koo
Zephyr Koo - avatar
+ 2
No, for example, the type of a c++ variable must be known at compile time. But in most cases, you can create programs that do the same or look very similar, of course.
23rd Feb 2018, 11:19 PM
Timon Paßlick
+ 1
I think cython (http://cython.org) and nuitka (http://nuitka.net/pages/overview.html ) translate python to C, which is compatible to C++.
23rd Feb 2018, 7:55 PM
Manuel Maier
Manuel Maier - avatar