Pro DLR in .NET 4

This document was uploaded by one of our users. The uploader already confirmed that they had the permission to publish it. If you are author/publisher or own the copyright of this documents, please report to us by using this DMCA report form.

Simply click on the Download Book button.

Yes, Book downloads on Ebookily are 100% Free.

Sometimes the book is free on Amazon As well, so go ahead and hit "Search on Amazon"

Microsoft's Dynamic Language Runtime (DLR) is a platform for running dynamic languages such as Ruby and Python on an equal footing with compiled languages such as C#. Furthermore, the runtime is the foundation for many useful software design and architecture techniques you can apply as you develop your .NET applications.

Pro DLR in .NET 4 introduces you to the DLR, showing how you can use it to write software that combines dynamic and static languages, letting you choose the right tool for the job. You will learn the core DLR components such as LINQ expressions, call sites, binders, and dynamic objects—and how they work together to achieve language interoperability. You'll see how to mix and match objects and functions from compiled and dynamic languages, so you can write code in the language of your choice while taking advantage of libraries written in other languages. And you'll discover how the various languages interoperate behind the scenes.

With the basics out of the way, the book then details the various ways you can leverage the DLR in the design and architecture of your software applications. You'll learn about runtime code generation, which lets you avoid much of the boilerplate code typical in layered business applications. You'll see practical examples of using the DLR to build domain-specific languages, and you'll learn how the DLR helps enable aspect-oriented programming.

Author(s): Chaur Wu (auth.)
Edition: 1
Publisher: Apress
Year: 2010

Language: English
Pages: 328
Tags: Computer Science, general; Programming Languages, Compilers, Interpreters

Front Matter....Pages i-xviii
Front Matter....Pages 1-1
Introduction to DLR....Pages 3-25
DLR Expression....Pages 27-63
Late Binding and Caching....Pages 65-86
Late Binding and Interoperability....Pages 87-107
Dynamic Objects....Pages 109-131
DLR Hosting API....Pages 133-161
Front Matter....Pages 163-163
DLR and Aspect-Oriented Programming....Pages 165-183
Metaprogramming....Pages 185-210
Stitch — A DSL for Hosting Languages....Pages 211-238
Application Scripting....Pages 239-250
DLR in Silverlight....Pages 251-273
Dynamic Languages on JVM....Pages 275-296
Back Matter....Pages 297-305