3 ms·
> I might even go so far as to say that Cython is the most user-friendly way to write new pure C programs that there is. Apart from my vehement disagreement w
by srean 8y ago
> I might even go so far as to say that Cython is the most user-friendly way to write new pure C programs that there is.
Apart from my vehement disagreement with the claim above I am in violent agreement with the rest of you comment.
If I want_to / need_to write C or C++ I would rather write it in, well, C or C++. The reasons are many -- more mature tooling, deeper social knowledge, one less source of undocumented or unintended edge cases etc., etc.
But when I want to be in a Pythonic frame of mind, which is fairly often, and want to freeze the semantics of selected parts of the code to a C or C++ like statically typed semantics, Cython is really nice. With Cython I can choose to do this where I think the code will benefit from freezing the semantics. Often I dont have to rely too hard on my own thinking because the Cython compiler would identify those sections for me.