Migrate from C world to Python, without recasting your code-SWIG it!
Are you also fascinated by some of the cool stuff that python and its libraries gives you an access to. But cannot dare to think of switching to this very easy to master and dynamically typed language because your old code lives in C/C++ world and it seems to be a deadly nightmare to do the conversion. I have a solution to this problem. Just SWIG your code.
Python is a gluing language. It is very good at connecting software that were not originally meant to work directly with each other. For “faster” languages like C, this type of glue work is so painfully slow and error prone to code it is hardly even worth the effort. Any gains in execution speed are more than offset by the amount of wasted developer time spent getting it to work. That is one huge reason Python continues to be so popular.
That adds to a couple of reasons that people are looking at Python, which provides a rich set of libraries to do some of the modern stuffs as Machine Learning, Data analysis, Big data and Block Chain to name a few. Now lets come to the main topic of discussion, which you all be waiting for:-
Q — Is it possible to Migrate all my code existing in C/C++ world to Python world and use the beauty of new concepts with my old code, without rewriting all that again?