Skip to main content

One post tagged with "core-concepts"

View All Tags

The Heap Is Just a Document: How Stof Actually Works

CJ Cummings
Creator and maintainer of Stof, co-founder & CEO of Limitr

Every document on your computer is a pile of bytes. A photo, a spreadsheet, a JSON file: underneath, it's all bytes sitting next to other bytes.

Here's the idea behind Stof. What if some of those bytes were instructions? Small pieces that say "add one to that number over there" or "join those two words into a name." Not code stored somewhere else that reads the document, but instructions inside the document, right next to the data they're allowed to change.

That's a Stof document: data, and the instructions for changing it, in the same pile of bytes. JSON that runs.