News for hackers. Stuff that matters.
Re:FireDucks: Pandas but 100x Faster by ori_b on Wednesday November 20, 2024 @07:35AM (#42193373)
How can you tell?
Re:FireDucks: Pandas but 100x Faster by sbarre on Wednesday November 20, 2024 @08:15AM (#42193668)
I mean, based on the claims and the benchmarks, it seems to provide massive speedups to a very popular tool.

How would you define "quality" in this context?

Re:FireDucks: Pandas but 100x Faster by echoangle on Wednesday November 20, 2024 @08:30AM (#42193773)
High quality code isn't just code that performs well when executed, but also is readable, understandable and maintainable. You can't judge code quality by looking at the compiled result, just because it works well.
Re:FireDucks: Pandas but 100x Faster by sbarre on Wednesday November 20, 2024 @11:37AM (#42195645)
That's certainly one opinion about it.

One could also say that quality is related to the functional output.

Re:FireDucks: Pandas but 100x Faster by echoangle on Wednesday November 20, 2024 @11:51AM (#42195790)
> One could also say that quality is related to the functional output.

Right, I said nothing that contradicts that ("High quality code isn't just code that performs well when executed, but also ..."). High quality functional output is a necessary requirement, but it isn't sufficient to determine if code is high quality.

Re:FireDucks: Pandas but 100x Faster by sbarre on Wednesday November 20, 2024 @02:07PM (#42197101)
Sure, I guess it depends on what matters to you or to your evaluation criteria.

My point was that it's all subjective in the end.

Re:FireDucks: Pandas but 100x Faster by echoangle on Wednesday November 20, 2024 @02:35PM (#42197322)
It's not really subjective if you're at all reasonable about it.

Imagine writing a very good program, running it through an obfuscator, and throwing away the original code. Is the obfuscated code "high quality code" now, because the output of the compilation still works as before?

Re:FireDucks: Pandas but 100x Faster by sbarre on Sunday November 24, 2024 @10:04PM (#42232860)
Again it depends what you mean by "high quality code".

Do you mean how well it was written, or do you mean how well it performs? Or do both matter? Equally, or one more/less than the other?

It probably depends on whether you're the developer taking over the codebase, or the customer running the code in production..

Take video games.. A lot of it is messy spaghetti C++ code, not modular or well structured, full of hacks and manual optimizations, to give the best possible performance on available hardware.

It might be impossible to parse or maintain, but it does the job about as well as possible, which is really all that matters to the end user. I would call that high quality code.

So again, subjective...

Re:FireDucks: Pandas but 100x Faster by ori_b on Wednesday November 20, 2024 @08:55AM (#42193949)
Written so that it's easy to maintain, well tested, correct in its handling of edge cases, easy to debug, and easy to iterate on.