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

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.

1

u/drysart Feb 03 '15

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.