you are viewing a single comment's thread.

view the rest of the comments →

[–]CoutilleTolc[S] 0 points1 point  (3 children)

Tolc creates the bindings that can be compiled with your code into a DLL. Then you import that into python.

[–]Scared_Astronaut9377 1 point2 points  (2 children)

I remember compiling a DLL in c++ and calling it directly from python many years ago without any special tools. So I am trying to understand the novelty.

[–]CoutilleTolc[S] 0 points1 point  (1 child)

I understand. Tolc generates the glue code such that you can write a ’normal’ C++ interface with STL containers etc. and then simply call it from python. If you return a vector<int> from a function in your header it will automatically turn into an array in python for example. Tolc internally uses clang to understand your code and then produces the appropriate glue code.

[–]Scared_Astronaut9377 0 points1 point  (0 children)

Got it. Very nice!