Stream: contributing

Topic: Memexec on windows


view this post on Zulip Folkert de Vries (Aug 22 2022 at 18:55):

does anyone on a windows machine want to pair on trying https://github.com/roc-lang/roc/issues/3840 sometime?

view this post on Zulip jan kili (Aug 22 2022 at 19:28):

I have Windows 10 installed on a gaming computer that I don't use for coding - do you want to puppeteer me?

view this post on Zulip jan kili (Aug 22 2022 at 19:28):

I could be available some day this week around sunrise Amsterdam time

view this post on Zulip Folkert de Vries (Aug 22 2022 at 19:36):

apparently that is 6:30 here, which ... that's too early for me

view this post on Zulip Brian Carroll (Aug 22 2022 at 19:40):

I could look at it with you if you like. Closer timezone too!

view this post on Zulip Brian Carroll (Aug 22 2022 at 19:41):

Curious about the subject too, would like to understand windows executables a bit more

view this post on Zulip Notification Bot (Aug 23 2022 at 02:18):

0x5459 has marked this topic as resolved.

view this post on Zulip Notification Bot (Aug 23 2022 at 02:19):

0x5459 has marked this topic as unresolved.

view this post on Zulip Folkert de Vries (Aug 24 2022 at 20:45):

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!

view this post on Zulip Richard Feldman (Aug 25 2022 at 00:30):

I just installed windows 11 on the new machine, so lmk if you'd like any non-wine testing!

view this post on Zulip Folkert de Vries (Aug 25 2022 at 07:02):

Yes, https://github.com/roc-lang/roc/pull/3894 would make the build process much nicer if it works

view this post on Zulip Brian Carroll (Aug 25 2022 at 07:09):

I have time now before work, I'll try that out.

view this post on Zulip Folkert de Vries (Aug 25 2022 at 19:56):

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

view this post on Zulip Folkert de Vries (Aug 25 2022 at 19:56):

https://github.com/roc-lang/roc/pull/3901/ tries to do that

view this post on Zulip Folkert de Vries (Aug 25 2022 at 19:57):

I think you still need to disable the docs-related crates from the workspace (see https://github.com/roc-lang/roc/issues/3805)

view this post on Zulip Folkert de Vries (Aug 25 2022 at 19:57):

the fix there may be very similar though: just define roc_alloc and friends in the docs crate and it should work

view this post on Zulip Brian Carroll (Aug 25 2022 at 21:14):

Ok next chance I get, I'll give that a go

view this post on Zulip Folkert de Vries (Aug 27 2022 at 10:02):

cargo build should now just work on windows, and even cargo run examples/platform-switching/zig-platform/rocLovesZig.roc

view this post on Zulip Folkert de Vries (Aug 27 2022 at 10:03):

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.

view this post on Zulip Folkert de Vries (Aug 27 2022 at 10:04):

I know there are some llvm tests that fail in llvm generation; I can try to tackle that just from linux

view this post on Zulip Folkert de Vries (Aug 27 2022 at 10:04):

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)

view this post on Zulip Folkert de Vries (Aug 27 2022 at 10:06):

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