Unofficial Hacker News companion — get notified on comment replies, and more.

So, I rewrote my game in C3 (opens external site)

159 points by lerno 5 days ago | www.madrigalgames.com | 46 comments on HN | Vote on HN (opens Hacker News) |

View full thread · View on Hacker News

Comment thread (5)

  1. I work on the Mach[0] game engine in Zig, and I would be curious to hear if the author tried running the Zig Windows executable build under WSL2 or not, targeting Windows via cross-compilation?

    In my experience Windows filesystem is very very slow, and cross-compiling from WSL (which conveniently launches native Windows exe files outside of the VM when invoked in WSL2!) has been the better developer experience for me, i.e. via `zig build run -Dtarget=x86_64-windows` to build with a Linux compiler version, cross-compile for windows, and execute on the host Windows OS.

    Either way, nice article - I hope you continue writing!

    [0] https://machengine.org

    Replies (3)
    1. For my game compiling native linux build and cross compiling windows build takes about the same wall time when forced to use LLVM.
      Replies (1)
      1. The question is: if you compile your Windows executable from Linux using cross-compilation, is it faster than compiling natively under Windows? In my experience the answer is yes.
    2. There are also some projects to speed up WSL2 filesystem access such as https://github.com/wslkit/wsldrive