• Eager Eagle@lemmy.world
      link
      fedilink
      English
      arrow-up
      7
      ·
      7 days ago

      yes, but when you make a port from one language to another, usually you want to rewrite it as a translation first, then refactor later with the features that language provides. A port that refactors everything in the first release is too risky.

      The fact the translation has unsafe blocks only demonstrates the Zig version is not really safe as per Rust standards.

      • tracyspcy@lemmy.ml
        link
        fedilink
        arrow-up
        7
        arrow-down
        3
        ·
        7 days ago

        my comment was just pointing out to unsafe rust blocks used in sloppy rewrite.

        • BB_C@programming.dev
          link
          fedilink
          arrow-up
          5
          arrow-down
          8
          ·
          7 days ago

          You clearly don’t even know what unsafe in rust means. And it’s not something you can avoid when FFI is involved, slopping involved or otherwise.

            • BB_C@programming.dev
              link
              fedilink
              arrow-up
              4
              arrow-down
              7
              ·
              7 days ago

              You can interface with a C++ JS engine without unsafe (which is equivalent to just using C btw), if you just really put a real effort into it.

              😇

              I do love me some internet gantry commentary. Especially when it’s super confident and acting knowledgable, with multiple layers of genius on display.