What's the difference between RyuJIT and Roslyn?

myfunnyfella picture myfunnyfella · Jul 13, 2016 · Viewed 7.9k times · Source

I understand that RyuJIT is a quicker compiler than JIT. But is it the new standard for the .NET 4.6 or is that Roslyn?

Or is it that Roslyn is used when you need to expose APIs during the compilation process?

I'm confused between their purposes and what frameworks they'll be found in. Can someone explain the difference & when you want one over the other, please?

Answer

Dudi Keleti picture Dudi Keleti · Jul 13, 2016

Roslyn is the compiler that compiles your code (C# or VB) to IL.

RyuJIT is a Just In Time compiler that compiles your IL to native code.

Both of them are now open source.

Roslyn

RyuJIT, Tutorial

Roslyn API is what you need if you want to play with syntax tree, compilation, and semantic model.

RyuJIT doesn't have a public API.