Hacker News new | ask | show | jobs
by denysvitali 1885 days ago
I was under the impression that Go cross-compilation between architectures and operating systems wasn't a problem already...

Am I missing something? What does this have to do with WSL 2?

1 comments

You can compile for windows, on windows, without the pain of setting up a compilation environment on windows.
That's awesome, although it's not as great as it might appear at first glance. I once took on a job to write a .bat script to compile a GO app any Windows machine without any Go environment installed. The script ended up about 20 lines long, and could compile the app on a fresh Windows install on any machine. It just took all day to write when I thought it would be done in 30 minutes.

Working with GO on Windows can be a pain, but my takeaway from this ordeal was that it wasn't really the fault of MS or Google, but due to most Windows users actually having no idea how Windows works, even software developers who have been using the OS for 20 years.

The NT kernel/hypervisor is a marvel of software engineering but unfortunately it is not as easy to teach in OS classes compared to Unix/Linux family systems.