liveBook · Manning

REPL

Also called read-eval-print loop, read-evaluate-print loop

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.

How 6 Manning books explain it

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.

Read how Learn Haskell by Example explains REPL →

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.

Read how Julia as a Second Language explains REPL →

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.

Read how Clojure: The Essential Reference explains REPL →

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

What to know first

Related concepts

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.