• Re: PSA: How to add WSL grep to the Windwos command-line PATH

    From Lawrence D?Oliveiro@3:633/10 to All on Mon Aug 31 22:28:32 2026
    On Mon, 31 Aug 2026 09:34:18 -0600, Maria Sophia wrote:

    WSL 1 used a translation layer. It intercepted Linux system calls
    and translated them on-the-fly into Windows NT kernel system calls.

    When Windows NT was first being developed, it was supposed to have the
    concept of ?personalities?, in the form of an extra plug-in layer on
    top of the core kernel.

    The Win32 API itself was implemented as one of these ?personalities?.
    Also a company called Softway Systems were granted access to the
    documentation to how to create a new ?personality?, which they used to
    create a fairly-functional Unix-compatibility layer (better than the
    piece of crap that was the POSIX-compliance layer that Microsoft
    itself offered) called ?Interix?
    <https://en.wikipedia.org/wiki/Interix>.

    Microsoft later restricted access to this documentation for
    implementing ?personalities?, and also acquired Softway/Interix, which
    had the effect of ensuring that knowledge of how to do such things did
    not spread any further outside the company.

    Anyway, you?d think they would use this same ?personality?
    architecture to implement WSL1. But apparently not. It never really
    worked well, which is why it was abandoned in favour of a
    full-function Linux kernel in WSL2 and later.

    Oh, and think of going the other way, implementing a Windows
    ?personality? on top of Linux: it exists in the form of WINE, and is
    working well enough that it is actually stealing market share from
    Windows in the gaming market.

    --- PyGate Linux v1.5.19
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From Lawrence D?Oliveiro@3:633/10 to All on Tue Sep 1 07:31:36 2026
    On Mon, 31 Aug 2026 21:33:39 -0600, Maria Sophia wrote:

    Lawrence D˜Oliveiro wrote:

    Oh, and think of going the other way, implementing a Windows
    ?personality? on top of Linux: it exists in the form of WINE, and
    is working well enough that it is actually stealing market share
    from Windows in the gaming market.

    Ah, WINE. You bring back bad memories, given I gave up on WINE long
    ago ...

    Valve hasn?t. It?s been including it with the well-regarded Steam Deck
    handheld gaming PC for some years now. And some vendors of
    Windows-based handhelds are starting to offer it as an alternative OS
    as well. It?s that good -- not some fiddly experimental kludge any
    more, but robust enough to support production code in the hands of
    nontechnical users.

    --- PyGate Linux v1.5.19
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From Arno Welzel@3:633/10 to All on Wed Sep 2 17:41:59 2026
    Maria Sophia, 2026-08-31 17:34:

    Frank Slootweg wrote:
    Also note that this article is not about replacing Windows as a
    development platform, but about *adding* a Linux/Unix development
    environment to it.

    So as we've been saying all along: Linux cannot replace Windows, nor
    vice versa.

    I agree with both Lawrence & Frank in interpretation of this article
    <https://www.infoworld.com/article/4196853/how-to-set-up-windows-for-software-development.html>

    And, like Frank, I note some sentences in particular such as
    "Windows Subsystem for Linux (WSL) lets you work seamlessly
    with Linux on Windows without the clunk and overhead of a VM."

    When I saw that sentence, I checked the date of the article, which
    surprised me was recent because it was my understanding WSL2 is inside a VM while WSL1 was not inside a VM (the core difference being native vs non-native Linux commands).

    WSL2 *is* a VM provided by the VM subsystem of Windwos which also
    provides Hyper-V and was used for the Android Subsystem which got
    removed again.

    The article writer just confused "no need to start VirtualBox or VMware"
    with "no VM" - but of course Linux running in WSL is a VM as well.


    --
    Arno Welzel
    https://arnowelzel.de

    --- PyGate Linux v1.5.19
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From Arno Welzel@3:633/10 to All on Wed Sep 2 17:44:01 2026
    Maria Sophia, 2026-09-01 05:33:

    Lawrence D˜Oliveiro wrote:
    Oh, and think of going the other way, implementing a Windows
    ?personality­ on top of Linux: it exists in the form of WINE, and is
    working well enough that it is actually stealing market share from
    Windows in the gaming market.

    Ah, WINE. You bring back bad memories, given I gave up on WINE long ago,
    but that's kind of the point, which is it has never been easy to add
    another operating system to any operating system, although we all tried.

    WINE works very well here - *today*. You can not compare what you know
    from 5 oder 10 years in the past with the current version.

    Steam for Linux runs completely on WINE and the games often run *better*
    than in Windows. I also have a number applications in WINE which work
    just fine.


    --
    Arno Welzel
    https://arnowelzel.de

    --- PyGate Linux v1.5.19
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From Paul@3:633/10 to All on Wed Sep 2 14:50:19 2026
    On Wed, 9/2/2026 11:41 AM, Arno Welzel wrote:
    Maria Sophia, 2026-08-31 17:34:

    Frank Slootweg wrote:
    Also note that this article is not about replacing Windows as a
    development platform, but about *adding* a Linux/Unix development
    environment to it.

    So as we've been saying all along: Linux cannot replace Windows, nor
    vice versa.

    I agree with both Lawrence & Frank in interpretation of this article
    <https://www.infoworld.com/article/4196853/how-to-set-up-windows-for-software-development.html>

    And, like Frank, I note some sentences in particular such as
    "Windows Subsystem for Linux (WSL) lets you work seamlessly
    with Linux on Windows without the clunk and overhead of a VM."

    When I saw that sentence, I checked the date of the article, which
    surprised me was recent because it was my understanding WSL2 is inside a VM >> while WSL1 was not inside a VM (the core difference being native vs
    non-native Linux commands).

    WSL2 *is* a VM provided by the VM subsystem of Windwos which also
    provides Hyper-V and was used for the Android Subsystem which got
    removed again.

    The article writer just confused "no need to start VirtualBox or VMware"
    with "no VM" - but of course Linux running in WSL is a VM as well.



    The WSL2 is rootless when it comes to displaying things on screen. There
    are more VHDX than this, but this is the one that is easily listed. The
    Windows 7 "WinXP Mode" was also rootless and used Terminal Services for graphics injection, just like WSL2 does.

    ext4.vhdx 10,316,939,264 bytes

    When you use WSL2 and run "firefox", just a single Firefox window appears on the Windows desktop.

    The VirtualBox and VMWare are rooted and display a rectangle which
    represents the entire guest OS.

    That's a difference in the display part of the hosting software.

    Paul

    --- PyGate Linux v1.5.19
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From Dan Purgert@3:633/10 to All on Wed Sep 2 19:51:16 2026
    On 2026-09-02, Arno Welzel wrote:
    Maria Sophia, 2026-08-31 17:34:

    Frank Slootweg wrote:
    Also note that this article is not about replacing Windows as a
    development platform, but about *adding* a Linux/Unix development
    environment to it.

    So as we've been saying all along: Linux cannot replace Windows, nor
    vice versa.

    I agree with both Lawrence & Frank in interpretation of this article
    <https://www.infoworld.com/article/4196853/how-to-set-up-windows-for-software-development.html>

    And, like Frank, I note some sentences in particular such as
    "Windows Subsystem for Linux (WSL) lets you work seamlessly
    with Linux on Windows without the clunk and overhead of a VM."

    When I saw that sentence, I checked the date of the article, which
    surprised me was recent because it was my understanding WSL2 is inside a VM >> while WSL1 was not inside a VM (the core difference being native vs
    non-native Linux commands).

    WSL2 *is* a VM provided by the VM subsystem of Windwos which also
    provides Hyper-V and was used for the Android Subsystem which got
    removed again.

    The article writer just confused "no need to start VirtualBox or VMware"
    with "no VM" - but of course Linux running in WSL is a VM as well.

    This reads a lot like those threads that arlow guy used to post... it's
    not the same OP is it?


    --- PyGate Linux v1.5.19
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From Arno Welzel@3:633/10 to All on Wed Sep 2 22:00:03 2026
    Paul, 2026-09-02 20:50:

    [...]> When you use WSL2 and run "firefox", just a single Firefox window appears on
    the Windows desktop.

    The VirtualBox and VMWare are rooted and display a rectangle which
    represents the entire guest OS.

    VMware Workstation/Player also provided a mode where programs in the VM
    are using their own Windows in inside the Windows desktop. However this required a special driver inside the VM since this was intended to be
    used with Windows as VM guest and Windows does not have a concept like
    X11 where single programs can use an X server instead of the one and
    single frame buffer provided by the graphics card driver.

    That's a difference in the display part of the hosting software.

    It's more a difference in the operating systems running in the VM and
    their Window managers. WSL2 for example requires X11 to make it possible
    to have Linux programs running with their own Windows in the host. With
    Wayland this is technically impossible without a lot of work to extend
    Wayland for this.
    --
    Arno Welzel
    https://arnowelzel.de

    --- PyGate Linux v1.5.19
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From Carlos E.R.@3:633/10 to All on Wed Sep 2 22:05:19 2026
    On 2026-09-02 21:51, Dan Purgert wrote:
    On 2026-09-02, Arno Welzel wrote:
    Maria Sophia, 2026-08-31 17:34:

    ...

    The article writer just confused "no need to start VirtualBox or VMware"
    with "no VM" - but of course Linux running in WSL is a VM as well.

    This reads a lot like those threads that arlow guy used to post... it's
    not the same OP is it?

    You mean Arlen? Yes, Arlen is Maria.

    Grepping for arlow I see one Seamus Harlowe in 2021, just one post.

    --
    Cheers, Carlos.
    ES??, EU??;

    --- PyGate Linux v1.5.19
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From Richard Kettlewell@3:633/10 to All on Wed Sep 2 21:16:32 2026
    Arno Welzel <usenet@arnowelzel.de> writes:
    It's more a difference in the operating systems running in the VM and
    their Window managers. WSL2 for example requires X11 to make it
    possible to have Linux programs running with their own Windows in the
    host. With Wayland this is technically impossible without a lot of
    work to extend Wayland for this.

    That work has evidently been done. The WSL2 display architecture is:

    client -> [XWayland ->] Weston -> RDP -> Windows desktop

    ...with the XWayland part being optional, in the sense that you can run
    Wayland clients under Linux and they display in their own independent
    window on the Windows desktop.

    https://github.com/microsoft/wslg gets into the details.

    --
    https://www.greenend.org.uk/rjk/

    --- PyGate Linux v1.5.19
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From Dan Purgert@3:633/10 to All on Wed Sep 2 20:25:41 2026
    On 2026-09-02, Carlos E.R. wrote:
    On 2026-09-02 21:51, Dan Purgert wrote:
    On 2026-09-02, Arno Welzel wrote:
    Maria Sophia, 2026-08-31 17:34:

    ...

    The article writer just confused "no need to start VirtualBox or VMware" >>> with "no VM" - but of course Linux running in WSL is a VM as well.

    This reads a lot like those threads that arlow guy used to post... it's
    not the same OP is it?

    You mean Arlen? Yes, Arlen is Maria.

    Yeah, that's the one. Time to go fix some filters :)

    --- PyGate Linux v1.5.19
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From Paul@3:633/10 to All on Wed Sep 2 21:36:56 2026
    On Wed, 9/2/2026 4:42 PM, Maria Sophia wrote:
    Richard Kettlewell wrote:
    Arno Welzel <usenet@arnowelzel.de> writes:
    It's more a difference in the operating systems running in the VM and
    their Window managers. WSL2 for example requires X11 to make it
    possible to have Linux programs running with their own Windows in the
    host. With Wayland this is technically impossible without a lot of
    work to extend Wayland for this.

    That work has evidently been done. The WSL2 display architecture is:

    client -> [XWayland ->] Weston -> RDP -> Windows desktop

    ...with the XWayland part being optional, in the sense that you can run
    Wayland clients under Linux and they display in their own independent
    window on the Windows desktop.

    https://github.com/microsoft/wslg gets into the details.

    --
    https://www.greenend.org.uk/rjk/


    Could it simply be that the main reason Linux GUI apps work differently in
    a VM/WSL is mostly likely more about how the graphical systems are
    connected and not because Windows inherently can't display Linux windows?


    Traditionally, you ran an application in Ring 3, to function as the display.

    When I had a Mac, and wished to remote into work for a CAD session,
    it was "MacX" you would run for X11.

    When WSL (original edition) came out, it was XMing. One of the disks
    on the other machine, still has the setup.

    It's a solve-able problem.

    One challenge, is not all distros are set up for native X11. There
    is Wayland (and XWayland). I have one setup which is native X11, and
    a benchmark makes it twice as fast as Wayland. The new shiny, costs.

    Just finding a nice benchmark tool is a problem.

    And when it comes to benching Windows and Linux, not all the players
    are scrupulously honest. When Anandtech was around, on a few occasions
    they tried running "desktop workloads" on server class machines. Just
    to see what that would look like. They may have used a 48C 96T box or so, something roughly that size, and they noticed a "kink" in the bench curve,
    just above 64 cores. They were running some Windows Pro thing at the time. Anand considered this worth chasing down, and it turned out, someone
    answered his question, and told him he needed Windows Workstation for
    more than 64 virtual cores, because Windows switches to "processor groups" above 64 cores, and Task Manager also starts using heat maps for the CPU display. Windows Enterprise is likely similarly endowed (but likely to be
    more expensive than the Workstation SKU). When the benchmarks were rerun,
    the curve no longer tipped at the end, but pointed more or less in the
    right direction (subject to the usual effects from Intel ring buses
    at the time). And today, I can find a review from someone you would
    recognize, who put Windows Pro on such a machine and benchmarked it and
    then produces a "quote-able number" for "how slow WIndows is".
    After Anandtech made a splash all those years ago, with an admission
    their first benchmarks were wrong, because they had used the wrong Windows OS.

    Paul

    --- PyGate Linux v1.5.19
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From Lawrence D?Oliveiro@3:633/10 to All on Thu Sep 3 02:28:26 2026
    On Wed, 2 Sep 2026 21:36:56 -0400, Paul wrote:

    And today, I can find a review from someone you would recognize, who
    put Windows Pro on such a machine and benchmarked it and then
    produces a "quote-able number" for "how slow WIndows is". After
    Anandtech made a splash all those years ago, with an admission their
    first benchmarks were wrong, because they had used the wrong Windows
    OS.

    I wouldn?t blame them, I would blame Microsoft. That is the most
    common (and affordable) OS option it offers that is a bit above the
    ?Home? edition, naturally that is what people in the real world are
    most likely to use. So why shouldn?t it be the version referenced in benchmarks?

    --- PyGate Linux v1.5.19
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From Paul@3:633/10 to All on Wed Sep 2 23:18:33 2026
    On Wed, 9/2/2026 10:28 PM, Lawrence D?Oliveiro wrote:
    On Wed, 2 Sep 2026 21:36:56 -0400, Paul wrote:

    And today, I can find a review from someone you would recognize, who
    put Windows Pro on such a machine and benchmarked it and then
    produces a "quote-able number" for "how slow WIndows is". After
    Anandtech made a splash all those years ago, with an admission their
    first benchmarks were wrong, because they had used the wrong Windows
    OS.

    I wouldn?t blame them, I would blame Microsoft. That is the most
    common (and affordable) OS option it offers that is a bit above the
    ?Home? edition, naturally that is what people in the real world are
    most likely to use. So why shouldn?t it be the version referenced in benchmarks?


    THE ORDER PAGE FOR THAT COMPUTER, HIGHLIGHTS "WINDOWS WORKSTATION" BY DEFAULT. ffs.

    The SKU is right on the order page, and it is lit up (as the default).

    There's a couple things about Windows.

    1) There is a memory license. I had to deal with that back in Windows 7,
    so I could use all the memory in the Test Machine. Current Windows versions
    are quite generous on Memory License. Some of the older OSes, were not generous.
    Maybe you could buy a 6TB dual socket server motherboard, filled with max RAM,
    then use Win11 Pro, and not all your RAM would show up. You could, at the same
    time, buy two AMD processors with the "very low core counts" and then congratulate
    yourself on not needing Windows Workstation. These processors are not a "typical"
    offering, so you might not see them on Newegg. The purpose of the low core count
    ones, is they have a higher turbo clock (for those single threads you dream
    of running on $100K machines).

    2) Processor groups is a thing. A 96C 192T would have 3*64 groups.
    This has something to do with how the scheduler works. If you're buying
    big iron, you have to think about these things.

    Paul

    --- PyGate Linux v1.5.19
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From Lawrence D?Oliveiro@3:633/10 to All on Thu Sep 3 05:03:27 2026
    On Wed, 2 Sep 2026 23:18:33 -0400, Paul wrote:

    There's a couple things about Windows.

    1) There is a memory license. I had to deal with that back in
    Windows 7, so I could use all the memory in the Test Machine.
    Current Windows versions are quite generous on Memory License.
    Some of the older OSes, were not generous. Maybe you could buy a
    6TB dual socket server motherboard, filled with max RAM, then use
    Win11 Pro, and not all your RAM would show up. You could, at the
    same time, buy two AMD processors with the "very low core counts"
    and then congratulate yourself on not needing Windows
    Workstation.

    On Linux, it costs $0 to support entry-level processor/core configurations.
    And then you have to pay an extra $0 for the next level up, and so on.

    And that?s per-seat.

    2) Processor groups is a thing. A 96C 192T would have 3*64 groups.
    This has something to do with how the scheduler works. If you're
    buying big iron, you have to think about these things.

    Again, the Linux licensing goes in steps of $0 for each level. I think
    a single node can have up to 2048 CPUs, so a million-CPU super will
    need quite a few nodes, at $0 a pop.

    --- PyGate Linux v1.5.19
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From Carlos E.R.@3:633/10 to All on Thu Sep 3 08:23:13 2026
    On 2026-09-03 07:03, Lawrence D?Oliveiro wrote:
    On Wed, 2 Sep 2026 23:18:33 -0400, Paul wrote:

    There's a couple things about Windows.

    1) There is a memory license. I had to deal with that back in
    Windows 7, so I could use all the memory in the Test Machine.
    Current Windows versions are quite generous on Memory License.
    Some of the older OSes, were not generous. Maybe you could buy a
    6TB dual socket server motherboard, filled with max RAM, then use
    Win11 Pro, and not all your RAM would show up. You could, at the
    same time, buy two AMD processors with the "very low core counts"
    and then congratulate yourself on not needing Windows
    Workstation.

    On Linux, it costs $0 to support entry-level processor/core configurations. And then you have to pay an extra $0 for the next level up, and so on.

    And that?s per-seat.

    2) Processor groups is a thing. A 96C 192T would have 3*64 groups.
    This has something to do with how the scheduler works. If you're
    buying big iron, you have to think about these things.

    Again, the Linux licensing goes in steps of $0 for each level. I think
    a single node can have up to 2048 CPUs, so a million-CPU super will
    need quite a few nodes, at $0 a pop.

    Mmm. At those levels, it is feasible people use enterprise versions of
    Linux, which no longer have a zero cost.

    --
    Cheers, Carlos.
    ES??, EU??;

    --- PyGate Linux v1.5.19
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From J.O. Aho@3:633/10 to All on Thu Sep 3 08:39:46 2026
    On 27/08/2026 08.05, Maria Sophia wrote:

    Usage of commands from a VM in microsoft windows is unrelated for Linux usergroups.

    --- PyGate Linux v1.5.19
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From Arno Welzel@3:633/10 to All on Fri Sep 4 18:37:24 2026
    Richard Kettlewell, 2026-09-02 22:16:

    Arno Welzel <usenet@arnowelzel.de> writes:
    It's more a difference in the operating systems running in the VM and
    their Window managers. WSL2 for example requires X11 to make it
    possible to have Linux programs running with their own Windows in the
    host. With Wayland this is technically impossible without a lot of
    work to extend Wayland for this.

    That work has evidently been done. The WSL2 display architecture is:

    client -> [XWayland ->] Weston -> RDP -> Windows desktop

    ...with the XWayland part being optional, in the sense that you can run Wayland clients under Linux and they display in their own independent
    window on the Windows desktop.

    https://github.com/microsoft/wslg gets into the details.

    Thanks, I wasn't aware of this.


    --
    Arno Welzel
    https://arnowelzel.de

    --- PyGate Linux v1.5.19
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)