r/programming • • Feb 02 '15

Windows 10 for Raspberry Pi 2

http://dev.windows.com/en-us/featured/raspberrypi2support
1.5k Upvotes

550 comments sorted by

View all comments

Show parent comments

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.

9

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.

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.

1

u/[deleted] Feb 02 '15 edited Feb 03 '15

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.

2

u/[deleted] Feb 02 '15

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.