17-01-2012, 04:35 PM
DYNAMIC LANGUAGE
DYNAMIC LANGUAGE.pptx (Size: 456.58 KB / Downloads: 44)
Introduction
is a term used broadly in computer science
execute at runtime
modifying the type system, all during program execution
Static vs. Dynamic Languages
Static Languages
Type safety
Compile-time checking
Runtime performance
Syntactic Sugar
Dynamic Languages
Late bound
Loosely typed
Highly expressive
Features
High Level Features
Built in Data Types
The two universal data types are lists and strings
Most dynamically typed languages also provide support for dictionaries and
sets.
Hosting API
Script Runtime
Starting point for hosting
Represents global script state
Bound scopes
Constructed with Script Runtime Setup,
Script Engine
Represents a DLR language implementation
One engine, per-language, per-runtime which uses configuration settings
Advantages
Provide extensibility (the obvious answer)
Replace complicated XML configuration with meaningful code
Remove clutter from core application logic
Maintain transient logic outside of core application code
Disadvantages
Performance
Debugging
Code completion
Types as documents
Conclusion
Functional programming concepts are used.
The assertion that a language is dynamic is more an assertion about the ease of use of dynamic features than it is a clear statement of the capabilities of the language.