• Pechente@feddit.org
    link
    fedilink
    English
    arrow-up
    105
    arrow-down
    2
    ·
    edit-2
    1 day 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
        6
        ·
        5 hours 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
      37
      ·
      1 day 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

      • Pechente@feddit.org
        link
        fedilink
        English
        arrow-up
        20
        ·
        1 day 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?

  • mindbleach@sh.itjust.works
    link
    fedilink
    arrow-up
    21
    ·
    21 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!

  • Lucy :3@feddit.org
    link
    fedilink
    arrow-up
    15
    arrow-down
    1
    ·
    1 day 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
    11
    arrow-down
    3
    ·
    1 day 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
        18 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
          ·
          9 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
          ·
          18 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
            6 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.

    • fxomt@lemm.ee
      link
      fedilink
      English
      arrow-up
      16
      arrow-down
      4
      ·
      edit-2
      1 day 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.

      • masterspace@lemmy.ca
        link
        fedilink
        English
        arrow-up
        18
        arrow-down
        4
        ·
        1 day 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
          24
          ·
          edit-2
          1 day ago

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

          Fucking NANO is on the list 😂

        • fxomt@lemm.ee
          link
          fedilink
          English
          arrow-up
          15
          arrow-down
          6
          ·
          edit-2
          1 day 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
            ·
            1 day 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
              2
              ·
              edit-2
              1 day 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
              1 day 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
                ·
                1 day 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
                  ·
                  1 day 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
            5
            arrow-down
            1
            ·
            edit-2
            1 day 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
              2
              ·
              1 day 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.