• 0 Posts
  • 48 Comments
Joined 3 months ago
cake
Cake day: March 23rd, 2025

help-circle









  • Tbh, the vast majority of performance issues don’t come from the language but from the application itself.

    While python is clearly slower than rust when it comes to pure native performance when doing exactly the same things exactly the same way and only within the language itself, the same isn’t necessarily true in the bigger picture.

    • Python uses C modules under the hood. A lot of the functions you call actually utilize C with C performance.
    • Lower level languages allow the programmer to fail harder. While perfect low-level language code usually runs faster than perfect high-level language, the same cannot be necessarily said for bad or average code. For example, it’s really hard to make an actual memory leak in Python. It’s super easy to do so in languages without built-in memory management. The same applies in many other cases too. Python just gives you a lot of already-done tools that you only have to use, while other languages allow you to build the tools from scratch, which is easy to mess up.
    • Most performance is lost due to using wrong algorithms or data structures. It’s quite common when optimizing that you e.g. manage to eliminate a nested loop or something like that (e.g. loops hidden inside functions you call), and suddenly you improve performance by a factor of 1000. The same can’t be done by switching languages, where even the most inefficient languages are only maybe 10x slower than the fastest languages.

    So independent of the programming language, investing time in optimizing can improve the performance much more than using a faster language, and it’s much easier to make perfectly optimized high-level language code than perfectly optimized low-level language code.


  • Tbh, immigration isn’t the worst “solution”.

    We do have an overpopulation problem. Well, an overconsumption times overpopulation problem, really.

    We could fix that by either consuming less (which we apparently, as a species, really don’t want) or by having fewer people (which we apparently really want).

    So, in the end, reducing population isn’t a real problem. Even if the population shrinks by 50% each generation (~25 years, for the sake of the argument), there will still be 250mio people left even after 5 generations. The trend should probably be reversed sometime then, but until then it’s really not an issue on the species survival aspect and it would actually be really good for the planet and our long-term survival.

    But until then we have mainly one problem: our economic system is based on infinite growth, which can’t work. So again there are two main solutions: either we bring in people from other countries, who benefit from a higher standard of living here while supporting our economic system, or we get rid of the real parasites and freeloaders in our societies: the ultra rich. And again, for some reason we really don’t want to get rid of the rich.



  • Park and ride is what that concept is called.

    Even with low parking fees and low public transport fees, you need to incentivize their usage even further by e.g. adding a city toll, so that people have to pay when going into the city by car.

    But even then it’s not really THE big solution. In Vienna, for example, about 450 000 cars cross city lines into the city each morning. An average parking spot in a garage is about 12.5m² plus 7.5m² of space to access it, so ~20m² in total.

    That’s a total of roughly 9km².

    That’s about 2% of the total area of Vienna, and currently it’s provided by thousands of parking garages and parking lots distributed all over the city.

    But if you were to build that on the outskirts of the city, the park and ride facilities would have to be enormous.

    Even if you build 5-story parking towers that’s still roughly 2km².







  • because all games on PC are free if you want them to be

    If you include piracy, that’s available on the Switch too. Worst case you have to chip in €10 for a mod chip, but that’s it.

    Lmao so you include all the deals for the switch with your “mario kart upgrade”, but not the steam deck?

    Yeah, find me a deal to get Mario Kart for the steam deck legally.

    Then you consider it’s also your laptop/main PC too…

    You want to use a steam deck as a laptop? Do you really have no self respect?

    That also isn’t the point I was even disputing, it’s precisely that the ownership is more expensive because PC gamers buy more games, but either way you’re wrong.

    That was exactly my point. Steam Decks/PCs and consoles are used differently by different people, and in the end a Steam Deck is not cheaper than a console, even if you never pay a cent for a game (but then again, why are you buying a Steam Deck?)

    But if we keep going

    I get the feeling you don’t actually want to discuss or talk about the topic, you just want to win. So yeah, no point in continuing the discussion.


  • squaresinger@lemmy.worldtoMicroblog Memes@lemmy.worldHeroes
    link
    fedilink
    English
    arrow-up
    0
    ·
    edit-2
    3 days ago

    English spelling is easy enough that in 95% of cases you can match up the spoken word with the written word.

    How’s the percentage of that for Chinese?

    In fact, if you want a language where it’s actually hard to know how a word is pronounced if you only ever see it in the written form, you gave yourself the answer.