I’m thinking about possibly designing/building a language at some point, and what are the advantages, disadvantages, and difficulties of writing it to run on the .NET framework/CLR?
I’m thinking about possibly designing/building a language at some point, and what are the
Share
The hardest part will be designing an effective programming language. Many people have dedicated their entire careers to the task. Since there have been many questions on here about language design and general parsing questions, I’ll focus specifically on the aspect of targeting the CLR.
Advantages
System.Reflection.Emitnamespace and the awesome newSystem.Linq.Expressionsabilities in .NET 4.0. This setup is one of the leading motivators in my personal desire to target the CLR.Disadvantages
Difficulties (Not counting the language and compiler front-end)
Summary
The CLI is a great option for people working on new language implementations. It allows you to take your mind off the common compiler back-end and focus on the semantics of the language itself. I might not recommend someone create a new language, but if you decide to, the CLI will be a good friend on your journey.