• MoogleMaestro@lemmy.zip
    link
    fedilink
    English
    arrow-up
    291
    ·
    4 months ago

    Electron is the only cross platform gui toolkit…

    If you ignore QT, GTK and everything else.

    I’m so glad that Microsoft makes an awesome cross platfor— wait, no, but they contribute code to— hmmm … Hey, what does Microsoft do to make apps more portable again?

    • ZILtoid1991@lemmy.world
      link
      fedilink
      arrow-up
      139
      arrow-down
      1
      ·
      edit-2
      4 months ago

      The real reasons often are:

      • They want be able to hire much cheaper webdevs instead of software devs.
      • Electron has a lot of built-in data collecting metrics, which they urgently need for creating a real-life KITT.
      • Easy live embedding of content. Sure you can add your own solution, in fact I created ETML as a solution for this problem for my engine, all without any support for nasty scripting languages or convoluted stylesheets (style-inheritance in CSS turned me off from webdev even more than JS did). At best, it can be used for things like embedding videos on Discord, because no one else thought some universal approach, let alone one that disallows proprietary players. At worst, it’s being used for ads.

      Also a lot of Windows-only apps are Electron apps, only because the manufacturer wants to go “fuck you”, even putting protections into the code just in case you wanted to run it on Linux.

      EDIT: Forgot the “live embeds” reason.

    • lime!@feddit.nu
      link
      fedilink
      arrow-up
      64
      ·
      4 months ago

      one of the funniest (and sadly accurate) things i’ve heard said about linux backwards-compatibility is that its most stable API is Win32. you can run really old windows software on wine because they support stuff even windows doesn’t anymore.

      of course this is because the expectation is that you can just recompile old software to work on new systems, which is not really a thing on window.s

        • Archer@lemmy.world
          link
          fedilink
          arrow-up
          3
          ·
          4 months ago

          It’s very amusing to imagine devs carefully watching for an EOL/EOS date and starting to build software only after

    • Valmond@lemmy.world
      link
      fedilink
      arrow-up
      31
      ·
      4 months ago

      It’s so portable! With maximal efforts we support both windows 7, windows 8.1 (but not 8.0), windiws 10 and soon Windows 11 !!!

      /s

    • DacoTaco@lemmy.world
      link
      fedilink
      arrow-up
      6
      ·
      edit-2
      4 months ago

      .net
      .net cli apps are cross platform and can be portable :p
      Gui in .net isnt fully cross platform ( maui is everything except linux ) but frameworks like avalonia ( .net ) and imgui fix all that :')

        • DacoTaco@lemmy.world
          link
          fedilink
          arrow-up
          1
          ·
          4 months ago

          Winforms of all things haha. Eeuw xD
          But thats flipping awesome and i love it! I know xamarin was wpf being cross platform with mono, but thats a dead horse thanks to microsoft haha

          • mittorn@masturbated.one
            link
            fedilink
            arrow-up
            2
            ·
            4 months ago

            @DacoTaco Yes, it’s Microsoft decided to kill classic win32 widgets and any XAML support in Mono, forcing new WinRT platform and not providing any GUI support in netcore. It’s sad that nobody made some crossplatform WPF implementation for modern dotnet, Maui is not incompatible with existing source code, IIRC

            • hdsrob@lemmy.world
              link
              fedilink
              English
              arrow-up
              2
              ·
              4 months ago

              It’s sad that nobody made some crossplatform WPF implementation for modern dotnet

              That’s basically Avalonia UI.

              I believe Uno Platform is similar, but less of a WPF variant, and closer to Xamarin or MAUI in the style of Xaml that they use.

              • mittorn@masturbated.one
                link
                fedilink
                arrow-up
                1
                ·
                4 months ago

                @hdsrob
                >That’s basically Avalonia UI.
                no, avalonia cannot help you run existing applications. Also. Avalonia is a crap, taking minutes to parse xml crap on poor hardware
                Yes, there are many implementaion of WPF-like UI, but no implementation of existing Windows UI.
                mono’s winforms allows you run existing winforms apps without single line change or even without recompiling (just replace related System.Windows.* assembies)

            • DacoTaco@lemmy.world
              link
              fedilink
              arrow-up
              1
              ·
              4 months ago

              Avalon is actually xaml and cross platform. Personally id rather have a razor format of gui code, but xaml is a good second. Its basically what maui was suppose to be

        • DacoTaco@lemmy.world
          link
          fedilink
          arrow-up
          1
          ·
          4 months ago

          Nope. The ui framework doesnt support linux at all. None of its cross platform claases and enums have linux. Its stupid because .net and aspcore just work on linux…

    • teolan@lemmy.world
      link
      fedilink
      arrow-up
      4
      arrow-down
      19
      ·
      4 months ago

      GTK is not accessible anywhere other than Linux and is therefore not a serious option outside of Linux.