lengau

joined 1 year ago
MODERATOR OF
[–] [email protected] 2 points 2 months ago (1 children)

The only reason my last machine didn't get more than 10 years worth of in-place upgrades was because I decommissioned it as a desktop and turned it into a server, so I wiped it at that point.

[–] [email protected] 2 points 2 months ago

Yes it does.

[–] [email protected] 8 points 2 months ago (3 children)

Because despite all the people telling me I'm wrong, Kubuntu is still by far the best distro I've ever used. Rock solid, super fast, and continues to improve.

[–] [email protected] 17 points 2 months ago (2 children)
[–] [email protected] 6 points 2 months ago

Fucking warmongering dinosaur cunts...

[–] [email protected] 2 points 2 months ago

Every time I suggested on Reddit even a 0.1% tax on corporate revenue I get a bunch of people telling me it's a terrible idea, but never with anything resembling a coherent argument as to why.

[–] [email protected] 4 points 2 months ago (3 children)

Well as long as we're yucking other people's yum...

People will mock this and then eat some peanut butter 🤢

[–] [email protected] 1 points 2 months ago

Blown by the Wind in my Ass

[–] [email protected] 7 points 2 months ago

The US imports a lot of fruit and vegetables from the southern hemisphere when they're in season there and out of season locally.

[–] [email protected] 9 points 2 months ago (2 children)

I think a better analogy would be that you're tuning your bike for better performance because the trade-offs of switching to a car are worse than keeping the bike.

[–] [email protected] 54 points 2 months ago (8 children)

It's all about trade-offs. Here are a few reasons why one might care about performance in their Python code:

  1. Performance is often more tied to the code than to the interpreter - an O(n³) algorithm in blazing fast C won't necessarily perform any better than an O(nlogn) algorithm in Python.
  2. Just because this particular Python code isn't particularly performance constrained doesn't mean you're okay with it taking twice as long.
  3. Rewriting a large code base can be very expensive and error-prone. Converting small, very performance-sensitive parts of the code to a compiled language while keeping the bulk of the business logic in Python is often a much better value proposition.

These are also performance benefits one can get essentially for free with linter rules.

Anecdotally: in my final year of university I took a computational physics class. Many of my classmates wrote their simulations in C or C++. I would rotate between Matlab, Octave and Python. During one of our labs where we wrote particle simulations, I wrote and ran Octave and Python simulations in the time it took my classmates to write their C/C++ versions, and the two fastest simulations in the class were my Octave and Python ones, respectively. (The professor's own sim came in third place). The overhead my classmates had dealing with poorly optimised code that caused constant cache misses was far greater than the interpreter overhead in my code (though at the time I don't think I could have explained why their code was so slow compared to mine).

view more: ‹ prev next ›