Clojure anywhere you want
p'lisp is a small Clojure made for a pocket calculator. It is one small library with a step
budget and a memory cap, so it also fits inside game engines, emulators and web
pages. Here is every place it runs, what works today, and what comes next.
ready you can install it and use it today.
next it runs, but it is not ready to install yet.
▶
Godot ready
Write game logic in p'lisp and change it while the game runs. Save the file and the next frame uses the
new code. A mistake prints an error and the game keeps going. The script editor gets colours, rainbow
brackets and parinfer. Builds for Windows, macOS and Linux are included, so you don't need Rust.
Get the plugin
Godot 4.5. Find it in the editor's AssetLib tab: search for p'lisp. The
five-minute guide walks through a demo
game with the player written in p'lisp.
▶
Unity next
Runs in the Unity editor on desktop. Save a script while the game plays and the next frame runs the new
code. Next: live eval from your editor, then a release you add by git URL with the native libraries built in.
See the code
Today it needs the native library built by hand. Then Package Manager can add it by git URL:
https://github.com/playplisp/plisp-unity.git?path=Packages/com.playplisp.plisp
Unreal next
A plugin for Unreal Engine 5. It runs in play-in-editor today, with script state in the Details panel,
events and input. Next: the first release, as a zip with a sample project.
Watch the repository
JavaScript engines ready
Script Three.js, Matter.js or any other JavaScript library from p'lisp, in the browser. The try-it page
runs a platformer built on Matter.js and Three.js that you change from a REPL while you play.
Play it in this browser
Install: npm install @playplisp/plisp. It is one small
WebAssembly module. Your page registers the functions a script may call, and a runaway loop stops at its
step budget instead of freezing the tab.
TIC-80 next
TIC-80 with one more cart language. p'lisp carts sit beside Lua and Fennel carts and use the same
sprite, map and sound editors. You can play the demo today; a build to install comes next.
Play the demo cart
It runs in your browser. Press Esc, then F1, to read and change the cart's code. The
guide shows a whole cart.
RetroArch ready
A libretro core that plays the calculator's apps and games on a PC, a Steam Deck or a Linux handheld
(muOS, Knulli, ROCKNIX, ArkOS). These are test builds: saves come next.
Download the core
One zip per device, with the core and a game. The
install guide covers each one.
Your terminal ready
A REPL, a script runner and the calculator simulator in one command.
brew install playplisp/tap/plisp
Then plisp opens a REPL, plisp game.clj runs a file and
plisp sim opens the simulator. Linux and Windows:
every way to install.
p'lisp sim ready
The calculator, simulated: same screen, same keys, same apps. Play the games, change their code and run
it again, right here on the site.
Play the simulator
Write your own app in the Workbench, or open the sim on your
desktop with plisp sim.
p'lisp calc next
Where p'lisp started: a pocket calculator you program in Clojure. The hardware is being built.
About the calculator
See where the hardware stands. Until it ships, p'lisp sim
runs every app.
Why not ClojureScript?
On the web, use ClojureScript. It is mature, fast and has the whole JavaScript world behind it. p'lisp is
for the places ClojureScript can't go: inside a C or C# game engine, a libretro core, a fantasy console or a
microcontroller with half a megabyte of RAM.
There is one more reason to use it on the web: running code you don't trust. Each p'lisp instance has its own
step budget and memory cap, and it can call only the functions you give it. So a ClojureScript app can host
p'lisp to run its users' scripts, mods or puzzle answers safely.
One language everywhere
The same p'lisp runs in every place on this page: the same reader, the same core functions, the same data.
A pure function you write in Godot runs on the calculator unchanged. The docs cover the
language, and the embedding guide shows how to put it in your own program from Rust,
C or JavaScript.
The code is MIT or Apache-2.0, as you choose. Questions or a host you'd like to see: hello@playplisp.com.