News for hackers. Stuff that matters.
Re:Rusty Ownership and the Lifecycle’s Stone by klysm on Sunday November 27, 2022 @01:02PM (#33765002)
You should be able to vaguely claim that Python and Java are inherently slower than Rust/C/Whatever. I agree claiming that it is 100x slower is a bit unfounded, but it's pretty easy to go find existing benchmarks that show results like this.
Re:Rusty Ownership and the Lifecycle’s Stone by kapolos on Sunday November 27, 2022 @01:15PM (#33765128)
Yes, it's exactly as you say.

I did search for benchmark comparisons and bumped into one that had 2 orders of magnitude difference.

But naturally, isolated benchmarks can't encapsulate the whole picture because there's a world of difference between testing how fast a loop runs and performance in production.

Re:Rusty Ownership and the Lifecycle’s Stone by codedokode on Sunday November 27, 2022 @01:35PM (#33765295)
I guess that arithmetic operations are not very slow in Python, but if you use objects, then Python performs complicated lookups for every field or method access.
Re:Rusty Ownership and the Lifecycle’s Stone by kaba0 on Monday November 28, 2022 @04:17AM (#33771363)
One is not like the other. Java is much much closer to C/Rust than Python is to Java.