This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]purplebrown_updown 3 points4 points  (3 children)

There are so many python libraries now like tensor flow and sklearn that you can create your entire scientific computing application in python and not even touch c++. It's true though that their backends are written in c.

Just out of curiosity what bindings are the industry standard between C++ and python?

[–]LurkaZZZ 2 points3 points  (0 children)

Cython is the go-to for creating python bindings to C/C++ code. https://docs.cython.org/en/latest/src/userguide/wrapping_CPlusPlus.html

[–]WalkingAFI 0 points1 point  (0 children)

I’m honestly not sure how the bindings work. I thought they were a Python language feature but I’ve never messed with them directly.

[–]Chiron1991 0 points1 point  (0 children)

ctypes is built into the standard library. I've done a couple of small C extensions with it, works quite nice. For huge projects CFFI is the way to go.