• nightlily@leminal.space
      link
      fedilink
      English
      arrow-up
      15
      arrow-down
      1
      ·
      14 hours ago

      I get why vibe coders love Rust - it’s a lot harder to shoot yourself in the foot if rustc is checking your lifetimes, but holy shit is the code I’ve seen from them the most unholy mess. Rust is difficult enough to read at the best of times but LLMs don’t even bother with any kind of module structure. Just thousands of lines of vomit in single files and a worrying amount of unsafe.

      • boonhet@lemmy.zip
        link
        fedilink
        English
        arrow-up
        2
        ·
        5 hours ago

        Honestly sounds like LLMs have learned that from half the rust projects I’d seen before the LLM craze lol

    • TBi@lemmy.world
      link
      fedilink
      English
      arrow-up
      8
      ·
      13 hours ago

      And this will probably give rust a bad name if most of the code is horrid vibe coded stuff. (Cuck coded?)

  • gera@feddit.nu
    link
    fedilink
    English
    arrow-up
    8
    ·
    14 hours ago

    With screensharing on wayland? With screensharing on wayland, right?

    • Scrollone@lemmy.zip
      link
      fedilink
      English
      arrow-up
      60
      arrow-down
      1
      ·
      22 hours ago

      Yeah exactly. “Just” 240 MB, it’s still a lot for a glorified chat app

      • zergtoshi@lemmy.world
        link
        fedilink
        English
        arrow-up
        8
        ·
        17 hours ago

        Windows 98 required far less disk space and was a complete operating system - that is if you consider Win98 an operating system…

        • 0xDREADBEEF@lemmy.dbzer0.com
          link
          fedilink
          English
          arrow-up
          5
          ·
          edit-2
          17 hours ago

          Anything new coming from any non-bootstrapped company is likely slop, and even the bootstrapped deserve a second look

        • ryannathans@aussie.zone
          link
          fedilink
          English
          arrow-up
          10
          arrow-down
          1
          ·
          21 hours ago

          Rust apps seem to always be on the heavy side, maybe depends how much debug info they leave in

          • threeonefour@piefed.ca
            link
            fedilink
            English
            arrow-up
            6
            ·
            13 hours ago

            I once played around with reverse engineering a Rust program. I compiled the optimized version of the standard “hello world” program which somehow turned into 50,000 lines of assembly.

            It looked like it copied over dozens of functions from libc and the data section was filled with every single possible error string “file not found”, “connection timed out”, etc. as if there was a possibility of hello world generating an access denied error.

            • boonhet@lemmy.zip
              link
              fedilink
              English
              arrow-up
              1
              ·
              5 hours ago

              Rust has static linking, you get the necessary (and some unnecessary) parts of the standard library in your binary instead of the user having to install the library the way you have to have a libc installed. Makes for fatter binaries but much easier compatibility.

            • henfredemars@infosec.pub
              link
              fedilink
              English
              arrow-up
              1
              ·
              7 hours ago

              Was your C hello world program statically linked? I believe Rust includes its libraries whereas the typical hello world does not. Static linkage generally brings in large amounts of unused code.

          • fartsparkles@lemmy.world
            link
            fedilink
            English
            arrow-up
            32
            ·
            21 hours ago

            Indeed, they’re probably shipping a backtrace symboliser, and since there’s no system-wide equivalent of libc to link against, they’ll be including the entire Rust standard library with the binary too.

            My other hunch is the Krisp noise cancellation ML model is a huge chunk of the memory footprint.

    • fartsparkles@lemmy.world
      link
      fedilink
      English
      arrow-up
      32
      ·
      edit-2
      21 hours ago

      Even the guys who invented Electron (developers of the Atom text editor) stopped using it years ago and switched to Rust when writing their new editor, Zed, and its UI framework GPUI (which Discord will be using too).

      • henfredemars@infosec.pub
        link
        fedilink
        English
        arrow-up
        3
        ·
        7 hours ago

        Maybe we don’t want to use JavaScript for literally everything.

        It’s great to see it. I wonder how much of this push comes from the high price of memory.

  • AgentSeven@lemmy.zip
    link
    fedilink
    English
    arrow-up
    55
    arrow-down
    2
    ·
    21 hours ago

    Discord is as much spyware as anything else. Its efficiency in using my computer’s resouces in order to log everything about me, build a dossier on me and sell me out at every opportunity is not a consideration, as I view it as something to be avoided like Meta, et al.

    That said, Electron does suck.

    • derfaucet@beehaw.org
      link
      fedilink
      English
      arrow-up
      2
      ·
      15 hours ago

      Anything else? Nah bro. It’s as much spyware as Google chat or Whatsapp… But Matrix, XMPP, mumble, etc are not spyware (sure, if your host is the CIA maybe, but with these software you can be your own host if you want. No spying guaranteed.)

  • carrylex@lemmy.world
    link
    fedilink
    English
    arrow-up
    2
    ·
    edit-2
    12 hours ago

    I’m pretty sure this is just an experiment:

    • Don’t break anything that works
    • The website version of the app can’t be replaced
    • The normal discord app is not that memory hungry it’s usually below 1 GB for me, maybe consider optimizing your existing codebase?
    • A web based client allows for easier customization, better styling and easier creation of modifications
    • boonhet@lemmy.zip
      link
      fedilink
      English
      arrow-up
      1
      ·
      5 hours ago

      The existing app is based on electron. It pretty much can’t be optimised unless you manage to greatly reduce the footprint of Chromium itself.

    • Axolotl.cpp@lemmy.dbzer0.com
      link
      fedilink
      English
      arrow-up
      3
      ·
      14 hours ago

      TL;DR: vesktop will probably no longer work (unless they wanna mantain the client themselves…) and vencord will likely only work as a userscript in your browser.

    • subignition@piefed.social
      link
      fedilink
      English
      arrow-up
      1
      ·
      14 hours ago

      It probably won’t, but honestly there aren’t that many features the desktop client has that you can’t just get by using the browser webapp (Keyboard shortcuts, and the “now playing” feature that is a privacy mess, are the two biggest ones that come to mind right now)

  • Pika@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    33
    ·
    23 hours ago

    man I love that they are ditching electron but, they “just” fixed the discord linux client to properly update and now they are rehauling it? can’t wait to get this update 3 years from now.

    • henfredemars@infosec.pub
      link
      fedilink
      English
      arrow-up
      1
      ·
      7 hours ago

      I got frustrated enough with the weirdness of the Linux client that I eventually ended up using a pinned browser tab.

      At least then the data collection monstrosity is sandboxed. I believe Flatpak helps, too.

  • Chiahna@piefed.blahaj.zone
    link
    fedilink
    English
    arrow-up
    28
    ·
    23 hours ago

    It’s great, but I wonder what happens with the linux client? There is no mention of it in the article.
    Do we get optimized native client or is that too much work if they don’t have universal framework anymore?

  • Brkdncr@lemmy.world
    link
    fedilink
    English
    arrow-up
    8
    ·
    23 hours ago

    You ever use a Swiss Army knife to open a letter? It’s a lot of extra shit you don’t need but it’s there anyways.

    • JackbyDev@programming.dev
      link
      fedilink
      English
      arrow-up
      1
      ·
      5 hours ago

      Oh, I’m sorry, I wasn’t aware I had to forego all traditional social media applications to use federated ones. 🙄

    • perturbedstarstuff@lemmy.world
      link
      fedilink
      English
      arrow-up
      19
      ·
      15 hours ago

      It’s actually really difficult to get your friends to switch over little things like ‘being a spy platform’, and ‘leaking tens of thousands of users private information’.

    • guy@piefed.social
      link
      fedilink
      English
      arrow-up
      41
      arrow-down
      1
      ·
      19 hours ago

      People probably voice chat with their friends, I don’t think Lemmy has that feature?

      • idunnololz@lemmy.world
        link
        fedilink
        English
        arrow-up
        9
        arrow-down
        1
        ·
        17 hours ago

        I also use it for socializing. Basically a collection of giant instant messaging groups.

    • Axolotl.cpp@lemmy.dbzer0.com
      link
      fedilink
      English
      arrow-up
      6
      ·
      14 hours ago

      To manage my community more easly and interact with many others aswell plus every friend of my uses it.

      There is no alternative currently that offers a granular permission system like discord’s, voice chat and streaming that doesn’t also suck in other aspects

    • Allero@lemmy.today
      link
      fedilink
      English
      arrow-up
      15
      arrow-down
      1
      ·
      18 hours ago

      It’s a mainstream platform, so many non-Lemmy people are still there.

      Besides, it’s always worth the praise when someone makes good technical decisions that benefit users.

    • BurgerBaron@quokk.au
      link
      fedilink
      English
      arrow-up
      6
      ·
      edit-2
      16 hours ago

      Things I want are held hostage on Discord. If I want to play Motorstorm online, I look at the fan server channel and it has real time lobby stats and chat rooms to get some games going. Just an example. My friends usually use Steam for voice chat.

    • derfaucet@beehaw.org
      link
      fedilink
      English
      arrow-up
      1
      ·
      15 hours ago

      Someone at work with much more political power, and much less knowledge of how dangerous surveillance capitalism is, insists on using it 'cause they use it all the time and it’s functional.

      :(