-
DescriptionI would have the idea to improve the CLR performance technically still something. Reference Counting is no longer 2021, why don't we use an ownership system for the CLR. ConfigurationGeneral issue / not important Regression?I think not. Data
AnalysisYou could migrate the project to Rust. You can also migrate only subprojects that make a lot of difference in terms of performance. Rust has builtin FFI support. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label. |
Beta Was this translation helpful? Give feedback.
-
You may be surprised that CLR hasn't fully migrated to C++. It was started written before 1999, even before the first C++ standard. There are still many C-style snippets.
Ownership isn't perfect. It can't handle long-lived objects well. I'm not seeing CLR bothered by object lifetime. In my sights, Rust isn't suitable for CLR. CLR is manipulating the exact memory layout of objects and registers. And it must be unsafe across managed-unmanaged boundary. |
Beta Was this translation helpful? Give feedback.
dotnet/csharplang#3860 (comment)