Handbook / What is StructOp?
What makes StructOp different
Conventional native development can provide each capability below through additional tooling. StructOp’s difference is that these capabilities work together on one common declarative representation of the application.
On this page
Comparison#
| Capability | Conventional native development | StructOp |
|---|---|---|
| Application definition | Language-specific source code | Unified declarative definitions in .st files |
| Execution relationships | Expressed through source code and analysed using tooling | Explicit declarative relationships where supported: run order, depends_on, calls and data reads |
| Change review | Primarily source-level differences and code analysis | Structural application change planning with structop plan |
| Execution visualisation | Typically requires additional analysis tooling | Integrated graphing with structop graph, of declared order and dependencies |
| Language portability | Often requires rewriting or abstraction layers | Compatible declarations can target C or Rust |
| Extensibility | Language-specific libraries and packages | Declarative providers and native integrations |
| Build state | Managed through build tools and configurations | Integrated state of supported build resources |
| AI integration | Source code and external development tooling | Structured definitions and machine-readable outputs |
| Compilation | Native compilation toolchain | Generated native source compiled through the corresponding toolchain |
The difference is integration#
Each row above has an established answer in conventional development: static analysers, call-graph tools, build systems, code review tools, cross-language abstraction layers. StructOp builds on that experience: it provides these capabilities in one tool that reads one representation, so that the plan, the graph, the state and the build always describe the same declarations.
What stays the same#
- The program is compiled by the target’s own toolchain, and the generated source can be exported and read.
- Native libraries are still native libraries. A provider makes a library available to declarations; it does not reimplement it.
- Source control, code review and continuous integration work on
.stfiles as on any other text.
Trade-offs#
- A project can use only the ability kinds its providers define. A capability beyond the installed providers comes from another provider, a binding or, on the C target, an inline C expression.
- Some constructs are target-specific: inline C, and bindings generated for one language. See Portability scope.
- Heap storage and threads are deliberately bounded: heap blocks are checked on every access, and workers share data only through atomic counters and flags or values guarded by a lock;
structop validaterefuses any other sharing. They need the C and Rust language providers 2.3.0. - A project builds one program.