Skip to content

Question: Should .Net remove dependency on the C runtime? #12895

@The-Futurist

Description

@The-Futurist

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:

  1. Code could behave differently or compute different results on different platforms.
  2. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-VM-coreclrquestionAnswer questions and provide assistance, not an issue with source code or documentation.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions