by wheelerof4te · 4y ago · 0 comments
Maybe off-topic, but in which language of theese two do you find a joy to program in?
As for me, Python's features are godsend. Only, sometimes I want that procedural simplicity of C.
I feel dirty trying to emulate C coding style in Python, even when it makes sense.
Not actually at the bottom, I'd choose it over Forth and ASM, but.... I haven't written it for anything but a microcontroller in years.
I don't really do much outside of Python and JS in general these days. Python's performance is basically the same as C, because... There's already a C extension for everything!
I'm really not even a fan of compiled languages in general especially not for open source work. Things like plugin architectures are a lot easier in dynamic everything is a dict type languages.
But C sure is good at being ubiquitous! I appreciate the heavy standardization.
There are much better modern alternatives to get comparable speed for new projects. Many projects that used to be written in C are being rewritten in either C++ or Rust for better memory safety and reasoning about the memory model.
Disclaimer: I did my PhD (several years ago) in a systems and networking lab and most of the code I wrote was in C. Now for example modern kernel modules tend to be written in Rust if possible, while such an option was not available while I was working there