does anyone on a windows machine want to pair on trying https://github.com/roc-lang/roc/issues/3840 sometime?
I have Windows 10 installed on a gaming computer that I don't use for coding - do you want to puppeteer me?
I could be available some day this week around sunrise Amsterdam time
apparently that is 6:30 here, which ... that's too early for me
I could look at it with you if you like. Closer timezone too!
Curious about the subject too, would like to understand windows executables a bit more
0x5459 has marked this topic as resolved.
0x5459 has marked this topic as unresolved.
this worked out https://github.com/roc-lang/roc/pull/3893. however we found that getting roc to compile on windows is still quite a process (and involves manually deleting/commenting a bunch of stuff). We're making progress though!
I just installed windows 11 on the new machine, so lmk if you'd like any non-wine testing!
Yes, https://github.com/roc-lang/roc/pull/3894 would make the build process much nicer if it works
I have time now before work, I'll try that out.
that worked and is a good step forward. next, let's try and get cli to compile. If I remember correctly, it needs two things: define roc_alloc and friends in the cli crate, and disable roc_repl_expect because it uses unix-specific libc functions
https://github.com/roc-lang/roc/pull/3901/ tries to do that
I think you still need to disable the docs-related crates from the workspace (see https://github.com/roc-lang/roc/issues/3805)
the fix there may be very similar though: just define roc_alloc and friends in the docs crate and it should work
Ok next chance I get, I'll give that a go
cargo build
should now just work on windows, and even cargo run examples/platform-switching/zig-platform/rocLovesZig.roc
now, we need to fix all the problems. So it's very valuable for someone to just try it out and making notes of what fails and how.
I know there are some llvm tests that fail in llvm generation; I can try to tackle that just from linux
but I also observe some of our cli tests with zig platforms failing (e.g. examples/benchmarks/NQueens.roc) and it's unclear why from wine, so someone running that on windows would probably see more error info (or it just works there)
until it is merged, you need the changes to the host.zig from here https://github.com/roc-lang/roc/pull/3888/files to run the benchmarks on windows
Last updated: Jul 06 2025 at 12:14 UTC