• umbraroze@lemmy.world
    link
    fedilink
    arrow-up
    9
    ·
    2 hours ago
    • Yes
    • Yes, and also delete Electron
    • That, and also make me forget I ever even heard about Electron in the first place
  • serenissi@lemmy.world
    link
    fedilink
    arrow-up
    7
    ·
    5 hours ago

    Any tech college kid can write an app in common frameworks. I’ll admit llm code generators are great when they can translate electron apps to say tauri or even better to QT at reasonable cost :)

  • aliser@lemmy.world
    link
    fedilink
    arrow-up
    18
    arrow-down
    2
    ·
    15 hours ago

    what’s are the alternatives? I want ease of writing UIs js/CSS/HTML gives, especially with frameworks like svelte.

    • Maven (famous)@lemmy.zipOP
      link
      fedilink
      arrow-up
      20
      ·
      edit-2
      10 hours ago

      I’d highly recommend Tauri. It’s much much much faster and you can use svelte for the front end and enjoy all of those benefits.

      The “downside” is that all of the backend is written in rust which can be trouble to learn… (Downside is in quotes because rust is my favorite language and I would legally marry it if the law cared about the true meaning of love) However! If you don’t care much about the backend stuff or most of that is gonna be simple anyway… Just use it. It’s better in every way

      Edit for context: I’m the lead developer of a “popular” (it’s as popular as you can be as a niche tool for a niche community) open source project that uses Tauri with a svelte front end and rust in the back end.

      • Brahvim Bhaktvatsal@lemmy.kde.social
        link
        fedilink
        isiZulu
        arrow-up
        2
        ·
        5 hours ago

        There’s also a Golang alternative that does not have 6 GiB build folders like Tauri / Tauri 2.

        (Tauri generates like 3 MiB binaries. It’s the build folders that are huge. Also stay ready to compile huge Rust packages!)

    • LordKitsuna@lemmy.world
      link
      fedilink
      arrow-up
      1
      arrow-down
      11
      ·
      15 hours ago

      Getting good is an alternative, coding will always be a trade between ease and quality. Super high level languages are super easy and accessible but the tradeoff is you have no idea what is actually happening on the backend nor much control of it and it requires bloated web engines to manage and run.

  • Pechente@feddit.org
    link
    fedilink
    English
    arrow-up
    130
    arrow-down
    1
    ·
    edit-2
    22 hours ago

    For anyone considering Electron: take a look at Tauri. It’s another way to build cross-platform apps with web tech. It will use the OS‘s web rendering engine instead of shipping Chromium which results in much smaller binaries and faster startup times and less RAM usage. You can also write native code in Rust. It’s like Electron but good.

      • Pechente@feddit.org
        link
        fedilink
        English
        arrow-up
        3
        ·
        1 hour ago

        The reason people use Electron in the first place is that they wanna share a codebase between web, desktop and possibly mobile.

        While Flutter can technically do that, the web apps it outputs are atrocious with poor usability and accessibility. It’s drawing the whole UI on a canvas element which causes all kinds of issues.

    • OmegaLemmy@discuss.online
      link
      fedilink
      arrow-up
      44
      arrow-down
      1
      ·
      21 hours ago

      Bad for Linux at the moment…

      That being said, it won’t improve just by saying it’s bad for Linux, if you work as a maintainer in a distro, or know a lot about Linux and rust to help their development then please reach out!!!

      The sooner tauri is usable everywhere the more people will prefer it

        • OmegaLemmy@discuss.online
          link
          fedilink
          arrow-up
          9
          ·
          edit-2
          15 hours ago

          Outdated theming and several widgets(?)that aren’t implemented general instability such as random crashes, code not behaving similarly to Mac or Windows, slowdowns, missing packages in builds, a lot of window resizing issues and uh, fuck load of appimage issues

      • Pechente@feddit.org
        link
        fedilink
        English
        arrow-up
        23
        ·
        20 hours ago

        I didn’t try out a Tauri app on linux yet, I just know that it’s generally supported. What doesn’t work (well) as of now?

    • bulwark@lemmy.world
      link
      fedilink
      English
      arrow-up
      18
      ·
      22 hours ago

      There’s actually a pretty cool music player project I’m keeping an eye on called Audioling that’s built on Tauri. I currently use one called Feishin which is pretty good.

  • mindbleach@sh.itjust.works
    link
    fedilink
    arrow-up
    21
    ·
    17 hours ago

    HTML5 applications goddamn well ought to be first-class programs, as a totally platform-agnostic realization of Turing completeness.

    Instead you get every application bundled with its own whole-ass operating system and virtual machine. For a fucking webpage. Yep! No other way to run that on a modern computer!

  • mlg@lemmy.world
    link
    fedilink
    English
    arrow-up
    34
    arrow-down
    2
    ·
    20 hours ago

    I think VSCode is the only stable electron application and even then it took them like 5 years to reach passable stability lol.

    Used to crash and combust all the time when I first tried it.

    • kshade@lemmy.world
      link
      fedilink
      English
      arrow-up
      5
      ·
      edit-2
      4 hours ago

      Etcher seems stable! But it’s also a well over 100 MB download for a disk image writer. Rufus does more in less than 1% of the download size and also has a GUI.

      • mlg@lemmy.world
        link
        fedilink
        English
        arrow-up
        1
        ·
        6 minutes ago

        Yeah that crashed for me across several versions too lol.

        Latest works, but I have like 5 different ones saved because I think 1.16-1.18 wouldn’t complete writing to disk.

    • ZILtoid1991@lemmy.world
      link
      fedilink
      arrow-up
      4
      ·
      4 hours ago

      A crime commited by techbros of the early 2010’s, who envisioned an end to desktop applications, and them being replaced by websites.

      • szczuroarturo@programming.dev
        link
        fedilink
        arrow-up
        6
        ·
        2 hours ago

        To be fair making native aplications was( maybe even still is , the last time i touched anything non abap related was in uni )very unnesecarily complex thing back then especialy compared to the simplicity of web frontend .

    • ZILtoid1991@lemmy.world
      link
      fedilink
      arrow-up
      2
      ·
      4 hours ago

      Use Qt or some similar framework to develop your desktop apps, or use SDL or similar middleware if you want your own and want portability very quickly. I even managed to write my own SDL replacement.

      • httperror418@lemmy.world
        link
        fedilink
        arrow-up
        3
        ·
        3 hours ago

        Interesting, but I was raising a joke at how many apps are electron based and could easily have a working app on Linux. Yet they never publish Linux versions of electron apps, and it drives me nuts as it’s so easy to enable

      • AlexWIWA@lemmy.ml
        link
        fedilink
        English
        arrow-up
        16
        ·
        21 hours ago

        Everything runs like shit now. My old xp retro gaming pc feels snappier than my new one.

        • marcos@lemmy.world
          link
          fedilink
          arrow-up
          11
          arrow-down
          1
          ·
          19 hours ago

          I think there’s a very large correlation between people that decide to use electron and people that write unusable, broken, tortoise-speed software.

          Because it really doesn’t need to be slow for user-interacting software. In fact, I don’t think any platform exists that is so bloated that it can make modern computers slow for user-interaction.

      • cook_pass_babtridge@sh.itjust.works
        link
        fedilink
        arrow-up
        4
        ·
        5 hours ago

        When a team uses Unreal properly it can be great. Guilty Gear Strive is built in Unreal, has a beautiful unique visual style, and runs great. But you need a team who really knows what they’re doing, both on the code and art sides.

        The problem is when an indie dev tries to use it and does everything “out of the box”. If you’re a solo or indie dev, just use Unity or Godot (I’ve been using the latter and loving it)

      • Maven (famous)@lemmy.zipOP
        link
        fedilink
        arrow-up
        21
        arrow-down
        1
        ·
        20 hours ago

        Unity is bad as a company but unreal runs poorly and yet is being used in a LOT of games for no reason. Similar to Electron.

        • Rusty Shackleford@programming.dev
          link
          fedilink
          English
          arrow-up
          21
          ·
          edit-2
          40 minutes ago

          I think a lot of the plugin tooling for Unreal promotes bad practices with asset management, GPU optimization, and memory management. I’m trying to say that it allows shitty/lazy developers and asset designers to rely on over-expensive hardware to lift their unoptimized dogshit code, blueprints, models, and textures to acceptable modern fps/playability standards. This has been prevalent for a few years but it’s especially egregious now. Young designers with polygon and vertex counts that are out of control. Extraneous surfaces and naked edges. Uncompressed audio. Unbaked lighting systems. Memory leaks.

          My personal experience experimenting with Unreal is the same as developing DNNs and parametric CAD modelling applications for my day job: effective resource, memory, and parallelism management from the outset of a project is (or should be) axiomatic. I think Unreal 5 runs exceptionally well when that’s the case. A lot of the time, one can turn off all of the extra hardware acceleration and frame generation AI crap if your logic systems and assets are designed well.

          I know this is a bit of an “old man yells at cloud” rant, but if one codes and makes models like ass, of course their game is gonna turn out like ass. And then they turn around and say “tHe EnGiNe SuCkS”.

          No. Fuck you. You suck.

        • Unreal pushes a lot of “hip tech” that supposedly improves performance, but often it turns out that many example cases are just really poorly optimised. With more traditional optimization techniques more can be achieved.

          Unreal can perform really, really well, it’s just that it won’t by default. And many devs are too lazy to properly profile their games to figure out how to improve it.

      • AlexWIWA@lemmy.ml
        link
        fedilink
        English
        arrow-up
        2
        ·
        6 hours ago

        The issue isn’t the engine itself, but the management practices that lead companies to desire unreal.

  • Lucy :3@feddit.org
    link
    fedilink
    arrow-up
    18
    arrow-down
    1
    ·
    22 hours ago

    When gecko electron?

    (Yes, I know that there has been effort to that, but at one point having gecko and FF seperate was too much work, so it was merged further, so that it’s now even harder to create a gecko-based electron. So basically just create a clean FF profile, add all addons you want (uBlock and noscript are useful for some apps), and make a desktop shortcut to open the web page in that specific profile. Funnily enough, it’s more lightweight!)

  • wise_pancake@lemmy.ca
    link
    fedilink
    arrow-up
    14
    arrow-down
    4
    ·
    22 hours ago

    I’m experimenting with a game and rather than deal with platform specific graphics I’m just targeting wasm and webgl and plan to embed my game in a browser runtime.

    It feels less terrible than the mess that is linking platform specific logic and code.

      • wise_pancake@lemmy.ca
        link
        fedilink
        arrow-up
        1
        ·
        edit-2
        15 hours ago

        Do you have suggestions?

        Last time I looked at QT I didn’t like it

        For what it’s worth, I’m not looking at electron but something like an embedded browser mode. I think qt has that

        • MonkderVierte@lemmy.ml
          link
          fedilink
          arrow-up
          1
          ·
          6 hours ago

          I even forgot how that one i liked years ago was named. But Wikipedia has a (likely slightly outdated) list. Just google “cross platform ui toolkit”.

        • The_Decryptor@aussie.zone
          link
          fedilink
          English
          arrow-up
          2
          ·
          14 hours ago

          Qt is overkill if all you’re using it for is to create a window you render into, something like SDL would be better.

          • wise_pancake@lemmy.ca
            link
            fedilink
            arrow-up
            1
            ·
            edit-2
            2 hours ago

            That’s how I feel, and I was between SDL and just writing GL code myself.

            The problem is I run Mac and OpenGL is at best neglected and is deprecated. If I use webgl and wasm I done have to worry about any of that, and they have sdl for wasm.

            Edit: my game is going to be 2d and the UI isn’t going to be more complex than raylib. I’m just playing around but also building an idea I’ve had for years.

    • LordKitsuna@lemmy.world
      link
      fedilink
      arrow-up
      2
      ·
      15 hours ago

      The vast majority of game engines already have seamless cross platform support. Nothing need be done beyond selecting your target when compiling. Use Vulkan instead of dx11/12 and good to go

      • Chloë (she/her)@lemmy.blahaj.zone
        link
        fedilink
        arrow-up
        2
        arrow-down
        1
        ·
        20 hours ago

        Yeah you can turn off the AI it’s not mandatory, besides, it’s really fast, has built in support for LSP’s , custom themes which are easy to make, vim mode out of the box, extensions, and some GitHub functionalities.

        I was using Kate because electron is too much of a hog on my system and zed works insanely well (it’s slightly slower than Kate though but not very important)

        I wish you could turn off the automatic downloads on zed though (or have a prompt to confirm the download) but it’s really shaping up to be a great text editor.

        • ilinamorato@lemmy.world
          link
          fedilink
          arrow-up
          1
          ·
          edit-2
          16 hours ago

          I’m currently mid-migration from Windows to Linux, so I have to wait until the Windows release or until I finish migrating (I’m not really up for building a beta at this point), but I’m very excited.

        • ma1w4re@lemm.ee
          link
          fedilink
          arrow-up
          1
          arrow-down
          1
          ·
          edit-2
          19 hours ago

          Did Zed devs fix vim mode? In the early stages I tried it and lots of movements weren’t the same as in vim, I still remember trying to jump a few screen down and it just deleted a few lines instead. Also didn’t really like that you couldn’t controll the menu on the left using vim movements like you can with vimtree, really makes it unusable if you have to jump around between your mouse and keyboard. Gotta check it myself I guess, hopefully they made it better

          • pool_spray_098@lemmy.world
            link
            fedilink
            arrow-up
            2
            ·
            4 hours ago

            So you tried to move a few screens down and accidentally deleted a few lines?

            I don’t know what you’re talking about, to me it sounds like they’ve perfectly nailed the vim experience!

    • fxomt@lemm.ee
      link
      fedilink
      English
      arrow-up
      16
      arrow-down
      5
      ·
      edit-2
      21 hours ago

      vscode isn’t an IDE, but an actual IDE written in electron would be horrible.

      I don’t want to argue about this anymore. I admit i had a bad take, and this whole thread is just arguing about semantics at this point. Does it even really matter if vscode is an IDE or not? If it works, it works.

        • fxomt@lemm.ee
          link
          fedilink
          English
          arrow-up
          17
          arrow-down
          7
          ·
          edit-2
          23 hours ago

          IDEs come bundled with tooling, such as debuggers, intelligent code completion, and OOTB language support, and language servers.

          vscode out of the box doesn’t have any of these, you install them with plugins. jetbrains products, for example would be IDEs, but editors like vscode and neovim aren’t. Those are code editors.

          • magic_lobster_party@fedia.io
            link
            fedilink
            arrow-up
            9
            ·
            22 hours ago

            What’s different between Vscode and other editors like Vim is how easy it is to make it a fully fledged IDE. Usually a notification pops up about analyzers being available, and if you click accept it’s done. Just one click of a button.

            With Vim it’s not that easy. You need to install many separate plugins just to make it a fraction of an IDE.

            • fxomt@lemm.ee
              link
              fedilink
              English
              arrow-up
              1
              ·
              edit-2
              22 hours ago

              I agree. I was mainly thinking of neovim, but i guess vim works in this example, too.

              I was talking about the base editor itself, though. In the end it doesn’t even matter what we consider VSCode to be, i feel this thread has just devolved into arguing about semantics and bikeshedding, and there’s no correct solution.

              I think i’ll just be deleting my main comment, admit I had a bad take and move on. i’m tired of arguing about this.

            • fxomt@lemm.ee
              link
              fedilink
              English
              arrow-up
              3
              ·
              edit-2
              22 hours ago

              I don’t think it really matters, but the implication you can write a whole IDE in electron is just insane.

              It is pretty pedantic, i agree. I don’t want to start an argument about something as pointless as this, though.

              • LeFrog@discuss.tchncs.de
                link
                fedilink
                arrow-up
                2
                ·
                22 hours ago

                But aren’t the plugins also basically part of the electron app after installing? But I have no idea how electron, vscode and their plugins acrually work.

                • fxomt@lemm.ee
                  link
                  fedilink
                  English
                  arrow-up
                  3
                  ·
                  22 hours ago

                  Not really. there’s VSCode itself, and then there’s the extensions on top of it. But my main point was how vscode wasn’t designed to be an IDE, just a customizable code editor. Like neovim or emacs, you could customize it to the point of being similar to an IDE, but they’re still not considered IDEs.

          • onnekas@sopuli.xyz
            link
            fedilink
            arrow-up
            4
            arrow-down
            1
            ·
            edit-2
            21 hours ago

            You could call vscode a “DIY IDE Building Kit” because everybody is using it that way.

            After you put all the extensions together you basically got a fully featured “IDE” for most languages out there.

            Nobody I know uses vscode like a simple “code editor”.

            • fxomt@lemm.ee
              link
              fedilink
              English
              arrow-up
              3
              ·
              21 hours ago

              I agree, neither do i. I was talking about base vscode, but i don’t think it even matters anymore. There’s really no proper answer. Some people use it like a notepad, some people use it like a fully fledged IDE. I’m just tired of arguing over this, and i admit i had a bad take.

          • nogooduser@lemmy.world
            link
            fedilink
            English
            arrow-up
            3
            ·
            22 hours ago

            I think that whether it needs plugins or not to do the job isn’t really relevant.

            You can develop software in a large number of languages including writing the code (with intelligent code completion), building it, committing it to source control and running and debugging it.

            If it didn’t use plugins to do that then it’d huge and take ages to start up.

            • fxomt@lemm.ee
              link
              fedilink
              English
              arrow-up
              2
              ·
              21 hours ago

              I didn’t mean it in a bad way. I prefer how vscode does it. and i think you’re right.

      • masterspace@lemmy.ca
        link
        fedilink
        English
        arrow-up
        18
        arrow-down
        6
        ·
        23 hours ago

        It’s literally listed in stack overflow’s section on IDEs, and functions as a replacement for an IDE. Insisting that it’s not an IDE in this context isnt helping anyone communicate, it’s just being pedantic.

        • fxomt@lemm.ee
          link
          fedilink
          English
          arrow-up
          27
          ·
          edit-2
          22 hours ago

          They also list vim and notepad++ as IDEs, pretty sure they just meant code editors in general.

          Fucking NANO is on the list 😂

          • renzev@lemmy.world
            link
            fedilink
            arrow-up
            1
            ·
            5 hours ago

            With enough plugins vim can have almost all of the features of an ide. Not that I recommend using it like that tho.