by tombert · 5y ago · 0 comments
While I don't really blame Dell for not taking this deal (it seemed like a pretty raw deal for Dell), I wonder how much more popular Unix would be nowadays had this gone through. OS X was (and is) almost certainly the largest desktop *nix distro out there, and if it were installed on every Dell computer (and presumably later other manufacturers as well), I wonder if Unix might have become the "standard" for desktop OS's.
Microsoft is pouring buckets of money and human capital into WSL2. Today, it's their way to drag cloud developers away from the Mac and Linux ecosystems into the corporate-blessed Windows ecosystem. But tomorrow, maybe developers and server admins will demand more Linux compatibility and, who knows, maybe they will reach a point where the only way to improve performance is to "port" Windows services and applications to the Linux kernel. The open source community has already proven that much of it can be done via Wine.
One of those things that doesn't look terribly likely now but might prove obvious in retrospect.
WSL2 is actually the third iteration of this technology, not the second, and I believe has the same original goal and they've dedicated a large amount of engineering effort to that goal.
Here's my case:
Windows 10 Mobile had "Project Astoria", which involved working with app developers to port apps to Windows Phone. This involved library support and translation layers to enable APKs to run on Windows.
WSL1 abandoned the approach of requiring developers to modify apps, and used "pico processes" with kernel driver and Windows kernel's support for alternative subsystems to Win32 to map Linux syscalls to Windows equivalents. This enabled binary compatibility for most apps, but fell short.
WSL2 switched to the lightweight Hyper-V integration (now using the host compute system APIs to manage lightweight containers/VMs) but added deep driver integration with graphics to enable machine learning and hardware accelerated graphic workloads to work within Linux using vGPU drivers and RAIL respectively. And soon VAIL, to enable full fidelity graphical applications (i.e.: Android apps) to run on Windows without compromise.
That's a lot of engineering time on 3 high complexity projects over a span of at least 6 years, publicly.
Link to a talk on X11/Wayland and VAIL: https://xdc2020.x.org/event/9/contributions/611/attachments/...
Unfortunately, Google's anticompetitive moves with SafetyNet will ensure that many Android apps will only run on Google-blessed hardware and software platforms.
WSL 1 & 2 are amazingly innovative platforms, as is WINE. Microsoft has undoubtedly created untold value for developers and their shareholders with WSL. The anticompetitive limitations implemented in SafetyNet, however, serve to stifle such innovation, and prevent many Android apps from running on other platforms.
At the scale of MS a "major" Windows feature can't be cheap, even if it looks simple.
Seriously, look at how difficult it is for them to port the old style control center or improve notepad.exe.
No, its their way to avoid corporate (now and becoming cloud) developers already on Windows from being dragged off the Windows ecosystem. Its defensive, not (primarily) expansive.
This move killed cygwin and a lot of dual-boot linux installs within a year of availability.
here's the thing though - everyone i know just needs the basic korn shell and basic unix like features for their laptop. no one is writing apps targeting wsl, no one's running it on a server. the features we use wsl for have been the same since 1988, and we're not interested in the new ones.
I got into Slackware Linux, as means to do university work at home, and when I started working it was Windows NT, Aix, HP-UX and Solaris. We had a couple of Linux based servers but they were used as toys, like smuggling a couple of networked games into the office.
In every category imaginable, the NT kernel is better designed. Async IO, better power management, pageable kernel memory, stable driver API. I'd much rather KDE shell on NT kernel.
I get that Linux is popular, but no objective evaluation would claim that Linux kernel is better in any metric other than "how open source is it?" Spend some time to read the NT docs and get familiar with the design and you'll see.
This may be a hard pill to swallow, but in many areas linux's design is still very much "my first kernel" (I will give credit where it is due though, it is slowly being patched piece by piece, slowly). Whereas NT was written by a team who's done it a few times and avoided a lot of pitfalls (eg: synchronous by default IO, really??)
I can't comment on most of these things since I don't know much coding about them, but I will definitely grant you the stable driver API. Drivers are a huge pain in the ass in Linux, and until DKMS it was pretty common for upgrading my kernel to break my wifi card, which was really annoying.
> I get that Linux is popular, but no objective evaluation would claim that Linux kernel is better in any metric other than "how open source is it?"
I mean, that's a pretty big feature. Didn't Linux get multicore support well before Windows almost entirely because Linux was open source and popular on servers? When something is open source, companies (or people) don't have to wait for a specific monolithic company to decide that a certain feature is worthy.
> synchronous by default IO, really??
I will totally admit a lot of ignorance as I don't work in kernel spaces, but hasn't Linux had Async IO in the form of `epoll` for like 20 years? It's not the default but I feel like it's pretty commonly used.
-----
Of the things I do like about Linux (outside of open source), it follows the "everything's a file" mantra from Unix. It makes it fairly fun and easy to arbitrarily glue applications together (admittedly at the cost of performance sometimes).
Also, I like that you can choose different filesystems more or less arbitrarily. I don't have a Linux laptop anymore (I run macOS), but I when I did I was running ZFS on root with Ubuntu, and ZFS is pretty awesome. As far as I'm aware, with Windows you're basically stuck with NTFS.
As an API, epoll is kind of... suboptimal. Of course, lots of great things have been built with it, but there's a reason it's being replaced with io-uring, which is a lot more similar to Windows iocp.
epoll() was introduced in Linux 2.5.44 [1], which was released in 2002 [2]. Epoll is not a wonderful API. Linux's real reply to NT's anync io is io_uring, which only appeared in Linux 5.1 [4] in 2019(!!) [2], and is still wildly evolving
[1] https://en.wikipedia.org/wiki/Epoll
[2] https://en.wikipedia.org/wiki/Linux_kernel_version_history
In begin of AMD64 a lot of Windows software was single threaded 32 bit still, while on Debian with APT you had a working 64 bit environment. It was mostly userland which could not handle the amount of max cores found in even consumer grade multicore AMD64.
Even recently many games did not take advantage of multiple cores, while AMD has been strong performance wise multiple cores, Intel was best single core until Zen 3 recently. Windows would be unable to perform well (use max cores) on AMD64 by AMD.
You can see it now too. Intel gets slight performance boost with Windows 11 compared to 10 while AMD loses performance. Which AMD said they will address in October.
Edit:
Microsoft wouldn't ever open-source NT but, damn, GNU/Windows NT would be a sweet OS to use. (Make it license-compatible with ZFS and it'd be awesome.)
I wouldn't say never. I think the chance of that happening is ever so slightly increasing every year. The benefits of open source NT kernel will some day outweigh Microsoft keeping it close. Its strategic value is decreasing. ( The whole OS on the other hand is a different question though. )
It took them 7 years to get it stable enough to run on Windows Server, and they had to rewrite the entire stack to do it.
Until then, they were running the service on Unix.
https://news.softpedia.com/news/Windows-Live-Hotmail-Was-Pow...
There are absolutely parts of Linux with all the architecture and engineering rigor of a favela. Real big "I want a new room and have two sheets of corrugated steel, a neighbor's wall, and an afternoon" energy.
There are also major parts of it that have benefited from decades of 'this tweak that won't be driver ABI compatible increases efficiency in this use case by measurable but single digit perf'. And yes, there's politics to getting that merged, but the barrier is way lower in Linux. You try a lot of that in how Microsoft builds software and at best you put a target on your back because you just made a lot of work for another team. At worst that amount of differently siloed work just kills the idea in the first place.
That doesn't necessarily mean the Linux implementation is good; it could be that the syscall API is bad and can't be implemented any other way.
And yet on same hardware, windows gets twice the battery life and idles at about half the power. Maybe NT's way IS better afterall?
Actually, it was because NTFS semantics do not match ext semantics and lots of linux apps expect the latter. MS was clear on that...
One of the reasons NT kernel is great is it was developed by the same people who developed VMS.
This was true until io_uring, but io_uring is far more useful for far more purposes than overlapped IO.
https://docs.microsoft.com/en-us/windows/win32/api/ioringapi...
Yes really.
Synchronous, multi-threaded is the sane default from any perspective. (Performance, safety, developer convenience, flexibility, you name it.)
P.S. I've been making high-performance "web-scale" services for more than a decade.
There's probably many areas where Linux comes strongly ahead - a much wider array of supported architectures, and even on the windows supported ones Linux scales much better by the virtue of being deployed from the smallest embedded computers to (all of) the largest supercomputers.
install windows 10. install WSL(2). install apache in WSL(2). start edge. point the edge browser at WSL(2). Notice the default network settings disallow edge from talking to WSL(2).
or start up something that uses mDNS.
or try to use non-latin characters on the terminal.
I'm sure MSFT is putting a lot of money in WSL2. but it's hard to argue they're serious about it.
Pulling on this thread, if the iPhone didn't exist (because Apple was solely software), I think there's a chance that the big player in the mobile space today would probably be Blackberry. They were doing extremely well before the iPhone, and if Apple hadn't disrupted the entire smartphone industry, I don't really see why that would haven't continued. I wonder if that means that smartphones would still have keyboards?
As for Blackberry: and Nokia. I know Nokia was not very popular in US (for smartphone), but elsewhere in the world they were. In Europe it is Android which replaced both Nokia and Blackberry.
Android was coming regardless of iPhone. A major thing would be if OSK would be as good as it is on Android if iPhone would not have existed.
But Nokia was ready for the masses with N9 were it not for burning platform memo.
Symbian also had and used capability based security. iOS got it much later, and Android plays catch up on security and privacy with iOS.
No chances.
Going from BlackBerry to Google or Microsoft was seen as a great move. The opposite was basically unheard of. BB could never attract any talent.
Java and Java 2 EE are deeply related to those endeavours.
I'm not saying it would have worked out any better for Sun, just that they were one of the bigger players in the tech world in the late 90's/early 2000's, and I could see trying to break into the desktop space seeming valuable to them at the time.
I’m thrilled that we have unix with nice GUI that runs Photoshop. That was always my dream machine as a kid.
But boy, was BeOS awesome. The most responsive OS I ever used. The priorities were set straight: user input is king, so is audio and video.
And the aesthetics matched my taste remarkably well. I always thought NeXT was hideous by comparison.
Take this snippet from the wikipedia:
"Apple CEO Gil Amelio started negotiations to buy Be Inc., but negotiations stalled when Be CEO Jean-Louis Gassée wanted $300 million;[11] Apple was unwilling to offer any more than $125 million. Apple's board of directors decided NeXTSTEP was a better choice and purchased NeXT in 1996 for $429 million, bringing back Apple co-founder Steve Jobs.[12]" [ https://en.wikipedia.org/wiki/BeOS ]
It seems to me that BOTH $300M and $429M are greater than $125M and $429M is greater than $300M.
Having been both a NeXTStep and BeOS developer, I can assure you that NeXTStep was a MUCH more mature product than BeOS. Was it money? maybe. a little. Was NeXTStep better value for money? maybe. probably.
I rankle every time I hear the story about Gassée being greedy. He might have been asking for more than Apple wanted to pay, but I think it's simplistic to say it was only about money. NeXTStep morphed into Rhapsody and MacOS reasonably quickly. And the MetroWerks compiler for BeOS was DEFINITELY buggy.
I think there was no discount Gassée could offer that would make up for the longer time-to-market for a BeOS based next-gen Mac OS.
It's not like something came out of Google recently. If anything, Google is desperately trying to catch-up with Amazon and Microsoft in cloud and Apple in consumer etc. They are entering a long path of gradual decline.
MSFT market cap today is 2.22T GOOGL is 1.86T
They're not exactly playing "catch up". It's more like "keep up"
Edit: removed asterisks before *nix as it triggered markdown
Half a phone convo:
Hi, this is Steve Jobs. If you engage in licensing with Apple, I will port my Unix-based OS to your brand of generic PC hardware.
What? Yes, I sorta know I can already do that without you licensing anything from me.
Why am I talking to you? Good question, you see ...
Yes, I know about Linux.
But anyway, so how about it?
So I can imagine large companies would not trust OS X at that time and it would have been a big risk for Dell.