Documentation contents

Platform architecture

How Myceta fits together

Myceta is a general-purpose language and runtime built around a typed graph. You can start with an ordinary function. Name a result as a node when someone needs to run it, inspect it, or trace the inputs it used.

On this page

From a function to an application

A module defines types and functions. Libraries can supply a domain’s operations, and applications can compose them into services, queries and workflows. The microgrid example uses an ordinary function to balance one hour of demand, solar generation and storage. A named node runs it against a selected forecast and local operating plan.

Read the simulation source and its two plan tests.

Two kinds of ancestry

Dependencies explain how a result was derived. In the sixth hour, the battery has 10 kWh and solar adds 10 more. Scheduled demand is 100 kWh, so 80 kWh goes unserved. Revision history explains which forecast changed. With the same plan, the earlier forecast showed 30 kWh left after all six hours. The studio lets a reader follow both relationships.

Native execution through MLIR

Myceta’s compiler builds a typed execution plan from the program. For supported operations it can lower that plan through MLIR to native CPU code. Other computations can take a managed path. The program defines the required result whichever route executes it.

This development test takes ordinary general-purpose source. An indexed fold multiplies each array element by its one-based position and adds the products.

fn generated(values: array<i64>) -> i64 =
  fold acc = 0i64 with (index, item) in values -> acc + item * (index + 1i64)

For eighty ones, the expected sum is 1 + 2 + … + 80 = 3,240. On , the test compiled the function, emitted MLIR, invoked the populated case on the native CPU path and compared the return value with both the managed result and the expected integer. The empty array supplies a second case with a different observation.

InputExpectedManaged resultNative CPU observation
Empty array00No invocation recorded
80 copies of 13,2403,2403,240 · invoked

Download the tested fold source · Read the execution reporting note · About the MLIR compiler framework.

Federation under the recipient’s own rules

In the platform design a publisher names the work and its revision. A recipient chooses which revision to use, which checks to require and what it is allowed to do. Two independent workspaces can arrive at different decisions from the same data and still explain both.

The public studio reads the published solar forecast from this domain over HTTPS. The receiver supplies its own battery and operating plan. Myceta Labs operates both sites for this example. The URI design describes how independent publishers can name work. The URI inspector shows what an address identifies.

From writing a method to specifying one

A further ambition is constructive intelligence. State what an acceptable solution must do, let a person or a software agent propose a candidate, and check it against those conditions. The longer-term question is whether a checked method can help the next author solve a different problem. Explore the research in The Myceta Papers.