-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Closed
Labels
area-VM-coreclrquestionAnswer questions and provide assistance, not an issue with source code or documentation.Answer questions and provide assistance, not an issue with source code or documentation.
Milestone
Description
This is just a question because I was surprised to learn that .Net does not implement it's own mathematical library. For example Math.Pow() relies on the C runtime which could behave differently on different platforms.
There are in fact two problems with this approach:
- Code could behave differently or compute different results on different platforms.
- The runtime used by the compiler (at compile time) is not guaranteed to be the same at runtime.
Each of these strikes me as a risk, particularly in compute heavy applications like navigation, machine learning, IoT and so on.
So, do others agree? is it time that the C runtime was dumped and a solid implementation of that same code was created in C# and made part of the BCL? How much effort would this be? could the C runtime source code more or less be "hand translated" into C#?
For those interested I found an example of an implementation source code here.
aloisdg and Unknown6656
Metadata
Metadata
Assignees
Labels
area-VM-coreclrquestionAnswer questions and provide assistance, not an issue with source code or documentation.Answer questions and provide assistance, not an issue with source code or documentation.