views:

121

answers:

6

I'm looking for books and literature on the inner workings of the CLR (and/or possibly the DLR), my long time goal is to implement a simple language on the CLR.

+2  A: 

I would imagine the source code for Mono might have something to say about that. The C# compiler is itself written in C#, and source code is available.

Robert Harvey
+4  A: 

A few starters for the CLR:

The DLR itself is Open Source, and its documentation is pretty handy.

Jon Skeet
CLR via c# is very very good.
RichardOD
A: 

I'm not sure about the DLR, but here's some open source .NET languages that you can look at the source code for to see how they do it:

  • Boo - A Python-like language
  • LOLCode - Pretty much a joke, but it could still provide some info for you

I'll post more if I can remember any others...

mc2thaH
+1  A: 

IronPython and IronRuby are open source implementations on top of the DLR (itself open sourced on Codeplex); and some IronPython releases included a ToyScript language which was meant to serve as an example for general DLR language implementation -- it may still be part of the DLR bundle these days.

Steve Gilham
+2  A: 

Irony - .NET Language Implementation Kit.

QrystaL
A: 

Expert .NET 2.0 IL Assembler could also be useful as it describes a lot of the details for .NET applications.

Brian Rasmussen