-
-
Notifications
You must be signed in to change notification settings - Fork 163
Oil Windows Port
andychu edited this page Jun 23, 2022
·
1 revision
Oil runs on WSL because the Windows kernel emulates the Linux kernel.
But I chatted with Phil Eaton on Twitter about a native Windows port for Oil (i.e. using the Win32 API).
I think it would be cool. I don't personally need it, but it might help get other people on board with the project.
And I think Oil is very well factored for this. Almost all the I/O happens in core/process.py
and core/executor.py
, which are translated to C++.
https://twitter.com/oilshellblog/status/1507009555980435466
- Anonymous Pipe Operations: https://docs.microsoft.com/en-us/windows/win32/ipc/anonymous-pipe-operations
- https://cygwin.com/cygwin-ug-net/highlights.html
-
https://news.ycombinator.com/item?id=11391797
- Yes. That's one thing we spent considerable engineering effort on in this first version of the Windows Subsystem for Linux: We implement fork in the Windows kernel, along with the other POSIX and Linux syscalls. This allows us to build a very efficient fork() and expose it to the GNU/Ubuntu user-mode apps via the fork(syscall). We'll be publishing more details on this very soon.
- Adventures in Cygwin’s fork performance
- http://gnuwin32.sourceforge.net/packages.html -- native Win32 ports
Related: