• zr0@lemmy.dbzer0.com
    link
    fedilink
    English
    arrow-up
    8
    arrow-down
    2
    ·
    5 days ago

    I get that it sucks. Are there any alternatives, where I have one codebase for all platforms?

          • zr0@lemmy.dbzer0.com
            link
            fedilink
            English
            arrow-up
            3
            ·
            4 days ago

            I was joking. Qt has its place and can be useful. But I believe the days of non-web based, rich clients is over. Because Qt is not really “platform independent” anymore. When Qt was invented, only GNU/Linux, OSX and Windows existed. Now we have mobile phones, tablets, ultrabooks/chromebooks, much more powerful browsers, smart watches. That’s why Qt is not something I would prefer, as I need my apps to run literally everywhere

    • macniel@feddit.org
      link
      fedilink
      arrow-up
      4
      arrow-down
      3
      ·
      5 days ago

      Have you heard of Java? Or any other language that abstracts away the GUI gluecode. Or don’t just even go electron and provide a web app instead.

        • macniel@feddit.org
          link
          fedilink
          arrow-up
          4
          arrow-down
          1
          ·
          4 days ago

          Mhm… Install 300mb once to run any Java application or 300mb for each and every electron app.

          Its an easy choice.

          • dreamkeeper@literature.cafe
            link
            fedilink
            arrow-up
            1
            ·
            4 hours ago

            As if the Java app won’t be even uglier than electron and still weigh in at 300 mb for each. Not to mention introducing security issues on your machine with the jre

            There’s a reason people stopped making consumer apps in Java

            • macniel@feddit.org
              link
              fedilink
              arrow-up
              1
              ·
              4 hours ago

              Uglier? Debatable as there are different UI Toolkits that can actually look beautiful and you don’t have to reimplement controls like you would in an electron app.

              And you certainly wouldn’t introduce new security issues with different and outdated v8 engines that are bundled with your electron app, no sir.

        • lobut@lemmy.ca
          link
          fedilink
          arrow-up
          3
          ·
          5 days ago

          I heard Java can compile down to native binaries now. I interviewed someone that told me, I haven’t written a line of Java in 15 years.

          • a_random_fox@discuss.tchncs.de
            link
            fedilink
            English
            arrow-up
            2
            ·
            3 days ago

            It is not quite a native binary, but the effect of not having to install java to run it is the same. Using jlink you can assemble a runtime image containing the java bytecode for the application and a custom runtime enviroment containing the parts of the the jre needed to run that program.

            • lobut@lemmy.ca
              link
              fedilink
              arrow-up
              1
              ·
              3 days ago

              Yeah that makes sense given the language. So it’ll be a fatter binary than typical for what’s needed.