I wonder can I compile Julia code into a Windows DLL? For instance, with AVX2 and DirectCompute included?

Currently writing C++/17 and HLSL. Would like to evaluate something higher-level. However, I think it’s unreliable in the long run to redistribute and support complicated packages like Python runtime or LLVM. Users mess with environment variables, update Windows, run antimalware, etc. Process startup time also matters, I don’t want to wait 40 seconds for the first output.

Not sure about your exact use case and this is not part of Julia which I have ever used myself but the answer might be here:

https://github.com/JuliaLang/PackageCompiler.jl

There is a presentation from a recent JuliaCon by Kristoffer Carlson on the topic too, I believe.

https://m.youtube.com/watch?v=d7avhSuK2NA