Skip to main content
grasp.study
About
Explore
Pricing
Log in
Try it for free
Back to course
👋
Welcome to a Grasp lesson
Create a free account
to keep studying and create your own study path.
Programming Language History & Theory
·
Module 7
Evaluation Strategies and Laziness
1
Call-by-Value vs. Call-by-Name: A Historical Perspective
Contrast call-by-value and call-by-name evaluation, citing historical examples like Algol 60 and their influence on modern languages.
2
Eager vs. Lazy Evaluation: Python & Haskell
Distinguish eager evaluation from lazy evaluation, comparing default strategies in languages like Python versus Haskell.
3
Evaluation Strategies: Scheme vs. Haskell
Analyze how evaluation strategies affect program behavior, termination, and side effects using comparative examples from Scheme and Haskell.
4
Lazy Streams: Haskell vs. Python Generators
Implement and process infinite data structures (streams) using lazy evaluation, comparing Haskell's native support with Python's generators.
5
Call-by-Need vs. Explicit Memoization
Explain how call-by-need evaluation (in Haskell) provides implicit memoization, and contrast this with explicit memoization techniques in eager languages.
6
Evaluation Strategy Trade-offs
Identify performance trade-offs of evaluation strategies, such as space leaks in lazy languages and redundant computation in eager ones.
Previous module
Algebraic Data Types and Pattern Matching
Next module
Programming Paradigms in Context