A general-purpose language and runtime, in development

Follow a result back to the code.

Myceta programs are built on a typed graph. Every result you name keeps a path back to the functions, inputs and revisions that produced it, so someone else can check it, run it again or apply their own rules.

microgrid.mycSix-hour outage model
fn simulate(solar: array<i64<kWh>>, demand: i64<kWh>, battery: i64<kWh>) -> Balance =fold balance = Balance { stored = battery; unserved = 0<kWh> } with produced in solar ->advanceHour(balance, produced, demand, battery)
  1. ResultStormUnserved is 80 kWh. The town runs short.
  2. BecauseIn hour 6 the battery holds 10 kWh and solar adds 10. Demand is 100.
  3. BecauseForecast r2 replaced r1. Under r1 the same plan ended with 30 kWh left.
One model, two solar forecasts, two operating plans. Read the source and its tests.

What can you build on it?

Where Myceta is today

Myceta is in active development. This is what you can use now and what is still on the way.

Available now

Not released yet

Questions or implementation feedback: [email protected]

The Myceta Papers

What the answer forgets

Producing an answer has become cheap. Knowing what it rests on, whether it still holds and who may act on it has not.

Read the essay