Playground

Write DS, compile it, and run it. The compiler and the engine are the ones 1.1.0 publishes, both compiled to WebAssembly — dsc with its standard library, and libds — from the release's own tools package, so this runs entirely in your tab. Nothing is uploaded.

Demos

The thermometer reports Celsius; the rule says 85 °F. DS knows both are temperatures and converts, and would refuse to compare a temperature with anything that is not one.

Try this: Change 85_°F to 85_m and compile: a temperature cannot be compared with a length, and nothing runs.


        

Each row is fed in @at order, one cycle per row. The output is what ds -b prints.

Each row is one room's reading. The temperature column is in °C, the unit the schema declares; the page converts it to kelvin, the base unit, for the fact file ds reads, so the kitchen's 33 °C is 306.15 there. Edit as JSON shows the file itself, in kelvin.

Test runs the cases in playground.dstest, as ds test does.


        

Nothing to inspect yet.

No network yet.