• boonhet@sopuli.xyz
    link
    fedilink
    arrow-up
    8
    ·
    edit-2
    24 hours ago

    At this rate I suspect the best solution is to cram everything but the UI into a cross-platform library (written in, say, Rust) and have the UI code platform-specific, use your cross-platform library using FFI. If you’re big enough to do that, at least.

    • footfaults@lemmygrad.ml
      link
      fedilink
      English
      arrow-up
      7
      ·
      23 hours ago

      but the UI into a cross-platform library (written in, say, Rust)

      Many have tried, none have succeeded. You can go allllll the way back to Java’s SWING, as well as Qt. This isn’t something that “just do it in Rust” is going to succeed at.

      • boonhet@sopuli.xyz
        link
        fedilink
        arrow-up
        3
        ·
        22 hours ago

        Are we gui yet?

        I haven’t really kept up with Rust UI frameworks (or Rust at all lately, nearly nobody wants to pay me to write Rust, they keep paying me to write everything else). Iced was the most well-known framework last I tried any UI work, with Tauri being a promising alternative (that still requires web tech unfortunately). This was just me playing around on the desktop.

        Is Dioxus easy to get started with? I have like no mobile UI experience, and pretty much no UI experience in general. I prefer doing backend development. Buuuut there’s an app I want to build and I really want it to be available for both iOS and Android… And while iOS development doesn’t seem too horrible for me, Android has always been weird to me

        • SorteKanin@feddit.dk
          link
          fedilink
          arrow-up
          1
          ·
          edit-2
          13 hours ago

          Is Dioxus easy to get started with?

          I haven’t tried it myself but I’ve read the tutorials and it looks very React-inspired. It looks quite easy to pick up. It is still based on HTML and CSS but you can use one code base for all platforms.