4 ms·
I think it is really cool how much of the CoreRT is written in C#. Garbage collection and stack frame walking are implemented, but most everything else is C#, i
by MarkSweep 8y ago
I think it is really cool how much of the CoreRT is written in C#. Garbage collection and stack frame walking are implemented, but most everything else is C#, including exception dispatch:
https://github.com/dotnet/corert/blob/master/src/Runtime.Base/src/System/Runtime/ExceptionHandling.cs https://github.com/dotnet/corert/blob/master/src/Runtime.Bas...
and type-casting:
https://github.com/dotnet/corert/blob/master/src/Runtime.Base/src/System/Runtime/TypeCast.cs https://github.com/dotnet/corert/blob/master/src/Runtime.Bas...
- matthewwarren 8y agoYeah, that's what impressed me as well! Turns out that even more components could be written in C#, but the ROI just isn't worth it, see https://github.com/dotnet/coreclr/issues/17576 https://github.com/dotnet/coreclr/issues/17576 for an interesting discussion
- nickpsecurity 8y agoWhile it may have not fit their needs, the prior work in COSMOS suggests they could've done more if they chose: https://en.wikipedia.org/wiki/Cosmos_(operating_system) https://en.wikipedia.org/wiki/Cosmos_(operating_system) I also usually bring up Oberon and House given safe languages can handle low-level stuff if you turn off safety plus hide it in some module. http://www.projectoberon.com http://www.projectoberon.com http://programatica.cs.pdx.edu/House/ http://programatica.cs.pdx.edu/House/