Install apps yourself
For: Anyone who wants to try an app someone shared, or share their own outside the site.
A p'lisp app is a few plain Clojure files. You can get them from anywhere: a friend's Git repo, a zip on a forum, a gist, a USB stick. Nobody has to approve an app, and nothing about it goes through us. This page shows how to install one, how to share your own, and how to remove one.
You need the plisp command. The install steps cover Homebrew, apt, Chocolatey, Scoop and a plain download.
1. Install an app
Point plisp device install at the file with the app's defapp:
$ plisp device install cave-run/src/me/cave_run.clj
Installed Cave Run (me/cave-run, 24.3 KB) on sim.
sha256-6d78184627ae0bd086d1575a4e13070d0e87f9035fc128b3611ae7bec402718b
plisp sim opens the simulator with it in the menu.
The command finds the other files the app requires by their ns names, the same way plisp game.clj does: next to the file, and from the folder its ns name says is the top. It checks that every file reads, then keeps one copy of the whole app. The long line is the app's name by content: two people with the same line have exactly the same app.
Open it with plisp sim. The app is in the menu, beside the built-in ones, every time you open the simulator until you remove it. The simulator's menu holds four installed apps at a time (three when plisp sim FILE opens a program of yours too). With more installed, it shows the newest and says so.
2. See what is installed
$ plisp device apps
NAME ID SIZE
Cave Run me/cave-run 24.3 KB
Counter my/counter 1.2 KB
plisp device list shows the devices the command can reach.
3. Update or remove an app
Install the new files the same way. When the app's :id is already there, the command asks before it replaces it. If nothing changed, it says so and leaves it alone.
$ plisp device uninstall cave-run
Remove Cave Run (me/cave-run) from sim? [y/N] y
Removed Cave Run (me/cave-run) from sim.
Name the app by its id (me/cave-run), the part after the slash (cave-run) or its name (Cave Run). In a script, add --yes; with no terminal and no --yes, the command stops and changes nothing.
On the calculator, removing an app will never remove its saves. They stay until you delete them yourself in My apps, which asks twice. (The simulator keeps no saves between runs.)
4. Share your own app
Give your defapp an :id that is yours: a name of your own, a slash and the app's name, in lower case, like :me/cave-run. The command needs one, so the app keeps its place and its saves. Ids that start with plisp/ or system/ belong to the calculator, and the command refuses them.
(defapp cave-run
{:id :me/cave-run :name "Cave Run"
:input #{:raw} :uses #{:sound}})
Then share the folder however you like: a Git repo, a zip, a gist for a one-file app. Tell people which file to install. A short README with the line plisp device install src/me/cave_run.clj is enough.
The calculator can only run the Clojure that p'lisp supports. plisp check FILE lists anything in a file that it does not, with the line, before you share it.
5. Before you install someone's app
An app is source code, so you can read every line before you install it. An installed app is an app like any other: it gets what its defapp asks for in :uses, and no app can install, read or send other apps.
6. Calculators and classrooms
Today the command installs into the simulator. Installing onto a calculator over USB will use the same words, plisp device install, once calculators ship. With one plugged in, -s picks the device and plisp device list shows its serial.
Next on the calculator: My apps lists every installed app with its size and removes the ones you pick, and Send app passes an app to a friend's calculator over a USB-C cable. Your friend sees what it is and accepts it on their own screen.
For teachers: the Exam Edition accepts no installed apps at all. Exam mode for classroom calculators is not built yet, so for now an installed app is like any other app.
Questions: hello@playplisp.com.