Pro DLR in NET 4 1st Edition by Chaur Wu – Ebook PDF Instant Download/Delivery: 978-1430230663, 1430230663
Full download Pro DLR in NET 4 1st Edition after payment

Product details:
ISBN 10: 1430230663
ISBN 13: 978-1430230663
Author: Chaur Wu
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.
Table of contents:
PART 1: DLR Fundamentals
Chapter 1: Introduction to DLR
-
Setting Up Code Examples
-
Software Requirements
-
Installing the DLR, IronPython, and IronRuby
-
Hello World Examples
-
Hello World from a Dynamic Language
-
Creating a “Hello” Language
-
Implementing REPL for the Hello Language
-
Practical Uses for the DLR
-
Application Scripting and DSL
-
XML Builder
-
Aspect-Oriented Programming
-
-
Runtime Concepts
-
Runtime vs. Run Time
-
Run Time vs. Compile Time
-
Dynamic vs. Static
-
Dynamic Typing
-
Dynamic Dispatch
-
-
Language
-
Programming Languages in Practice
-
Putting It Together
-
-
Summary
Chapter 2: DLR Expression
-
DLR Expression as a Language
-
Code as Data
-
A Common Denominator like CLR
-
Concrete Syntax and Serialization
-
Expressions vs. Statements
-
Expression Type and Kind
-
Binary Expressions
-
Flow Control Expressions
-
If-Then-Else, Switch
-
-
Scopes and Name Binding
-
Lexical vs. Dynamic Scope
-
BlockExpression and Lexical Scoping
-
-
Lambda Expressions and Closure
-
The GotoExpression Class
-
While Loops
-
Dynamic and Index Expressions
-
Expression Abstraction, Reduction, and Extension
-
Immutability and the Visitor Pattern
-
Visitor Pattern in General
-
Visitor Pattern in DLR Expression
-
Expression Visitor Examples
-
-
Summary
Chapter 3: Late Binding and Caching
-
Binding Concepts
-
Call Sites and Early vs. Late Binding
-
DLR Binders
-
-
Set Up Code Examples
-
Making a Debug Build for .NET 2.0
-
Developing for .NET 2.0 and .NET 4.0
-
CallSiteBinder Class and Call Sites
-
Binding Restrictions and Rules
-
Caching Techniques
-
Three Cache Levels (L0, L1, L2)
-
Creating Canonical Binders
-
-
Summary
Chapter 4: Late Binding and Interoperability
-
Language Interoperability
-
Static vs. Dynamic Objects
-
Logic in Binders vs. Dynamic Objects
-
-
Late-Bound Actions and Examples
-
Common Type System and Binder Hierarchy
-
Implementing Custom Binder
-
Interoperability Protocol
-
Summary
Chapter 5: Dynamic Objects
-
What is a Dynamic Object?
-
IDynamicMetaObjectProvider Interface
-
Dynamic Meta Objects
-
Binding Logic and Binding Result
-
-
DynamicObject Class and XML Builder
-
Summary
Chapter 6: DLR Hosting API
-
Life Without Hosting API
-
Static and Dynamic Language Scenarios
-
-
Overview of DLR Hosting API
-
Major Classes
-
Relationship with Binders and Dynamic Objects
-
Using Script Runtime
-
Configuration (Declarative and Programmatic)
-
-
Scripting an Object Model
-
Scopes and Variables
-
-
Advanced Usage
-
Compiling Code
-
Loading Assemblies
-
Creating Python Instances
-
-
Level Three Use
-
Script Host, Object Operations
-
Remote Script Runtime
-
.NET Remoting
-
-
Summary
PART 2: Applying the DLR
Chapter 7: DLR and Aspect-Oriented Programming
-
AOP Concepts (Advice, Join Points, Pointcuts)
-
Example and Test Run
-
Framework Implementation
-
Integration with Spring.NET AOP
-
Applying Advice to Dynamic and Static Objects
-
Summary
Chapter 8: Metaprogramming
-
Overview
-
Changing Class Definitions in Ruby, Python, and DLR
-
LINQ Query Provider
-
Implementing Query Classes
-
Data Access (Static, Dynamic, Generated)
-
-
Summary
Chapter 9: Stitch — A DSL for Hosting Languages
-
Motivation for Stitch
-
Syntax and Requirements
-
Stitch in Use
-
Language Hosting (DLR and Non-DLR)
-
Executing in Parallel
-
Grammar and Tooling (Eclipse, ANTLR)
-
Stitch Runtime
-
Script Engine, Execution Coordinator
-
Script Runner and Plug-In
-
-
Example: PowerShell Plug-In
-
Summary
Chapter 10: Application Scripting
-
Ball World Example
-
Software and Architecture
-
Application Object Model and Physics Engine
-
UI and Scripting
-
Summary
Chapter 11: DLR in Silverlight
-
Client-Side Web Scripting
-
Hosting and Using Gestalt Components
-
Scripting HTML and XAML
-
Building Hello Console in Silverlight
-
Summary
Chapter 12: Dynamic Languages on JVM
-
Overview and Comparisons
-
Hosting Python and Ruby in Java
-
BoolScript Example
-
Engine, Grammar, Compilation
-
Running as Invocable Functions
-
-
Summary
People also search for:
pro dlr in net 4
b pro dog box
d-pro forum
d-pro download
d-pro software


