• locuester@lemmy.zip
    link
    fedilink
    English
    arrow-up
    0
    ·
    5 天前

    NodeJS is worse. One dude just had to write a cli based JavaScript runtime and holy hell now entire backends run on the least performant runtime possible.

    • Ricaz@lemmy.dbzer0.com
      link
      fedilink
      English
      arrow-up
      0
      ·
      4 天前

      You can bash the Javascript language all you want, but don’t come for its performance lol. Nodejs was very fast across the board when it came out, and still beats most scripting languages. Even some bigger runtimes in IO.

      • locuester@lemmy.zip
        link
        fedilink
        English
        arrow-up
        0
        ·
        4 天前

        Its performance as a backend server is abysmal compared to standard compiled languages.

        It’s absolutely wasteful to use it.

        • Ricaz@lemmy.dbzer0.com
          link
          fedilink
          English
          arrow-up
          0
          ·
          4 天前

          The reality is that most backends don’t use compiled languages, but stuff like PHP, Java and Python.

          NodeJS scores very high on performance, concurrency, and especially IO, in that category.

          And calling it abysmal compared to compiled languages is not fair, but yes, there are much better alternatives.

    • stormeuh@lemmy.world
      link
      fedilink
      arrow-up
      0
      ·
      5 天前

      Yeah, and all because god forbid you give your (future) employees time to learn another language besides JavaScript. Nope, line must go up so programming must be further commodified.

  • Digit@lemmy.wtf
    link
    fedilink
    English
    arrow-up
    0
    ·
    5 天前

    LOL.

    Enjoyable little irony personally for me, as when I asked an LLM to churn out a readme for my fin project ( posted on lemmy here ), it proposed one of fin’s advantages that could push fin into the notable category: “Performance niche - might be faster than Electron-based editors for simple tasks”. Maybe I should change that to “save a fortune on RAM compared to Electron-based editors”.

  • favoredponcho@lemmy.zip
    link
    fedilink
    arrow-up
    0
    ·
    5 天前

    Electron apps existed and were a standard years before this current memory shortage. There is no connection there.

    • refalo@programming.dev
      link
      fedilink
      arrow-up
      0
      ·
      5 天前

      I think there is. I would say the connection is not that electron didn’t exist before, but that now that ram prices are high, an increase in the number of electron apps becomes a problem because of the ram usage. Not that the usage wasn’t a problem before, but that more people are using even more electron apps now than ever, hence their “industry standard” comment.

      • favoredponcho@lemmy.zip
        link
        fedilink
        arrow-up
        0
        ·
        5 天前

        But it’s not like electron apps became an industry standard now that there is a memory shortage. I also don’t think there is an increase in electron apps now that there is a memory shortage. These things are not connected in the way the meme suggests. Is it more problematic since memory is more expensive? Sure, maybe for some people running old hardware that want to upgrade. Otherwise, a lot of people already have plenty of memory to run these apps.

        • bitcrafter@programming.dev
          link
          fedilink
          arrow-up
          0
          ·
          5 天前

          I do not see the causal connection you are seeing in the meme at all. I just see it pointing out that now is a particularly bad time for Electron apps to be so dominant, which is true.

          • favoredponcho@lemmy.zip
            link
            fedilink
            arrow-up
            0
            ·
            5 天前

            I think the issue is “all during,” which reads as if the memory shortage has been going on for the decade, or a sizeable portion of it in which electron has been around.

        • Jarix@lemmy.world
          link
          fedilink
          arrow-up
          0
          ·
          5 天前

          You aren’t reading the meme correctly. It’s not a connection, is a coincidence.

          It just says a thing ,that uses 500 mb of ram per instance, had become an industry standard. That’s the happy face. Hey I created a thing for myself but it got used so much it became a standard.

          The second face is like oh shit, I did not make this efficient with its memory usage but now it’s standard and ram prices are terrible so the thing that was sparking joy, is now kind of a problem because its flaws now actually matter

  • 1984@lemmy.today
    link
    fedilink
    arrow-up
    0
    ·
    5 天前

    Linux wins again. Still runs on same hardware as 10 years ago. :) No forced updates by any big corp.

    • gerryflap@feddit.nl
      link
      fedilink
      arrow-up
      0
      ·
      5 天前

      In terms of performance yeah. Though not every old device keeps working. You’re still vulnerable to driver support for newer kernels. My old Thinkpad no longer functions properly because the Nvidia drivers are not compatible with newer kernels. I can either have an unsafe machine that runs fine or an up-to-date machine that can barely open a web browser.

        • Digit@lemmy.wtf
          link
          fedilink
          English
          arrow-up
          0
          ·
          5 天前

          I struck lucky. Never had any issues with nvidia on linux in all my >2 decades using linux.

          Still prefer AMD though. Straight through.

  • WormFood@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    6 天前

    the problem isn’t electron, the problem is that A) html is the only truly cross platform UI framework and B) that html (and the web stack in general) has way too many features and is way too complex, because Google’s been bolting features onto it for decades.

  • tangonov@lemmy.ca
    link
    fedilink
    arrow-up
    0
    ·
    6 天前

    Meanwhile my Linux runtime still boots for 1G and Emacs is looking pretty good right now lol

  • who@feddit.org
    link
    fedilink
    English
    arrow-up
    0
    ·
    6 天前

    Scintilla my beloved

    (This is the text editor component in Geany and Notepad++)

    • Potatar@lemmy.world
      link
      fedilink
      arrow-up
      0
      ·
      5 天前

      I’m sorry my comment is not deep enough to be his irrelevant to the topic but I gotta ask: Do you know a text editor which is just notepad but remembers the last session when you close it? I just need a scratchpad, even notepad++ is too fancy for my needs but that’s what I was using on windows. Now I use kate but it feels like I’m killing a mosquito with a rocket launcher when a book cover would do.

      • hornywarthogfart@sh.itjust.works
        cake
        link
        fedilink
        English
        arrow-up
        0
        ·
        5 天前

        Unless you want to get fancy for the sake of not being fancy, you will likely be best just sticking with Kate.

        Basic editing can be done in vi or nano or even piped to a file via she’ll. I don’t think any of those are necessarily better or worse than using Kate. Vi and nano would probably be faster but you would need to be in a terminal already.

        That said, I am curious as well if anyone has a better answer.

      • who@feddit.org
        link
        fedilink
        English
        arrow-up
        0
        ·
        5 天前

        On KDE Plasma, I would stick with Kate and hide/disable some the fancier interface features. It might seem like overkill, but since it’s built from common components that other KDE apps use using anyway, the additional resource consumption will probably be minimal. And it’s quick.

        On a Gtk desktop, you might try Mousepad. This is what I used before moving away from Xfce.

  • zorro@lemmy.world
    link
    fedilink
    English
    arrow-up
    0
    ·
    6 天前

    rust_analyzer takes 16GB of ram though so good luck actually working on a rust project

    (Semi kidding, the project I work on is very big)

    • finitebanjo@lemmy.world
      link
      fedilink
      arrow-up
      0
      ·
      6 天前

      Honestly I can’t imagine a project getting that size unless there are no placeholder assets for visuals. Or if it uses a buttload of local libraries.

    • hedge_lord@lemmy.world
      link
      fedilink
      English
      arrow-up
      0
      ·
      6 天前

      My gripe with Kate is that whenever I open a file and get an LSP error it displays a pulsing warning notification in the lower left of the window. This might be okay except that I cannot read things if something is moving in my peripheral vision and there is also apparently no way to suppress this pulsing warning notification other than to disable the LSP features entirely. I want to use kwrite because at that point I might as well, but there is a long-standing bug in plasma that causes Kate to be defaulted to over kwrite for some file types despite my preferences!

      I still prefer this to vscode, but I just need to vent a bit

  • boonhet@sopuli.xyz
    link
    fedilink
    arrow-up
    0
    ·
    6 天前

    Atom was kinda revolutionary in its plugin support and everything IIRC.

    Well, now that Atom has been replaced by VSCode, which is also an electron app, the original Atom devs, or at least some of them, are creating Zed. Zed’s written in Rust and uses a lot less memory.

    Of course it’s not yet as mature and they’re trying to earn money by integrating AI and selling that as a service. BUT the AI is voluntary and even if you do want to use it, you don’t have to pay to use their AI (which comes with a free tier if you DO want to use it), you can literally run your own model in ollama.

    It’s not perfect, but I love how little RAM it uses compared to VSCode and (shudders) the Jetbrains suite (which I normally love, but hate the RAM and CPU usage, it can drive my computer pretty slow)

    • PoliteDudeInTheMood@lemmy.ca
      link
      fedilink
      arrow-up
      0
      ·
      5 天前

      That explains alot. I have both PyCharm and RustRover open as I steal convert stuff from a project I found. Anywho I was typing in discord and I was typing faster than it rendered and I thought that was strange

    • dreadbeef@lemmy.dbzer0.com
      link
      fedilink
      English
      arrow-up
      0
      ·
      6 天前

      still have the patch they sent for people who published packages. I made a theme no one but me used but still! Pre microsoft github was cool

      • Calyhre@lemmy.world
        link
        fedilink
        arrow-up
        0
        ·
        5 天前

        Got that patch still in it’s brown envelope somewhere in a drawer, for doing a syntax highlighting plugin.

        They were indeed cool

      • The Quuuuuill@slrpnk.net
        link
        fedilink
        English
        arrow-up
        0
        ·
        6 天前

        it did, but this is about electron, which isn’t relevant to sublime. sublime’s plugins mechanism is a little different from atom, which is much more like emacs

        • jol@discuss.tchncs.de
          link
          fedilink
          arrow-up
          0
          ·
          6 天前

          Yes, but the plugin ecosystem really was pioneered by sublime and then ported over everywhere. A big reason atom was so successful is the plugin and themes were compatible.

    • NickeeCoco@piefed.social
      link
      fedilink
      English
      arrow-up
      0
      ·
      6 天前

      It has become my favorite editor, even though I don’t need or want the AI stuff. They do something that I do quite appreciate, that I wish other apps (looking at you, Firefox) would do:

      sroAL9YDNF05i6p.png

      In the AI section of the settings, the first thing is a toggle that turns off all AI features.

      • x00z@lemmy.world
        link
        fedilink
        English
        arrow-up
        0
        ·
        6 天前

        It shouldn’t have AI features by default though. Just make that functionality a plugin that can be downloaded separately.

  • BigDanishGuy@sh.itjust.works
    link
    fedilink
    arrow-up
    0
    ·
    6 天前

    And here I was thinking this was about emacs and lisp. Yougster complaining about not knowing how to quit Vi smh they have never experienced the horrors of emacs

    • MeThisGuy@feddit.nl
      link
      fedilink
      arrow-up
      0
      ·
      6 天前

      i doo doo love it too.
      does it have syntax support for Gcode yet? I do CnC (not the kinky kind) and I love to see shit in color. there’s only a few specialized editors that I have come across that do this reasonably well…

      • Buddahriffic@lemmy.world
        link
        fedilink
        arrow-up
        0
        ·
        6 天前

        Iirc you can create custom syntax highlighting formats for notepad++. So if it’s not there by default, someone else might have made a file for it, or you can start making one yourself, as the format was easy to understand. It’s been like a decade since I’ve used it, but it should be somewhere in the menus.