2 ms·
I really hate these kinds of articles because they don't DO anything useful in the sample programs. Grab a web page and parse it for some data. Suddenly, C lo
by bsder 5y ago
I really hate these kinds of articles because they don't DO anything useful in the sample programs.
Grab a web page and parse it for some data. Suddenly, C looks like trash. The network latency negates any speed advantage from C and the fact that C has to manually manage memory everywhere makes your C code look like a dumpster fire relative to the Python code. You can always pick a task that favors one language or the other.
What people forget is that fast/slow ALSO includes "time to develop the code". If I can write the Python code in 1 hour and the C code in 10 hours, the code has to be a lot slower or be run a lot more times before the time wasted writing the C code pays off.
- BenjiWiebe 5y agoGood point. I love C, but I can't imagine doing web scraping in it. I pick up Ruby for that.