Book description
Dynamic Language Runtime (DLR) in .NET is a framework for designing and interacting with dynamic languages such as Python and Ruby. For the first time, the DLR places such languages on an equal footing in the .NET world with compiled languages such as C# and VB.NET. Chaur Wu's book, Pro DLR in .NET 4, introduces you to this important new framework, helping you to take practical advantage of the DLR in your day-to-day work.
Pro DLR in .NET 4 begins with the fundamentals of the DLR, showing how they work to provide interoperability support for dynamic languages. You'll learn to mix and match objects and functions from compiled and dynamic languages such as C# and Python, allowing you to take advantage of the right tool at the right time for the right task.
The DLR also brings new flexibility and possibility to your software application design. Pro DLR in .NET 4 shows you how to host dynamic languages in your application, enabling users to write scripts to automate tasks. You'll understand the meta-object protocol and meta-programming capabilities. These reside at the core of DLR, bringing new possibilities to the design and architecture of .NET applications.
Comprehensive coverage of an important new .NET technology
Meets the needs of programmers wanting to apply dynamic languages such as Python and Ruby in their .NET solutions
Assists language developers in supporting their languages under .NET.
Table of contents
- Cover Page
- Title Page
- Copyright
- Dedication
- Contents at a Glance
- Contents
- About the Author
- About the Technical Reviewer
- Acknowledgments
- Introduction
-
PART 1: DLR Fundamentals
- CHAPTER 1: Introduction to DLR
-
CHAPTER 2: DLR Expression
- DLR Expression as a Language
- Expressions vs. Statements
- Expression Type and Kind
- Binary Expressions
- Flow Control Expressions
- Scopes and Name Binding
- Lambda Expressions and Closure
- The GotoExpression Class
- While Loops
- Dynamic Expressions
- Index Expressions
- Expression Abstraction, Reduction and Extension
- Immutability and the Visitor Pattern
- Summary
- CHAPTER 3: Late Binding and Caching
- CHAPTER 4: Late Binding and Interoperability
- CHAPTER 5: Dynamic Objects
-
CHAPTER 6: DLR Hosting API
- Life Without the DLR Hosting API
- Overview of the DLR Hosting API
- Using Script Runtime to Execute Code
- Configuring the Languages You Want to Speak
- Scripting an Object Model
- Script Scopes
- Value and Reference Variables
- Level Two Use of the DLR Hosting API
- Level Three Use of the DLR Hosting API
- .NET Remoting Quick Tour
- Running Script Runtime in a Separate Process
- Summary
-
PART 2: Applying the DLR
- CHAPTER 7: DLR and Aspect-Oriented Programming
- CHAPTER 8: Metaprogramming
- CHAPTER 9: Stitch — A DSL for Hosting Languages
- CHAPTER 10: Application Scripting
-
CHAPTER 11: DLR in Silverlight
- Different Client Side Web Scripting Approaches
- Apache HTTP Server Configurations
- Using the Hosted Gestalt Components
- Hosting the Gestalt Components
- Dissecting the Gestalt Components
- Scripting HTML
- Scripting XAML
- DLR Settings
- Speak Your Own Language in Silverlight
- The Hello Language
- Hello Console in Silverlight
- Gestalt-like Hello Console on Silverlight
- Summary
- CHAPTER 12: Dynamic Languages on JVM
- Index
Product information
- Title: Pro DLR in .NET 4
- Author(s):
- Release date: December 2010
- Publisher(s): Apress
- ISBN: 9781430230663
You might also like
book
Metaprogramming in .NET
Metaprogramming in .NET is designed to help readers understand the basic concepts, advantages and potential pitfalls …
book
DevSecOps for .NET Core: Securing Modern Software Applications
Automate core security tasks by embedding security controls and processes early in the DevOps workflow through …
book
Pro .NET 5 Custom Libraries: Implementing Custom .NET Data Types
Leverage .NET 5, Microsoft’s bold new cross-platform implementation, for developing your very own cross-platform custom data …
book
Professional C# 7 and .NET Core 2.0, 7th Edition
The professional’s guide to C# 7, with expert guidance on the newest features Professional C# 7 …