248 points · by hard_times · 1d ago · 129 comments
The good thing about linux is the large suite of opensource tools, "everything is a file" and huge array of composable commandline tools.
Therefore, I think the reverse of this project might be the best outcome...
Many Unix systems didn't have threads but relied purely on multiprocessing. Threads on Linux is still a hack on top of the process API: clone.
On the other hand NT came with threads from the first release to do multitasking. It doesn't have fork because NT developers didn't want to add the hacky fork syscall for cloning the process / its memory area.
Procees creation in NT is slow, but many applications can be designed to avoid it. Process creation is a bottleneck on Unix/Linux as well, the bottleneck is just usually not a big deal until you're trying to fork thousands of times per second... Then you have to do the same work you'd have done on NT to avoid forking.
This is also complicated by the fact that NT tends to orient operations around handles, but win32 deals in names. So the win32 to NT translation step often has an extra CreateFile or two.
Also filesystem drivers are kind of heavy on windows, and compared to Linux VFS they have more caching and stuff that gets applied globally. I believe, for example, that on Linux you get the name to inode caching from the VFS layer, and in windows it lives in ntfs.sys. You can read that contrast as Linux allowing performance focus in the right layer and Microsoft bolting on non-essential bloat and complexity in the FS driver.
(Also, hello.)
File operations in NT are implemented using a very generalized model of IRPs (IO Request Packets) that are routed through (possibly) multiple layers of filters. It's very generic and extensible, but not fast.
They actually had to add a layer of shortcuts ("Fast IO") that bypasses this for a limited set of data operations, but not for metadata. This layer just uses classic tables of function pointers instead of IRPs, just like in Linux.
It is possibly related to the fact that mounting an NTFS volume doesn't prevent other software from writing to it via \\.\PHYSICALDRIVEn. With Windows effectively being a legacy OS for running legacy software, it's totally understandable why they would not change it.
Again, that's not an issue with the NT kernel itself; most of that time is due to the Win32 layer which jumps through extraordinary hoops to support its app model, which essentially is an emulation of 16-bit Windows.
Win32 is basically too big to have a global opinion. There are good parts and then there is event tracing API :)
It is still well-designed for its purpose and there is a lot of thought put for future compatibility, most changes do not affect the API but adds another bit field or puts some fields in a struct which has pre-reserved fields.
Now, Microsoft has largely abondonned Win32 and kept reinventing UI framework on top of UI framework. WPF was actually good. It is like QtQuick: declarative and GPU accelerated.
WinUI that came with Windows 8, however, is crap. Moreover Microsoft made 3 incompatible versions of it and didn't fix the bugs in the earlier versions and WinUI 3 is still accreting more. They also ported system utilities like Explorer to WinUI 3 inheriting all the bugs. You can still launch old Control Panel (pure Win32) and its performance compared to Settings (WinUI 3) is day and night. Moreover they do crazy stuff like using React Native to generate WinUI because they fired their capable devs and now left with full stack JS ones.
Add all the overhead of adware and extra telemetry and the AI bullshit, Windows 11 became a sluggish mess that requires a deep cleaning script after install to get the actual performance out. Win32 is still there, it is still fast. Whatever diff they have with Windows 7 isn't
Telemetry, however, is unfortunate in that it the only official way to fully disable it is limited to Windows Enterprise.
As others have noted, certain things like metadata-heavy filesystem operations and process creation are much faster on Linux: running a quick test just now, on broadly similar hardware (and the Windows box has a slightly faster CPU and SSD), Windows takes around 90 ms to run a trivial C program that Fedora 45 runs in less than 2 ms; some of this may be PowerShell vs bash overhead, though cygwin/msys2 bash is even slower).
What I haven't noticed, though, is a noticeable difference running heavy cross-platform GUI applications like Firefox and Rider on Windows vs Linux, or Windows Terminal being noticeably less responsive than Konsole (though PowerShell certainly isn't winning any awards for speed).
Is there still a LTSC version? Or does that need "cleaning" too?
I don't use Windows, except once or twice per decade for nostalgic reasons, like visiting an old favorite prostitute for old times sake, to see how she is holding up.
There is. It requires significantly less "cleaning", almost none, but still a couple of annoying defaults. If you can live with the missing stuff, it is good.
Compared to consumer edition, it lacks the codecs and they are delivered through Microsoft Store unless you deploy it properly with the Enterprise tooling ($$$$). I don't want to deal with that so I use consumer edition Pro (which I have a legal license for with my XPS 15 and Thinkpad P1 Gen 5).
If you set up the consumer version with an EU locale, Windows also lets you remove almost anything, permanently. Anywhere else, tough luck. I think many problems with bundling and adware are not technical but social / legal problems. Push your governments to regulate big tech!
> I don't use Windows, except once or twice per decade for nostalgic reasons, like visiting an old favorite prostitute for old times sake, to see how she is holding up.
I was a full-time Linux user until 2020. I bought a Thinkpad for it. But I encountered so many driver issues with the new laptop that didn't get solved for a year or even more. Compounded with the studies, the stress of job search and the need of having something up-to-date (i.e. no "stable" distros) that works after the setup, I moved away. I knew and I know Linux desktop is still decades behind in many areas, I used to use it despite the fact.
After taking a microkernel course at the university and exploring L4 stuff, I definitely prefer NT's design over Linux. Dealing with real C / C++ deployments in a few jobs also made me appreciate Win32 more.
However, I just don't want to bother maintaining an OS unless someone pays me (which my employer does for a custom distro, that we have to patch kernel and other system bugs constantly).
Even so, it's easily the best OS option for PC at the moment. Linux/KDE is ok but Windows 11 is just more rock solid. I wish they would fix their schizo settings apps though. How are so many settings still only in the Windows NT era Control Panel?
IIRC the issue was that our ISP gave everyone a public IP and allowed NetBIOS traffic from the outside world and there were so many attackers port scanning IIRC port 139 you were found and compromised within a couple minutes of booting up.
IIRC the work around was to boot into safe mode and disable SMB and NetBIOS then reboot and download the service packs (or get an image with the service packs already baked in).
And yes, the stuff above the NT API is... not nearly as good.
Gates realised that been not just insecure but publicly seen as insecure at the level they where trending towards was going to be an existential problem.
> So now, when we face a choice between adding features and resolving security issues, we need to choose security. Our products should emphasize security right out of the box, and we must constantly refine and improve that security as threats evolve. A good example of this is the changes we made in Outlook to avoid e-mail-borne viruses. If we discover a risk that a feature could compromise someone's privacy, that problem gets solved first. If there is any way we can better protect important data and minimize downtime, we should focus on this. These principles should apply at every stage of the development cycle of every kind of software we create, from operating systems and desktop applications to global Web services.
Though in hindsight given what Windows 11 has become this :-
> If we discover a risk that a feature could compromise someone's privacy, that problem gets solved first.
Is pretty funny (in a black humour sort of way).
[1] https://www.wired.com/2002/01/bill-gates-trustworthy-computi...
At some point in time it was possible to install KDE natively on win32 too, but I never got to replace the win32 shell entirely with KDE.
Not sure if that's the kernel's fault though. (Maybe it's due to ntfs, and it would be faster with a different fs?) Also I noticed over 100 reads to the registry when in a system monitor when I ran hello world in C (win10), which I found amusing and a little depressing.
However, on Linux that still tends to be really fast, in part thanks to the negative dentry cache in the kernel (a cache of failed path lookups, there is a positive dentry cache too iirc).
I don't know if this in particular is a bottleneck on Windows though. I just know the end result of the combined engineering decisions is slow.
Hosting win32 without patches is a recipe for disaster in the image handling libraries and file previews, but it's a pretty neat way of working for the people would would've used Windows XP if they hadn't been forced off away from that.
The closed source nature gets in the way of enjoying Windows (maybe some native components can be replaced with their ReactOS equivalents?) but many of the POSIXisms are just suboptimal designs lauded purely because they're different from what Windows is doing.
You can disable the linter if you want to use custom verbs, but I find their focus on consistency refreshing. There's no Bash version of https://learn.microsoft.com/en-us/powershell/scripting/devel... and the end result is that everybody just sort of does something and the most common behaviour is what sticks (most of the time).
I use Windows at work and the UX is godawful.
What are you using on Linux? I tried a few Linux desktops, all of which had different Nautilus-based file browsers. They were all much slower than Windows Explorer. Just opening a folder was slow and big folders were really slow.
but, IMHO, XP and & were peak Windows OSes. Vista and then later 8 were the reason i switched to linux to begin with
Random case in point from this week: fingerprint readers. Did you know fingerprint reader support in Linux is garbage? I didn't, until the one in my laptop started freaking out in a recent kernel upgrade. I bought a few USB ones from Amazon to test them, and they're either totally unsupported on Linux or someone made a fork of a GitLab repo and (thanks to AI) has got the device halfway working, I just have to have my own AI agent develop/compile/install the fork. But there is of course working Windows drivers for all these fingerprint readers, and I can contact the manufacturer's support if I have an issue in Windows.
(FYI: I suggest updating the link in this article.)
Might be an interesting alternative shell with decades of applications supported, although pure modern Linux is now a tough to beat contender.
> The late-90's-to-early-2010's PC desktop experience was great for power users, especially creative users.
The drawback is, since it runs Windows XP (or Windows 7) explorer.exe, that it also comes with their vulnerabilities.
How many vulernabilities are in the desktop shell rather than the kernel and services (and html renderer, but don't expose your desktop shell to untrusted html)
Looks actively maintained, might give it a shot again.. I do miss Vista somehow.
a) Perverse
b) Wonderful
Still this project has a nice nostalgia appeal.
This page stood out because it's chock full of foreign words written in Katakana, a dead giveaway that it is Japanese. Also, my browser helpfully asked to translate from Japanese to English for me.
Korean is also easy to spot: If you see circles in the characters then you know it is Korean.