2 ms·
"How is python safer than C?" Its basic operations don't often crash a system or lead to hacks. It also promotes readable, concise code with a lot of FOSS util
by nickpsecurity 9y ago
"How is python safer than C?"
Its basic operations don't often crash a system or lead to hacks. It also promotes readable, concise code with a lot of FOSS utilities for things like testing (esp see Hypothesis). This both increases development pace and reduces defect according to about every study that's ever pitted a HLL against C. The best one I've seen in terms of apples to apples was this Ada and C comparison:
http://archive.adaic.com/intro/ada-vs-c/cada_art.pdf http://archive.adaic.com/intro/ada-vs-c/cada_art.pdf
Note that Python isn't the main point or even what I brought up, though. mort's point read like you shouldn't develop C-related tooling in high-level languages like Python. I'm countering saying you should do as much work out of C as you can with even Python being beneficial. I give much better examples in my other response here:
https://news.ycombinator.com/item?id=16240081 https://news.ycombinator.com/item?id=16240081