REPL
A read-eval-print loop is an interactive programming environment that repeatedly reads input, evaluates or executes it, displays the result, and awaits further input.
A Pythonic Adventure: From Python basics to a working web app
A REPL is an interactive programming environment that repeatedly reads input, evaluates it, displays results, and waits for more input.
- How it is used
- Uses interactive Python to test expressions, inspect values, and try functions quickly.
- How deep it goes
- Explains the read–evaluate–print cycle through prompts and examples, but stops short of implementation internals.
- Examples
- Demonstrates print, arithmetic, string length, list length, repeated strings, and a menu-divider calculation.
- What you can do after
- Apply it via Mu editor to test Python expressions, inspect values, and check functions before using them in a program.
Read how A Pythonic Adventure: From Python basics to a working web app explains REPL →
F# in Action: A Revised Edition of Get Programming with F#
A read-eval-print loop is an interactive environment that repeatedly reads source expressions, evaluates them, and prints their results.
- How it is used
- Supports rapid exploration of business logic, domain models, data, production code, and third-party packages before application integration.
- How deep it goes
- Explains ad hoc evaluation, immediate feedback, persistent state, and execution order, but stops short of implementation internals.
- Examples
- Uses FSI bindings, interpolated strings, reusable order data, price calculations, grouping, validation, and exploratory package work.
- What you can do after
- Apply it via F# Interactive to prototype rules, inspect data, test code, and refine experiments before moving results into applications.
Read how F# in Action: A Revised Edition of Get Programming with F# explains REPL →
Learn Haskell by Example
An execution mode in which program expressions or commands are entered and evaluated incrementally.
- How it is used
- Uses GHCi to prototype Haskell code, inspect evaluations, and experiment with syntax before completing a project.
- How deep it goes
- Demonstrates launching GHCi, loading project definitions, evaluating expressions, binding names, annotating types, and defining functions.
- Examples
- Uses arithmetic bindings, typed integers, the `square` function, and multi-line definitions as interactive demonstrations.
- What you can do after
- Apply it via GHCi and Stack to evaluate expressions, test bindings, inspect types, and prototype Haskell functions.
Julia as a Second Language
The Julia REPL is Julia's interactive read-evaluate-print loop for entering expressions and viewing their results.
- How it is used
- Uses the Julia REPL for interactive experimentation, testing, debugging, documentation lookup, and software installation.
- How deep it goes
- Explains startup, expression evaluation, Tab completion, Unicode entry, and basic hotkeys.
- Examples
- Demonstrates calculator expressions, function-name completion, and typing π with Tab.
- What you can do after
- Operate the Julia REPL to evaluate expressions, find function names, enter Unicode characters, and interrupt or exit a session.
Clojure: The Essential Reference
A REPL is an interactive programming environment that repeatedly reads input, evaluates it, and prints the result.
- How it is used
- Provides interactive evaluation and a foundation for building specialized command-line tools.
- How deep it goes
- Explains the loop and demonstrates initialization, prompting, reading, parsing, and evaluation without detailing internal implementation.
- Examples
- Uses a calculator with named arithmetic functions and a parser for expressions such as 2*3.
- What you can do after
- Build it from scratch as a customized Clojure REPL with tailored startup, prompt, input, and evaluation behavior.
Functional Programming in Scala, Second Edition
A read-eval-print loop is an interactive environment that repeatedly reads an expression, evaluates it, prints the result, and prompts for another expression.
- How it is used
- Supports interactive experimentation, source-file loading, scripting, and quick checks while programming in Scala.
- How deep it goes
- Defines the read-evaluate-print cycle and demonstrates loading and calling code, but does not explain interpreter internals.
- Examples
- Uses string reversal, mutable StringBuilder behavior, source-file loading, and an absolute-value call to illustrate interactive evaluation.
- What you can do after
- Operate the Scala interpreter to enter expressions, load definitions, inspect typed results, and exit the session.
Read how Functional Programming in Scala, Second Edition explains REPL →
Also covered in
- Data-Oriented Programming: Reduce software complexity
- Build Your Own Robot: Using Python, CRICKIT, and Raspberry Pi
- Practices of the Python Pro
- Systems Programming with ZigIn early access (MEAP)
- Statistics Slam Dunk
- Django in Action
- Podman in Action: Secure, rootless containers for Kubernetes, microservices, and more
- Type-Driven Development with Idris
- The Quick Python Book, Fourth Edition
- Learn AI-Assisted Python Programming, Second Edition
- AI Agents and Applications
- Functional Programming in C#, Second Edition
What to know first
- PythonPython is a high-level, general-purpose, dynamically typed programming language with readable syntax and support for multiple programming paradigms.
- JSONJSON is a language-independent text-based data-interchange format that represents structured values using objects, arrays, strings, numbers, booleans, and null.
- shell scriptA shell script is a text program containing commands interpreted and executed by a command-line shell.
- ClojureClojure is a dynamically typed, functional Lisp-family programming language that runs primarily on the Java Virtual Machine and also supports other platforms.
Related concepts
- interactive programmingused by · Interactive programming is a programming style that supports entering, evaluating, and revising code incrementally during an ongoing session.
- command-line interfacekind of · A command-line interface is a text-based interface through which users or programs invoke software or system operations by entering commands and receiving output.
- data explorationused by · Data exploration is the systematic examination and summarization of data to understand its structure, distributions, relationships, patterns, anomalies, and quality.
Questions about REPL
What is REPL?
A read-eval-print loop is an interactive programming environment that repeatedly reads input, evaluates or executes it, displays the result, and awaits further input.
Which Manning books explain REPL?
A Pythonic Adventure: From Python basics to a working web app, F# in Action: A Revised Edition of Get Programming with F#, Learn Haskell by Example, Julia as a Second Language, Clojure: The Essential Reference and Functional Programming in Scala, Second Edition.
What should I know before learning REPL?
Manning books that teach REPL usually introduce Python, JSON, shell script and Clojure first.
What is REPL a kind of?
REPL is a kind of command-line interface. A command-line interface is a text-based interface through which users or programs invoke software or system operations by entering commands and receiving output.
What is REPL also called?
REPL is also called read-eval-print loop or read-evaluate-print loop.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.





