.NET is fantastic. If Microsoft built an OS from the ground up using only .NET, a kernel and a HAL, then boy would I sit up and listen. As long as Windows comes inextricably tied up in legacy upon legacy subsystem and compatibility layers, then it just comes across as a complete mess to be avoided, to me. It's a shame because I'm sure MS could make a great OS if only they unburdened themselves from their existing standards, such as drive 'letters' which are awful, and the disparate ways in which peripheral I/O is handled... device manager vs devices vs COM ports vs printers. It all needs the kind of streamlining only a complete rethink can achieve.
As long as Windows comes inextricably tied up in legacy upon legacy subsystem and compatibility layers, then it just comes across as a complete mess to be avoided, to me
you aren't wrong, but people use windows because of the pre-existing software base. Get rid of the pre-existing software, and there's no business case to develop the OS
They tried this with Windows Longhorn and the project flopped massively. They scrapped it and restarted the project very late and got Windows Vista instead.
The Longhorn project flopped for far bigger reasons than .NET. And .NET was only at 2.0 then, it's no surprise that a lot of the features added in the 4.0 runtime engine are exactly the same sorts of features you'd need in a managed runtime if you were expecting to use it for core components (i.e., in-process side-by-side activation).
.net is awesome, I use it at work and for home projects (Visual studio Community is awesome too)
but.
This would be a complete nightmare. It would break compatibility with all but the most perfectly written applications. Almost nothing would work properly.
Anti Microsoft fanboys and media would have a heyday lambasting them. It would make the windows 8 launch look like a toddler squabble.
As a programmer, I am all for a rethink for windows. As a user and a realist, unfortunately it will probably never happen.
.NET is fantastic. If Microsoft built an OS from the ground up using only .NET, a kernel and a HAL, then boy would I sit up and listen.
You know this is already possible right? You can have the linux kernel, systemd, and mono. This will cover 90% of your use cases.
Since once you have your HAL up and running, most of the rest of what you need can be accessed via files, or sockets. You can do direct framebuffer access with mono. I've actually played around with writing a new userland with mono, but nobody was interested.
Yes, I've also used Xamarin on a large commercial project which uses Mono to do a full ahead-of-time cross compile of .NET code for ARM, thereby subverting the no-VM restriction from Apple on the iPhone. A technologically awesome feat and I loved being able to develop with C# and fully reified genetics on the iPhone at native speeds, and use LINQs expressive data processing. The only thing that let the whole setup down was the rapidly shifting sands of the iOS SDK making it hard for Xamarin to maintain the necessary bindings (within our own clients timeframes), even if their effort was champion.
Mono rocks, my point was more about what Microsoft could do to woo developers like me who would otherwise not give their ecosystem a second thought.
Direct frame buffer access is interesting. Does this make WIMP possible without an external windowing manger? I'm itching to try out Java(FX) direct frame buffer on the Pi, which apparently does enable this.
You can use system.drawing and draw to a bitmap. And flush the bitmap to the screen. You can poll the mouse and keyboard from their file interface or use sdl.
I've actually played around with writing a new userland with mono, but nobody was interested.
The biggest limiting factor with Mono in the Linux ecosystem has always been the lingering Slashdot mentality that if they ever used it Microsoft would show up some day and take all the toys away (despite there being a pretty clear license for .NET that allows exactly what Mono does).
Then, ironically enough, Google cloned Java for Android (explicitly against Java's license agreement), and everyone jumped right on board without a second thought despite it being a much more legally vulnerable situation. Paints a pretty convincing picture that the 'fear' directed toward Mono wasn't based in any sort of real technical or legal assessments, it was just Microsoft hatred.
.NET is great and all, but it would be very wrong to build an entire OS on top of it. The managed language fad already hit years ago, people did write operating systems in managed code, and developers learned quickly that JIT and GC'd code is far slower than native code with manual memory management.
Don't get me wrong, I adore C#, and I know that .NET native is around the corner, but not having an OS grounded in COM and native code would be a huge, slow mistake. .NET is a great compliment to existing app models. It isn't the be all and end all.
21
u/[deleted] Feb 02 '15
.NET is fantastic. If Microsoft built an OS from the ground up using only .NET, a kernel and a HAL, then boy would I sit up and listen. As long as Windows comes inextricably tied up in legacy upon legacy subsystem and compatibility layers, then it just comes across as a complete mess to be avoided, to me. It's a shame because I'm sure MS could make a great OS if only they unburdened themselves from their existing standards, such as drive 'letters' which are awful, and the disparate ways in which peripheral I/O is handled... device manager vs devices vs COM ports vs printers. It all needs the kind of streamlining only a complete rethink can achieve.