• What she’s accomplished is, to me, astonishing and an impressive intellectual feat. I believe there’s a pretty big caveat that it only works on x86_64, i.e. not ARM. The latter being fairly popular and not uncommon.

    It wouldn’t damage the impressiveness of her achievement to say “most OSes on x86.”

    • FooBarrington@lemmy.world
      link
      fedilink
      arrow-up
      0
      ·
      5 months ago

      No, it also works for ARM - you can even build a fat binary with an ARM -> x86 translation layer, i.e. one binary for both architectures!

      • Huh. In was just playing around with some samples from her page, and can’t get them to run on either AMD64 or ARM. What’s worst is that on my AMD machine I have Wine installed, and trying to run it fires up Wine (where it does eventually execute). You’re supposed to also be able to sh it, and if I do that they just fail. On an ARM, they just fail. I was unable to get any of the samples from he page to run.

        I haven’t tried compiling my own program, but if the download samples don’t run (for me), it doesn’t give me confidence in the solution.

    • I Cast Fist@programming.devOP
      link
      fedilink
      arrow-up
      1
      ·
      4 months ago

      That nexe looks nothing like cosmopolitan. Nexe compiles a node.js into a single exe for Windows and, from the readme, can create native binaries for other distributions (Linux, Mac), something that isn’t new to Nexe, you could do that with FreePascal way before Nexe. If you avoided OS specific calls, you could pull that since the early 90s with C, too.

      Compiling the same codebase for N different platforms, generating N different native binaries, isn’t the same as having one single executable file that runs out of the box on significantly different OSs. Put it another way, she made a java that works without needing a JRE or JDK installed.

      • onlinepersona@programming.dev
        link
        fedilink
        arrow-up
        1
        arrow-down
        1
        ·
        edit-2
        4 months ago

        🤔 I swear I’ve seen this multiplatform single executable before. Maybe nexe isn’t it, but as soon as she whipped out the hexcode and talking about binary headers, it felt more than a dejavu. Someone did it years ago, put it in github, and it was called an abomination.

        It’s very similar in vein to this script that can be executed by bash and powershell.

        Anti Commercial-AI license