• Zeerooth@lemmy.antemeridiem.xyz
    link
    fedilink
    arrow-up
    0
    ·
    1 year ago

    That sucks, but you can always compile rust code to wasm which loads in the web browser (well almost always, not all libraries support it). And there is also yew.rs which is kind of like React but in rust! I’m not a web developer myself so I only played with it for fun but it looked pretty promising. You should try these out :)

    • Lanthanae@lemmy.blahaj.zone
      link
      fedilink
      arrow-up
      0
      ·
      1 year ago

      The world of front-end frameworks/libraries not built in JS/TS is so foreign to me but I’m interested in checking it out. Thanks for the links!

      • Zeerooth@lemmy.antemeridiem.xyz
        link
        fedilink
        arrow-up
        0
        ·
        1 year ago

        You’re welcome! Yeah, I don’t think that JS and its frameworks are going anywhere anytime soon as the whole ecosystem is just so massive, but it’s cool to try something new from time to time, isn’t it? wasm is especially cool because it’s much more performant that JS, so I’ve seen it’s already being used quite extensively with games and 3d apps for the web but that’s mostly it for now, unfortunately 😅

        • Lanthanae@lemmy.blahaj.zone
          link
          fedilink
          arrow-up
          1
          ·
          1 year ago

          Personally, I think non-JS web technologies will become a lot more prevalent once web-gpu takes off…either that or someone will just make UnrealEngine.js as if the JavaScript ecosystem isn’t already enough of a Frankenstein’s Monster.

          • Zeerooth@lemmy.antemeridiem.xyz
            link
            fedilink
            arrow-up
            2
            ·
            1 year ago

            That’s very much possible but also not really idk, webGPU seems like a new generation of webGL and while some engines supported exporting to it, such as Unity, others didn’t and idk if that’ll change. Because in the end, as far as I understand, webGPU is only a specification for interacting with GPU and displaying graphics, shaders and stuff like that, while all the backend code with game scripts, logic, AI et all has to still be ported to JS, which is ehhhhh not that great. And wasm can interop with webGPU anyway

            • Lanthanae@lemmy.blahaj.zone
              link
              fedilink
              arrow-up
              1
              ·
              1 year ago

              Yeah I meant more that the ability to have gpu-intensive content on the web will spur development of non-JS web tech to enable it to be leveraged more effectively, not that it would instantly allow thinks like Unity to just be moved over to the web as-is.

              I definitely wasn’t clear in my wording lol.