Skip to main content

2 posts tagged with "positioning"

View All Tags

What Is a Data Runtime?

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

A data runtime runs data directly, the way a JavaScript runtime runs JavaScript. Its documents carry their own logic, so instead of a program loading some inert data and deciding what to do with it, the document has fields, types, and functions together, and the runtime runs them, sandboxed, the same on every platform.

Stof is a data runtime. The short version: JSON that runs.

We Deserve Better Than JSON as a DSL

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

It always starts simply. You need a config, and you want to keep it simple this time. What's simpler than JSON? Some keys, some nesting, done.

Six months later the file looks like this:

{
"timeout": "5m",
"memory": "2GB",
"retries": "{{ env.CI ? 5 : 2 }}",
"url": "${PROTOCOL}://${HOST}:${PORT}"
}

Four values, three of which are secretly something else. "5m" is a duration someone has to parse. "2GB" is a size someone has to parse, and whether that's 2000 MB or 2048 MiB depends on which library parses it. The other two are expressions in a template language you invented, which a new hire has to be told about because nothing in the file says so.