-1
Hi, I’m a novice programmer. I wrote a program for processing images in Python that worked perfectly, although its execution is very slow, due to the large number of operations involved. I decided to transcribe the same program to C++ and successfully compile and run it. However, the execution in C++ did not obtain the same result, generating a slightly different figure than that obtained by Python. I have already checked thoroughly and apparently there are no errors in the transcription of Python for C++. I ask, is it possible, because of the differences in the structure of the two languages, that there are differences in the results obtained?
Your question no longer states that there may be differences in the results obtained?
– RXSD
If we can’t compare the algorithms used between A and B, it can’t help you.
– Junior Moreira
Not only in language differences but mainly in developer limitation in both languages. Knowing that they are different languages, the solutions will be different. You simply cannot transcribe a code from language A to language B, ipsis Litteris, expecting the same result. Given my humble experience in Python, I would say that it is more likely that the delay is due to some implementation error than limitation of the language itself.
– Woss