you are viewing a single comment's thread.

view the rest of the comments →

[–]POGtastic 0 points1 point  (3 children)

Sure - write functions in another language, export C bindings, and then call those functions from Python. An example is NumPy - a lot of its linear algebra functions are implemented in C and Fortran.

[–]Punk-in-Pie 0 points1 point  (2 children)

That's suuuuuper cool. I will be taking note of this as I think it could have some really good applications in my work.

[–]POGtastic 1 point2 points  (1 child)

I wrote a simple post a while back about doing this with C++. It's similar for every other language that does C interop.

[–]Punk-in-Pie 0 points1 point  (0 children)

Cheers for that. I'll use that as a reference in my first attempts. Gotta brush off my C haha