Overview
Divooka is great fun to explore and get practical things done. But it doesn’t stop there. When it comes to building solutions for professional settings, Divooka has everything you need to get the job done well.
From the very beginning we planned for self-contained programs. A Divooka document can already carry the assets it needs, and with Divooka Player that document becomes a fully executable program. This is important for sharing and distribution.
There’s another step beyond that—one that’s common in professional environments where every bit of performance and optimization matters, or simply for convenience: take a Divooka program, publish it, and hand someone an executable they can run without ever installing Divooka.
It gives the author control over what gets distributed and removes most of the setup hurdles for the end user. Sometimes sharing too much just confuses things. 😉
It’s been a long journey from the first WPF prototype to a fully functional interpreted procedural context, and then to a reliable compiled runtime. Now we’re entering the era of distribution. In this article, let’s look at the Publish function in Divooka Compute.
Divooka Programs
As a next-generation (4th-generation, to be precise) general-purpose programming language, Divooka strikes a balance between a useful scripting language and a high-performance compiled language—somewhat like JavaScript in that respect.
A .dvk file is more than a project file (a collection of graphs). It’s a program in its own right. With Publish, that same document becomes a standalone executable: something you can put in a release folder, copy to a USB stick, or distribute to someone whose machine has never heard of Divooka—and, unless you choose otherwise, never heard of .NET either.
Depending on the document and compilation options, the result can be a native executable of just a few megabytes, or a self-contained distribution carrying the entire .NET runtime, typically around 78 MB for a small program.
This is a feature I’ve personally looked forward to the most. It’s also something we’ve been designing toward since day one, so you can imagine the excitement of finally having a fully functional end-to-end implementation.
Publishing a Program
In Divooka Compute you’ll find a Publish button right beside the plugins wrench in the toolbar.
Press it on any Divooka document and Compute builds a standalone program for the platform you’re running on. A publishing settings screen lets you specify the usual metadata: name, version, author, description, copyright, and output folder.
There are also two options that determine what kind of executable gets produced.
Self-contained is enabled by default. It includes the .NET runtime with your program, so the recipient doesn’t need .NET installed. Disable it and you get a considerably smaller distribution that relies on .NET 10 already being present on the target machine.
Prefer Native AOT takes things a step further. Instead of carrying a runtime, the program is compiled directly into native machine code. The result can be a single executable of just a few megabytes, with no separate .NET installation required.
Native AOT is the outcome we ultimately aim for. Advanced as it sounds, it comes with requirements—or restrictions, if you prefer. The program must be compatible with trimming and ahead-of-time compilation, and the machine doing the publishing needs the platform’s native linker. This has significant implications for the design of the entire Divooka ecosystem, something we’ll surely revisit in future discussions.
When requested, Publish attempts Native AOT first. If the build succeeds, you get the native executable. If something prevents it—perhaps an assembly relies on reflection that cannot be preserved during AOT compilation, or the required native linker isn’t installed—Publish automatically falls back to a self-contained build and provides a one-line explanation.
This way you don’t have to figure out which build strategy will work beforehand, and you won’t be left with nothing just because native compilation isn’t possible.
The two output modes have quite different footprints:
| Native AOT | Self-contained | |
|---|---|---|
| When | When AOT analysis succeeds and the platform’s linker is available | Default; also the fallback when native compilation isn’t possible |
| Size | A few MB. Our Mandelbrot benchmark produced a 1.561 MB executable on Windows and a single 1.7 MB file on Linux | Around 78 MB for a two-line Routine (202 files, runtime included) |
| What the recipient needs | Nothing | Nothing |
Regardless of which route you take, the goal is the same: pack everything the program needs so end users can just double-click and run.
That includes the program’s own assemblies, the Divooka assemblies required by its nodes, the framework needed by GUI or realtime documents, native libraries and files used by its packages, and all the data and assets carried by the document itself.
The end user won’t need a Divooka editor, .dvk source code, project files, or loose asset files.
As you can imagine, this is an intricate process, so thorough testing is essential for reliable production use. We need to test not only the publishing process itself, but also what matters in practice: publishing various built-in examples, moving the outputs to different machines, running them without Divooka or a .NET SDK on the PATH, and checking that their output matches what we get when running the original document in the editor.
Motivation and Scenarios
When it comes to high-level programming languages there are different levels. Prolog postulates a theory to be proven; F#, and Elixir formulate problems as functional transforms, while Mathematica and MATLAB are powerhouses of very advanced algorithms. Python, Ruby, and MATLAB have set a very high bar for how quickly you can turn an idea into something working. Those are the kind of usability we compare Divooka to.
But there’s a familiar moment in almost every development workflow. You’ve built something. It finally works well after thorough testing. You’re happy with it and eager to share it with people. And suddenly you’re not handing over your program (or scripts). You’re faced with handing over a lengthy to-do list: Install this interpreter version. Create an environment. Install these packages. Configure a few things. And, perhaps most frustratingly, accept a few hundred megabytes of dependencies that have very little to do with the actual program.
The Python and Ruby ecosystems have done impressive work addressing this through bundlers, frozen environments, and compilation tools. These are valuable solutions, but they’re also solving a distribution problem after the fact. Anyone who’s tried packaging a small script into something another person can reliably run knows what that last mile feels like (and kudos to those who didn’t give up!).
The reasoning is straightforward. We don’t want Divooka to be just a place where you experiment with ideas. We want people to build real software with it: desktop applications, command-line utilities, internal tools, and programs that others can depend on.
Real software needs to be shared.
Divooka Compute and Compiled Runtime
Divooka Compute ships with what we call a compiled runtime. There are a few different aspects to this, notably the distinction between compiling at runtime and compiling at distribution time. The exact details are specific to .NET.
Some of the visual programming systems one might associate with this approach include vvvv and Unreal Engine Blueprint, both of which heavily inspired Divooka.
A computer program, especially in source form, is usually either interpreted—evaluated on the fly—or compiled, which requires a compilation process. Modern systems also use JIT (Just-In-Time) compilation to compile code during execution without necessarily generating an on-disk executable.
There’s sometimes an assumption that visual programming languages are inherently scripting environments. Divooka Compute takes a different approach. For performance, especially with non-trivial computation, it’s essential that the generated program executes in the target language rather than relying on a general-purpose interpretation layer.
Since Divooka is designed for professional, performance-sensitive work, compilation is fundamental to its design. That matters not only for execution speed, but also for what we can do when it’s time to distribute a program.
Our public Mandelbrot benchmark is a good example. It calculates a 2000 × 2000 Mandelbrot set over 1000 iterations, with every result checked against a reference checksum.
The following results come from our benchmark record as of October 24, 2026. They’re provisional, since the machines were also handling other workloads during testing, but they should give a reasonable representation of where things stand.
| Program | Median time | Shipping Size |
|---|---|---|
| C# AOT | 1.41 s | 916 KB |
| C# (.NET 10) | 1.56 s | 12.3 MB |
| Java | 2.23 s | 2 KB + 303 MB runtime |
| Divooka, published self-contained | 3.79 s | 77.2 MB |
| Divooka, published Native AOT | Windows run pending; Linux matched the self-contained build | 1.561 MB |
Divooka, run through stew (compiled) |
6.41 s | 1.75 GB standard Compute distribution |
| Python 3.13.5 | 97.0 s | 1 KB + 151 MB runtime |
| Ruby 4.0.9 | 96.4 s | 1 KB + 304 MB runtime |
The published self-contained program takes approximately 2.7 times as long as C# AOT on this particular workload, but is still around 25 times faster than CPython.
C# AOT, Go, and C++ still have an advantage in tight computational loops, as their code is hand-written rather than generated. There’s still some way to go before we catch up.
What’s more interesting is how Divooka performs on a less synthetic workload.
In a second benchmark, a small but complete ray tracer reads a scene file, performs recursive calculations, and writes an image. The published Divooka program completed it in 0.65 seconds, compared with 0.44 seconds for C# AOT. Every implementation produced an identical image, byte for byte.
It’s reassuring to see Divooka performing in the same league as compiled languages. I feel this gives us a solid foundation to consider Divooka Compute a mature, production-level compiled programming system, rather than simply a faster scripting environment for casual use.
But performance isn’t the only interesting part of these numbers.
Look at the distribution sizes. The self-contained build is 77.2 MB. The Native AOT build of the same document is 1.561 MB—smaller than the C# (.NET 10) distribution in this benchmark, and in the same general range as other natively compiled programs.
An interesting detail is that Native AOT doesn’t necessarily make the computation itself faster. In our tests, its biggest advantages were executable footprint and startup time. A tiny program started in approximately 5 ms as a native executable, compared with around 31 ms for the self-contained version.
AviatorBeta is the tool that Publish invokes to produce an executable. It can also be invoked directly from the CLI. stew, on the other hand, is Divooka’s general-purpose compiled execution tool. Its compiled mode recompiles the document every time it runs, since the program only exists in memory.
Publish does that work once, during publishing, and produces an executable that can be launched repeatedly without paying the compilation cost again.
Publish isn’t just a distribution feature. It also moves compilation out of the execution path.
The Difference It Makes
A published program doesn’t need the entire Divooka installation.
A standard Divooka Explore or Compute installation is easily 1–3 GB. That’s because it comes with a substantial collection of integrated toolboxes: image processing, 3D rendering, simulation, audio, data analysis, plotting, and much more.
We deliberately ship these capabilities together. You don’t have to assemble a development environment from a dozen packages before you can start being productive.
But it would be absurd if every program inherited that entire installation.
If you’ve written a small command-line utility that renames files, the person receiving it shouldn’t need a copy of our 3D renderer, audio engine, or image processing toolbox.
Publish takes the other half of that equation.
A big toolbox for the person building. A small program for the person receiving.
Only the assemblies, frameworks, native libraries, and assets required by the actual document make it into the published output.
The Architecture
I remember explaining to my colleagues that there are a few things that make a GUI application particularly difficult to refactor if they’re not considered from day one:
- Compiled runtime
- Redo/Undo
- GUI localization
- Cross-platform execution
Publishing wasn’t a matter of simply adding a packaging button at the end of development. Several architectural decisions had to be made early in Divooka’s development to make this possible today.
1. We chose .NET, and we control what’s built on top of it.
.NET gives us a mature runtime, a serious compiler toolchain, and a well-established path to both self-contained deployment and Native AOT.
It also gives us a clear distinction between programs that can be compiled to native code and those that need to carry a runtime. We can evaluate that distinction during publishing and tell the user exactly what happened.
2. Our toolboxes are tightly integrated.
Divooka’s toolboxes aren’t simply a collection of unrelated third-party plugins. They’re developed as a coherent family, which gives us much better control over their dependencies and runtime requirements.
We know which assemblies a node needs, how those assemblies are packaged, and whether they’re compatible with native compilation. This is particularly important for Native AOT, where reflection and dynamic code generation can introduce restrictions that ordinary JIT compilation doesn’t have.
It’s also why we can make Native AOT an actual build strategy rather than a hopeful checkbox.
We’ve been exploring this approach in other projects, too. Our small shell language, EasyShell, already has a native build that produces a 5.4 MB executable.
A system whose components you don’t control has a much harder time offering this level of integration.
3. The language has defined semantics.
A Divooka document is a graph with defined execution semantics. The same document should mean the same thing wherever it’s executed.
That distinction matters. We’re not simply taking a snapshot of an interpreter and trying to freeze its environment. We’re compiling a program with a defined representation and execution model.
This is fundamental to treating a visual graph as a program rather than just an editor document.
4. The GUI is decoupled from the runtime.
The editor isn’t welded to the execution engine.
Compilation and execution are handled by standalone tools such as stew and AviatorBeta. They’re independent of the window in which you designed the graph, and Publish belongs to Compute rather than being a responsibility of the underlying engine.
This separation means a published program doesn’t need to carry the editor, its UI framework, or the development environment just to execute.
If the runtime and GUI were tightly coupled, publishing would effectively mean shipping the entire IDE.
Individually, none of these decisions is particularly exotic. What matters is how they fit together. Each one makes standalone publishing more practical, and the ability to publish makes each of them more valuable.
What This Means for Divooka
The pursuit of general-purpose programming is at the core of Divooka’s creation and design.
At the most fundamental level, it means being Turing complete—although that’s a fairly low bar, as even games like Magic: The Gathering and Minecraft are. Practically, it means having sequential execution of commands, branching and comparison, and mechanisms for controlling the flow of execution.
At a higher level, it means shipping with extensive ready-to-use toolboxes, along with frameworks and usage patterns built around our own unique ecosystem and syntax.
But being general-purpose goes beyond language features and basic functional programming capabilities. It means being useful for everyday, casual work as well as professional, commercial, and serious applications—from small utilities to large programs.
Throughout Divooka’s development, we constantly ask ourselves:
- Can we build something real?
- Can people actually use what we’ve built?
Publishing to standalone executables is one more feature that moves Divooka closer to becoming a production-ready, real-world programming system.
Conclusion
A .dvk document can now be more than a project you open in an editor. It’s the source of a program you can build, publish, and distribute independently.
You develop with the full Divooka editor environment, with all its integrated toolboxes and visual programming capabilities. When you’re ready, you publish the document and generate an actual executable.
The end user receives just the executable: no editor installation, no project setup, no source distribution, and no dependency installation.
For anyone wondering whether visual programming can be taken seriously as a way to build production software, I’d rather answer that question by shipping something people can use than by arguing about it.
Limitations and Things to Know
There are a few practical details worth mentioning.
Compute, not Explore. Publish is a Divooka Compute feature. Explore is the interpreted, learning-oriented product.
Native AOT has prerequisites. It requires the platform’s native linker (on Windows, this means Visual Studio’s C++ build tools) and compatibility with AOT compilation. In particular, some uses of reflection cannot be preserved in a native executable. When these requirements aren’t met, Publish falls back to a self-contained build and explains why.
Self-contained builds contain multiple files. A small program currently produces a distribution of around 78 MB, typically consisting of approximately 200 files.
AviatorBetacan also bundle this into a single executable of around 74 MB, although native libraries still need to remain alongside it. The Publish interface doesn’t expose this option yet.The first publish requires a network connection. The .NET runtime packs and, for Native AOT, compiler packages are downloaded from nuget.org the first time they’re needed. Subsequent builds can use the local NuGet cache.
Platform availability. The Divooka editor is designed to be cross-platform, but we currently ship Windows-only. macOS and Linux support are planned. Publish currently targets the platform on which you’re running Compute and cannot cross-compile.
AviatorBetaitself already runs on Linux, which is how we’re able to produce the Linux benchmark results.Early Access. Divooka Compute is coming to Steam as an Early Access release, so expect some rough edges. The benchmark numbers are provisional as well, and I’ll update them as more measurements become available.
References
If you’d like to try Divooka Compute, it’s coming to Steam—don’t forget to wishlist it!
The Mandelbrot benchmark is available on GitHub, including its source files and benchmark methodology.
For more information about Divooka and its underlying architecture, visit the Divooka Wiki.






Top comments (0)