• ayyy@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    0
    ·
    6 days ago

    But I was assured by entitled assholes that going down for a few days would be the absolute end of the community and it would never bounce back… I was assured it was extremely irresponsible bordering on criminal negligence for a hobby forum to not have at least three global points of presence each staffed with 24/7 on-call engineers.

    • poVoq@slrpnk.net
      link
      fedilink
      English
      arrow-up
      0
      ·
      edit-2
      6 days ago

      It is the medium term plan, yes (if feasible).

      The user facing side of Piefed is more optimized for speed and low resource use, which fits well with our Solarpunk ethos, and on the backend side I expect it to be easier to maintain and the performance impact should be neglible as most of it is the Postgres database with Lemmy and likely Piefed as well.

    • squaresinger@lemmy.world
      link
      fedilink
      English
      arrow-up
      0
      ·
      6 days ago

      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.

      • boonhet@lemm.ee
        link
        fedilink
        English
        arrow-up
        0
        ·
        6 days ago

        Facts right here. I love Rust and my day job is Python. Neither is too slow for most of my use cases. Though one cool thing about Rust is the super low overhead. So well-written Rust, much like well-written C, is great for low-power devices. Still, the database is going to be memory, IOPS and maybe CPU hungry as it grows. You can optimize data structures, but you still need to read said data.

  • infinitesunrise@slrpnk.net
    link
    fedilink
    English
    arrow-up
    0
    ·
    edit-2
    7 days ago

    Not being to participate anywhere on Lemmy merely because my home instance was down didn’t feed very federated :(

    Is there anything I can do to guard against that issue in the future? Is there a way to mirror an account between two instances or something?

    Anyway, big props to the slrpnk admins for getting the instance back online quicker than expected. Your hard work is definitely not unappreciated or unnoticed.

    • Natanael@slrpnk.net
      link
      fedilink
      English
      arrow-up
      0
      ·
      7 days ago

      I have alts. No automatic sync, but you can list your alts in your profile like I do.

      On mobile make sure to use a client which makes it easy to switch between accounts (I use Thunder, which additionally shows server status in the account switcher!)

    • ProdigalFrog@slrpnk.net
      link
      fedilink
      English
      arrow-up
      0
      ·
      edit-2
      7 days ago

      It’s possible to export your Subscriptions, Community/instance blocks, and saved posts/comments to an account on a different instance by exporting your account’s JSON file, which you can do in your Account Settings page.

      You can then import the JSON file in that same area on your alternative backup account, so that your experience is uninterrupted. Personally I would recommend making a backup account on Sopuli.xyz or Lemmy.cafe, they’ll give you the most similar vibe due to how their instances are set up.

    • Blaze (he/him) @lemmy.dbzer0.comOP
      link
      fedilink
      English
      arrow-up
      0
      ·
      7 days ago

      there anything I can do to guard against that issue in the future? Is there a way to mirror an account between two instances or something?

      Open an alt, export/import your settings