Absolutely! Using WSL on Windows is an excellent choice, especially for someone in your situation who needs to balance programming needs with gaming.
WSL (Windows Subsystem for Linux) offers a fantastic compromise that gives you the best of both worlds:
WSL Advantages for Programming
- Full Linux Environment: You get a complete Linux terminal and ecosystem without dual-booting or virtualization overhead
- Great for Python: Python typically works flawlessly in WSL, with all the same libraries and tools you'd use on native Linux
- Solid for C++: The GNU C++ compiler (g++) and build tools work just as they would on Linux
- Seamless Integration: WSL2 integrates well with Windows - you can access Windows files from Linux and vice versa
- VS Code Integration: Microsoft's VS Code has excellent WSL support with a dedicated "Remote - WSL" extension
- Performance: WSL2 has near-native Linux performance for most operations
Key Things to Know
-
Choose WSL2 over WSL1: WSL2 uses a lightweight VM and has much better performance and compatibility than the original WSL1
-
Distro Choice: Ubuntu is the most popular and well-supported distro for WSL, but you can also use Debian, Fedora, and others
-
GPU Support: Recent Windows versions have added WSL GPU support, which is great for machine learning with Python
-
Terminal Options: Consider using Windows Terminal instead of the default console - it's much better for WSL
-
File System Performance:
- Fast: Working with files inside the Linux filesystem
- Slower: Working with Windows files through the
/mnt/c/ mount point
For Python & C++ Development
For your specific interest in Python and C++:
- Python works exceptionally well in WSL
- C++ development with g++/clang and make/cmake is smooth
- You can use VS Code with the WSL extension to edit code in Windows while building/running in Linux
- Debuggers like gdb work as expected
Simple Setup
To get started:
- Enable WSL2 in Windows features
- Install Ubuntu (or your preferred distro) from the Microsoft Store
- Set up your development environment in WSL
Bottom Line
There's absolutely no need to sacrifice your gaming setup to get a good Linux development environment. WSL2 is a professional-grade solution used by many developers specifically because it lets them keep Windows for gaming while having Linux for development.
For Python and C++ specifically, you won't miss out on anything important by using WSL instead of a native Linux installation.