5 ms·
I wonder if they have plans to add other emulation features, most importantly the ability to passthrough USB devices (or even graphic cards?). I don't need or
by revelation 10y ago
I wonder if they have plans to add other emulation features, most importantly the ability to passthrough USB devices (or even graphic cards?).
I don't need or want the Linux graphical interface of my VM, it's pretty much redundant, but I do need to make devices available to the Linux software. Otherwise it's a bit like emulating a microcontroller - sure, Turing says the thing can compute everything, but in a very practical sense it can do absolutely nothing without it's outside inputs and periphery. I need the damn side-effects!
- hermitdev 10y agoThey did recently add support for standard serial devices[1]. I'm not sure if this support extends to USB or what any such timeline looks like. [1] https://blogs.msdn.microsoft.com/wsl/2017/04/14/serial-support-on-the-windows-subsystem-for-linux/ https://blogs.msdn.microsoft.com/wsl/2017/04/14/serial-suppo...
- revelation 10y agoIt does seem to work with USB serial devices, but only because those drivers on windows in turn emulate a serial port. So we have the USB driver pretending to be a serial port to Windows pretending to be a TTY to the Linux subsystem. It's a bit silly, but then I imagine TTY is a whole lot easier to emulate (even with all the cruft on that) than a USB chipset.
- hermitdev 10y agoTangential, but there was a recent HN article (I think) (that for the life of me I cannot find a link to) that referenced a Microsoft DSL for describing finite state machines that was principally developed to implement MS's USB driver. Closest link I could find (which is not the correct one) is: https://www.microsoft.com/en-us/research/project/model-based-testing-with-specexplorer/ https://www.microsoft.com/en-us/research/project/model-based...
- cesarb 10y agoPerhaps it was this one from 13 days ago, about Prolog and Windows NT network configuration? https://news.ycombinator.com/item?id=14046420 https://news.ycombinator.com/item?id=14046420
- hermitdev 10y agoNo, that wasn't it.
- comfydragon 10y agoP? https://news.ycombinator.com/item?id=12673739 https://news.ycombinator.com/item?id=12673739 (Only took me about twenty minutes of assorted searches to find it too...)
- ajross 10y agoSeems like you might be better served with a linux desktop and windows in a VM then. The use case for WSL right now is someone like a web developer. They can develop and debug node apps locally in their native environment.
- revelation 10y agoThat only works because they provide emulation for AF_INET, AF_UNIX and AF_NETLINK sockets. It's not an automatic freebie.
- ajross 10y agoI understand. Nonetheless they did to the work to enable straightforward client networking (which works because Windows' own networking layer is basically Berkeley sockets under the hood). Writing an emulation of the Linux USB sysfs and device node API on top of Windows' very different USB driver layer is a rather bigger task. I'm sure they'll get to it eventually, but it's not something you can demand as an "obvious" feature.
- josteink 10y ago> That only works because they provide emulation for AF_INET, AF_UNIX and AF_NETLINK sockets. It's not an automatic freebie. To be pedantic, Microsoft is actually emulating the whole lot. You're not running a Linux-kernel on your Windows-machine.
- gravelc 10y agoWorks great for bioinformatics too. I've exited the Apple world (high prices etc.), and don't miss much now. No longer have to modify Powershell to make it more Unix-like. Jupyter notebook works fine, so I'm happy. No more bother with dual booting either; Ubuntu is gone as well.
- Stubb 10y agoIt's funny how Windows 10 is rapidly becoming a better Unix than MacOS since everything that matters runs Linux.