Domain Specific Language

One of the most important aspects of creating dataflows in Maru is that developers can program their own operators using the built-in DSL embedded in the compiler. The code for each custom operator is compiled into a separate binary file for the zkVM. In a single shared description file, the input streams and connections between operators in the dataflow graph are defined. These bytecode and description files are then loaded into the "operator registry," from which the protocol updates its representation of the data stream and executes it.

Below are several examples of how the code for programs utilizing the DSL capabilities to create custom operators might look, according to our expectations:

Last updated