Tag

lazy-evaluation

0 views collected around this technical thread.

Test Development Learning Exchange
Test Development Learning Exchange
May 17, 2025 · Fundamentals

Understanding Python Generator Functions: Syntax, Usage, and Practical Examples

Python generator functions, using the yield keyword, enable lazy evaluation and memory-efficient data processing, with examples covering basic syntax, differences from regular functions, Fibonacci sequence generation, large file reading, two-way communication via send(), and control methods like throw() and close(), highlighting their advantages.

GeneratorIteratorsMemory Efficiency
0 likes · 4 min read
Understanding Python Generator Functions: Syntax, Usage, and Practical Examples
Code Mala Tang
Code Mala Tang
Apr 22, 2025 · Fundamentals

Unlock Python’s itertools: The Swiss‑Army Knife for Efficient Data Pipelines

This article introduces Python’s built‑in itertools module, explains its infinite, finite, and combinatorial iterator utilities, demonstrates advanced techniques like grouping and pipeline construction, and compares its lazy evaluation memory benefits to traditional list comprehensions for large‑scale data processing.

Data ProcessingFunctional ProgrammingIterator
0 likes · 10 min read
Unlock Python’s itertools: The Swiss‑Army Knife for Efficient Data Pipelines
Wukong Talks Architecture
Wukong Talks Architecture
Jul 29, 2024 · Backend Development

Understanding the Java Stream Pipeline: Implementation Principles and Execution Process

This article explains the internal workings of Java's Stream API pipeline, covering how intermediate and terminal operations are recorded, combined, and executed via stages and Sink interfaces, illustrating lazy evaluation, stateful vs stateless operations, and the mechanisms behind parallel and sequential processing.

Intermediate OperationsJavaSink
0 likes · 21 min read
Understanding the Java Stream Pipeline: Implementation Principles and Execution Process
php中文网 Courses
php中文网 Courses
Jun 14, 2024 · Backend Development

Understanding PHP Generators: Efficient Data Iteration and Memory Optimization

This article explains the concept, operation, and advantages of PHP generators, demonstrating how they provide memory‑efficient, lazy‑evaluated iteration for large data sets and streams, and includes practical code examples and best‑practice tips for backend developers.

GeneratorsIteratorsMemory Management
0 likes · 9 min read
Understanding PHP Generators: Efficient Data Iteration and Memory Optimization
Java Captain
Java Captain
Mar 25, 2024 · Backend Development

Constructing Streams in Java 8: Methods and Examples

Java 8’s Stream API introduces a declarative, lazy-processing model for collections, and this article details multiple ways to create streams—including from collections, arrays, static factory methods, files, generators, and iterators—providing code examples and explanations to help developers harness its expressive and efficient data‑handling capabilities.

CollectionsFunctional ProgrammingJava
0 likes · 5 min read
Constructing Streams in Java 8: Methods and Examples
Test Development Learning Exchange
Test Development Learning Exchange
Dec 11, 2023 · Fundamentals

10 Practical Scenarios Demonstrating Lazy Evaluation and Infinite Sequence Handling in Python

This article presents ten practical Python examples illustrating lazy evaluation using generators and iterators, covering infinite sequences, large data processing, file streaming, and on-demand computation, highlighting memory efficiency and performance benefits for handling big data and infinite streams.

GeneratorsInfinite SequencesMemory Efficiency
0 likes · 7 min read
10 Practical Scenarios Demonstrating Lazy Evaluation and Infinite Sequence Handling in Python
Test Development Learning Exchange
Test Development Learning Exchange
Aug 3, 2023 · Fundamentals

10 Practical Scenarios of Lazy Evaluation and Infinite Sequences in Python

This article explains lazy evaluation in functional programming and presents ten Python code examples that demonstrate how generators and iterators can efficiently handle infinite sequences and large‑scale data by computing values only when needed.

GeneratorsInfinite SequencesMemory Efficiency
0 likes · 7 min read
10 Practical Scenarios of Lazy Evaluation and Infinite Sequences in Python
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Oct 13, 2022 · Fundamentals

Lazy Evaluation, Thunks, and Generators in JavaScript Functional Programming

This article explores how closures, currying, pure functions, thunks, and ES6 generators enable lazy evaluation in JavaScript, illustrating the concepts with code examples and showing how they can reduce unnecessary computation, control execution order, and even create infinite sequences.

ClosuresCurryingFunctional Programming
0 likes · 11 min read
Lazy Evaluation, Thunks, and Generators in JavaScript Functional Programming
Tencent Cloud Developer
Tencent Cloud Developer
Jun 20, 2022 · Fundamentals

Understanding C++ LINQ and Ranges Pipeline Implementation

The article explains how a C++ LINQ‑style pipeline, built on concepts like _Can_pipe and composable _Pipeline classes, provides lazy, type‑safe range operations using the pipe operator, serving as the foundation for the C++20 ranges library and future execution framework.

C++ LINQC++20 RangesFunctional Programming
0 likes · 10 min read
Understanding C++ LINQ and Ranges Pipeline Implementation
Sohu Tech Products
Sohu Tech Products
Apr 7, 2021 · Fundamentals

Functional Programming in Swift: Concepts, Benefits, and Practical Examples

This article explains functional programming concepts, their importance, and how to apply them in Swift through high‑order functions, lazy evaluation, custom operators, and composable image‑filter pipelines, while also addressing common pitfalls such as nested callbacks and OCP violations.

Functional ProgrammingHigher-order FunctionsRxSwift
0 likes · 19 min read
Functional Programming in Swift: Concepts, Benefits, and Practical Examples
NetEase Cloud Music Tech Team
NetEase Cloud Music Tech Team
Nov 6, 2020 · Fundamentals

Pure Functions, Functors, and Applicative Functors with LazyBox in JavaScript

The article introduces pure functions and shows how JavaScript functors like Box can lazily transform values with map, uses LazyBox to defer side effects until fold, then extends the concept to applicative functors and Either for composable validation via ap and liftA2 helpers.

Functional ProgrammingJavaScriptValidation
0 likes · 20 min read
Pure Functions, Functors, and Applicative Functors with LazyBox in JavaScript
Youzan Coder
Youzan Coder
Sep 21, 2018 · Fundamentals

First Encounter with Lazy List: Implementing Lazy Evaluation in JavaScript

The article explains Haskell‑style lazy lists, shows why lazy evaluation is useful, and walks through implementing lazy lists in JavaScript using custom classes, the ES6 iterable protocol, and generator functions, providing examples such as repeat, cycle, iterate, range and lazy operators like map, filter, take, and zip.

ES6Functional ProgrammingGenerator
0 likes · 10 min read
First Encounter with Lazy List: Implementing Lazy Evaluation in JavaScript