E-Ink News Daily

Back to list

Generators in lone lisp

The article introduces a new generator implementation in Lone Lisp, explaining why the language developers chose to create a dedicated generator type rather than building on top of delimited continuations. The author argues that while delimited continuations are powerful, they're too heavy for iteration tasks due to performance costs like memory copying. Generators are presented as a simpler, more efficient alternative for handling iteration and infinite sequences.

Background

Lone Lisp is a Lisp dialect that previously implemented delimited continuations, which are powerful control flow abstractions but can be computationally expensive for certain use cases like iteration.

Source
Lobsters
Published
Mar 23, 2026 at 11:04 PM
Score
5.0 / 10