News for hackers. Stuff that matters.
Re:I love coding in C by jacquesm on Thursday December 26, 2019 @07:30PM (#21888082)
Python is actually scary fast because anybody that uses it for serious numerical work will use numpy.
Re:I love coding in C by jkoudys on Thursday December 26, 2019 @07:48PM (#21888175)
ie "python is scary fast because anyone who uses it is mostly running C"
Re:I love coding in C by jacquesm on Thursday December 26, 2019 @07:53PM (#21888198)
Yep. This goes for a lot of environments. It's going to take many many decades to get rid of C. Probably more than it has been here up to now.
Re:I love coding in C by jkoudys on Monday December 30, 2019 @06:22PM (#21917604)
Doesn't always mean it's particularly performant, unfortunately. The JSON lib in PHP is still C (part of Zend), but it's very susceptible to malloc failures (one big contiguous request for the whole shebang), and it's generally way faster to serialize arrays into a .PHP file you load than into JSON if you're storing it locally. I compared what I read there to the serde stuff for rust and the difference is stark.

Maybe having most of this stuff in c libs with scripts wrapped around them will make it easier to migrate. Keep the same py but swap out the lib from C to some rust that's still useful in a crate for pure rust projects.

Re:I love coding in C by jki275 on Thursday December 26, 2019 @08:06PM (#21888252)
what you’re really saying is that C is fast and python is slow. I don’t think that was ever in debate.