|
From: Mike B. <mi...@fr...> - 2004-03-07 20:45:21
|
I'm beginning a project to create a .NET mini-language for performing data transformations. I'm currently debating which of following would be best: A) compile the language into a data structure that is used by a runtime engine to perform the transformations B) compile the language into C# code that performs the transformations (after a second compilation) C) compile the language directly to MSIL that performs the transformations Here's a breakdown of how I see these approaches comparing based on 3 criteria: ease of implementation, execution speed, and compilation speed Option Implementation execution compilation ------------------------------------------------- A easy slow fast B medium fast slow C hard fast medium I'm currently leaning towards C, because a) it appears to have the best trade off between execution and compilation speed b) it is the approach taken by XSLTC (albeit in Java) and NMock, and c) it sounds like fun. Would the designers of NMock care to share their thoughts on that decision? How hard has it been do create a MSIL generator? What issues did you run into? How fun has it been? Mike Bresnahan |