Parens: Simulate in Lisp

Common Lisp, your 2nd language

Free · In‑App Purchases · Designed for iPad. Not verified for macOS.

Set particles, the Game of Life, and 3D waves in motion with Lisp code, and redefine functions while they run. Lessons and 388 auto-graded problems. Units 1-3 are free. Parens teaches Common Lisp as a second language to developers who already know another one, by having them build simulations. The app draws the scene data your Lisp code returns, frame by frame, and when you redefine a function while it runs, the next frame changes. Learn the language with lessons and auto-graded problems, then use it to set 2D shapes, physics, and 3D scenes in motion. Simulation Lab - 2D: draw circles, rectangles, lines, polygons, ellipses, Bézier curves, text, pixel grids, and SF Symbols pictures, group shapes to move and turn them together, and roll balls and boxes with SpriteKit physics. Add gradients, dashed lines, and trail and glow effects, or draw with turtle graphics (forward, right, arc) as in Python's turtle. - 3D: draw boxes, spheres, cylinders, and meshes you build yourself with RealityKit, and drop them with 3D physics. The camera and lights are set from Lisp code too. - Input: your Lisp code receives touch, Apple Pencil (pressure and tilt), and hardware keyboard input. - Gallery: all 27 examples, including fireworks, boids, pendulum wave, L-system, turtle flower, campfire, fluid, vortex street, lid-driven cavity, backward step, sorting, maze, the Mandelbrot set, orbits, double pendulum, physics boxes, the pen brush, cube wave, and the 3D physics tower, are free to run, and the particles, Game of Life, fractal tree, and turtle spiral examples show their code too. - With Track D you can edit the code of every example, write and save your own simulations, and share a run as a picture or a video of up to 10 seconds. How you learn - Runnable examples on every card: lessons are split into short cards, and every card has examples you can run and edit in place. - Side by side with a language you know: see the same idea written in Python, JavaScript, or Swift next to the Lisp. - 388 auto-graded problems: solutions are graded against hidden test cases, and when one fails you see the input, the expected value, and what you got. Three-step hints, and other solutions once you pass. - A REPL that feels like Lisp: when an error happens, pick a restart to carry on or back out, with structural editing that moves and wraps by parentheses, plus completion. - Unit map: finishing a unit opens the next one. - Already know some? Take the placement test: ten questions check whether you know units 1 and 2, and skip the ones you do. What's inside 13 units and 145 lessons in all. - Free: 1 Getting Started, 2 Lists and Data, 3 Functions and Control Flow - Track A, Functions and Data: 4 Higher-Order Functions and Closures, 5 Data Structures and Output, 6 Iteration - Track B, Macros, Objects, Conditions: 7 Macros, 8 CLOS, 9 Conditions - Track C, Packages and Building a Small Lisp: 10 Packages, 11 Capstone (building a small Lisp interpreter) - Track D, Graphics and Simulation: 12 Graphics and Simulation, 13 Capstone (building a small game) Runs on your device A Common Lisp engine written for this app runs your code right on the device. It implements all 752 functions, macros, and special operators in ANSI Common Lisp, so macros, CLOS, conditions with restarts, reader macros, the pretty printer, complex numbers, and file I/O work as the standard says. Files your Lisp code creates are stored only in the app's own space on the device. You can learn without an internet connection, and your code is never sent anywhere. Every lesson example and problem has been checked to give the same results in SBCL. Progress carries over between your iPhone, iPad, Mac, and Apple Vision Pro through iCloud (a track you buy unlocks on all of them), and you can export or delete your study data at any time. No ads. Purchases Units 1-3 are free. From unit 4 on, buy Track A, B, C, or D separately. Track D also unlocks everything in the Simulation Lab. They are one-time purchases, not subscriptions, and can be bought in any order. Contact: chungkil.cksw@gmail.com

  • This app hasn’t received enough ratings or reviews to display an overview.

New: engineering fluids - The simulation lab gains a lattice Boltzmann fluid. Make a grid with make-lbm, place obstacles with lbm-disk and lbm-box, and advance it each frame with lbm-step. The app computes each step quickly (several steps per frame on grids of over ten thousand cells), while your Lisp code builds the scene, draws it and takes input. lbm-colors turns each cell into a palette index to draw with pixels. - Three new gallery examples: Vortex Street (vortices peel off behind a cylinder, top and bottom in turn; drag the cylinder to move it), Lid-Driven Cavity (a big vortex and corner vortices in a box whose lid alone moves) and Backward Step (the backward-turning region behind a widening pipe). Drag to stir the water. - Unit 12 gains the lesson "Fluids with the Lattice Boltzmann Method" and 3 problems (a cell's momentum, one direction of equilibrium, the τ for a Reynolds number). Good to know - In the lab, make-lbm and names starting with lbm- (lbm-step, lbm-wall and so on) are now fluid functions. If a simulation you wrote defines a function with one of these names, please rename it.

The developer, CHUNGKIL KIM, indicated that the app’s privacy practices may include handling of data as described below. For more information, see the developer’s privacy policy .

  • Data Not Linked to You

    The following data may be collected but it is not linked to your identity:

    • Identifiers
    • Usage Data
    • Diagnostics

Privacy practices may vary, for example, based on the features you use or your age. Learn More

The developer has not yet indicated which accessibility features this app supports. Learn More

Seller
CHUNGKIL KIM
Size
9.9 MB
Category
Education
Compatibility
Requires iOS 27.0 or later.
  • iPhone
    Requires iOS 27.0 or later.
  • iPad
    Requires iPadOS 27.0 or later.
  • Mac
    Requires macOS 27.0 or later and a Mac with Apple M1 chip or later.
  • Apple Vision
    Requires visionOS 27.0 or later.
Languages
English and Korean
Age Rating
4+
In-App Purchases
Yes
  • Track D: Graphics & Simulation $7.99
  • Track C: Build a Small Lisp $5.99
  • Track A: Functions and Data $9.99
  • Track B: Macros and Objects $12.99
Copyright
© CHUNGKIL KIM