I know the “Sales pitch” answer is yes to this question, but is it technically true.
The Common Language Runtime (CLR) is designed as an intermediate language based on Imperative Programming (IP), but this has obvious implications when dealing with Declarative Programming (DP).
So how efficient is a language based on a different paradigm than the Imperative Style when implemented in the CLR?
I also get the feeling that the step to DP would incur an extra level of abstraction that might not model at all performant, would this be a fair comment?
I have done some simple tests using F# and it all looks great, but am I missing something if the programs get more complex?
At the end of the day, all programming languages are compiled into the native machine code of the CPU they’re running on, so the same questions could be asked of any language at all (not just ones that compile to MSIL).
For languages that are essentially just syntatic variants of each other (e.g. C# vs. VB.NET) then I wouldn’t expect there to be much difference. But if the languages are too divergent (e.g. C# vs. F#) then you can’t really make a valid comparison because you can’t really write two “equivalent” non-trivial code samples in both languages anyway.