JShell: An Interactive Shell for the Java Platform
summary
JShell brings a real REPL to the JDK (ships with JDK 9), claiming live evaluation of Java snippets without new syntax. It is built on javac and the JVM, runs code in a remote JVM via JDI so crashes don’t kill the shell, and exposes a reusable JShell API + command-line tool with an SPI for alternate execution engines. Interactive features include tab completion and an edit mode, startup imports, persistent settings, temporary variables for results, and limitations (no top-level package or static modifiers).
AI-written summary · about
chapters (16)
- 0:00Start
- 1:09Survey • Who has heard of JShell before this Devoxx?
- 1:39What is JShell?
- 3:26What is JShell NOT?
- 4:10Who wants JShell?
- 6:23With JShell: example
- 7:05Using the JShell tool
- 7:47Snippets
- 11:48set sub-commands
- 13:46Completion / Information / Control - snippet and command completion
- 15:52Line Editing (based on JLine 2.0) • Navigation - enters typed or history entry - navigate line and history
- 26:19JShell Guiding Principles
- 27:39JShell Architecture
- 29:48JShell module: JShell APIs, SPI, and library
- 39:57JDK 9/JShell Information
- 41:11The Team
related talks
45mJShell: An Interactive Shell for the Java Platform
41mJava9 and REPL. Forget debugging, welcome joy and productivity
31mJava9 and REPL Forget debugging, welcome joy and productivity
01h 34mLet's Start Java11 from the Beginning with JShell
48mInteractive Java Support to your tool
18mOverview of the Java Platform: Java 9, Java + Docker, and JVM Languages
31mA better Jupyter Experience for Java Developers - JTaccuino unveiled
50mThe Good, the Bad and the Ugly of Java API Design
