A spreadsheet where every row is an S-expression evaluated remotely
Sexp Matrix
A simple idea: represent each spreadsheet row as a self-contained S-expression, evaluate those expressions remotely and asynchronously, and chain rows into a pipeline. The author sketches an S-Matrix where the first cell is a function and the last holds its output, then demonstrates a Clojure prototype called Entangle that accepts CSV, runs each row through a REST API, and streams results back over a websocket. Row functions can be AWS Lambda, a microkernel, or an LLM agent.
What if we reimagined spreadsheets around remote functions, with each row containing a list of S-expressions? Instead of treating cells as containers for values, we'd treat them as slots for S-expressions.
- anamexis
Unless I missed it, this doesn't address one of the key features of spreadsheets, which is that the formula for any cell can reference the value of any other cell or cells. It's just writing sexps in a grid?
- cool_dude85
A matrix doesn't seem like the ideal structure for such a thing given the requirement that all rows should have the same number of columns. I can't represent + 1 2 3 and + 1 2 as rows in a matrix.
- downut
I think this might be going down a similar path as Kenny Tilton's cells:
https://github.com/kennytilton/kennytilton.github.io
Same idea in python Trellis and one of Sean Parent's explorations at Adobe.