Skip Navigation
InitialsDiceBearhttps://github.com/dicebear/dicebearhttps://creativecommons.org/publicdomain/zero/1.0/„Initials” (https://github.com/dicebear/dicebear) by „DiceBear”, licensed under „CC0 1.0” (https://creativecommons.org/publicdomain/zero/1.0/)LE
Posts
32
Comments
907
Joined
1 yr. ago
  • While that's true and what I'm about to say could be legend rather than reality, I grew up being told that giraffes also tend to go to the top of a hill during storms, making them more likely to be struck by lightning.

  • My ex: what charging cables do you have? They last forever, mine break after a year!
    Also my ex: so I got a bunch of the same charging cables you have and they all broke after a year

  • 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.

  • 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).

  • United States | News & Politics @midwest.social
    lengau @midwest.social

    Tesla's stock performance since Elon Musk endorsed Donald Trump

    Memes @midwest.social
    lengau @midwest.social

    Valentine's Day

    linuxmemes @lemmy.world
    lengau @midwest.social

    I see the Reddit hivemind has arrived

    Ann Arbor @midwest.social
    lengau @midwest.social

    I think this is really great! Too many cities are quite hostile to people with mobility issues.

    Ann Arbor @midwest.social
    lengau @midwest.social

    State Senators from Ann Arbor pushing to allow municipalities to regulate single-use plastic bags

    The original title was "State Senators from Ann Arbor pushing for repeal on ban of single-use plastic regulations" but that sounded confusing to me.

    This change, if implemented, would allow Ann Arbor to do things like require that stores charge for plastic bags.

    Ann Arbor @midwest.social
    lengau @midwest.social

    Judicial Races in Washtenaw County - WEMU

    196 @lemmy.blahaj.zone
    lengau @midwest.social

    Rules for medication

    linuxmemes @lemmy.world
    lengau @midwest.social

    Snap bad

    Ann Arbor @midwest.social
    lengau @midwest.social

    This is great to see! We need more green energy all over, and rooftop solar is one of the easiest places to do it.

    Ann Arbor @midwest.social
    lengau @midwest.social

    Gift link to avoid the paywall, but also: archive.today

    I think this is a net positive, but I really wish this had more housing and less surface parking. I'd love to see the city start requiring that new developments have most of their parking underground.

    Ypsilanti, MI @midwest.social
    lengau @midwest.social

    Full version of our community picture

    Spot the deep cuts.

    Ypsilanti, MI @midwest.social
    lengau @midwest.social
    Ann Arbor @midwest.social
    lengau @midwest.social

    The Michigan Daily's coffee shop vote misses out on Socotra

    I have to say, Socotra is my favourite coffee shop in A2, and yet the Daily doesn't even mention it.

    Ann Arbor @midwest.social
    lengau @midwest.social
    Ann Arbor @midwest.social
    lengau @midwest.social
    bunnies @lemmy.world
    lengau @midwest.social

    Eastern Cottontail I saw on a walk yesterday.

    Ann Arbor @midwest.social
    lengau @midwest.social

    This is great! The site, despite being right near downtown, has been blighted and basically abandoned for over a decade.

    Ann Arbor @midwest.social
    lengau @midwest.social

    Personally I think this is a great thing! I've been carrying narcan kits in my car and on my bike for years now. Fortunately I've never had a need to use one, but that also means I now have an expired narcan kit I need to discard.

    Michigan @midwest.social
    lengau @midwest.social
    196 @lemmy.blahaj.zone
    lengau @midwest.social

    Autism rule