REPL

A REPL (read-eval-print loop) is an interactive programming environment that executes each piece of code as it is entered, shows the result, and waits for the next input.

1 articleLast mentioned

A REPL (read-eval-print loop) is an interactive programming environment that repeatedly reads the code a user enters, evaluates it, prints the result, and waits for the next input. The name originates from Lisp in the 1960s, and many programming languages, including Python, JavaScript (Node.js) and Ruby, ship with a REPL.

State such as variables and functions stays in memory for as long as the session runs, so code can be entered a little at a time and its result checked immediately. This distinguishes a REPL from writing a complete program and running it all at once.

In AI, a REPL is often given to an agent as the tool for running code the model writes. Variables created in one execution remain available in the next, which suits multi-step data processing.

This entry is based on AIPOST articles and widely known facts. If something is wrong, please send us a correction request.

Articles covering this entry

  • Claude Code's Code Mode Runs Tools From JavaScript and Trims Token CostsAI in Practice ·

    REPL stands for read-evaluate-print loop.

    Read article

Found a mistake or missing an entry?

Wiki entries are based on AIPOST articles and widely known facts. If an entry is wrong, send us a correction request and we will check and fix it. Names from new articles are added to the wiki after the article is published.