Skip to main content

Runs and Results

Writing code

You can write and run C and C++ source code in the Code Playground. Your edits stay in the editor when you reload the page. Click Run to start a Build, then a Task on success. Compilation warnings and errors appear in the Build tab of the Results Panel. During execution, the C0 core performs distribution arithmetic on every value your program reads or writes, so inputs that carry a distribution produce outputs that carry one, with no changes to your code.

If you want to inspect or shape those distributions from inside your program, the optional UxHw API exposes them directly.

Restore editor code to default example () on the right side of the toolbar replaces the current source with the default example program.

Build and Task status

Terminology

A Build is one compilation of your source code on the Signaloid Cloud Compute Engine. A Task is one execution of the resulting binary. A successful Build is reusable, so you can launch new Tasks from it without compiling again.

Clicking Run starts a Build, then a Task once the Build completes. The control bar below the editor reports both, each with its ID, its current status, and Cancel while it is still running. Canceling the Build stops the compile but leaves any earlier Task untouched. Canceling the Task stops the run without throwing the Build away.

Each ID has Copy to clipboard (), and the Task ID links through to that task in Builds and Tasks.

Both report the statuses listed under Status chips, plus two more:

  • Pending marks a Build or Task that has been created but not yet submitted to the Compute Engine.
  • Not started marks a Task that was never submitted, because the Build it depends on did not complete.

Compilation errors set the Build status to Error and surface the compiler output in the Build tab of the Results Panel.

Figure 1. The control bar during a run and after the Task completes.

Results panel

The Results Panel shows the build and run output for an application execution on a Signaloid C0 core. It contains:

  • stdout shows the program's standard output. Printed values that carry a distribution appear underlined. Hover or select one to open a histogram of its distribution.
  • stderr shows the program's standard error.
  • Build shows errors and warnings from the build process.
  • Runtime Information shows execution time on the C0 core and the dynamic instruction credits the Task consumed.

Each tab carries a copy-to-clipboard button so you can paste the output elsewhere.

The Show Plots checkbox at the bottom of the stdout tab tells the platform to render every distributional plot inline, without hovering.

Figure 2. Walking through the Results Panel tabs, hovering a value in stdout to open its distribution popup, and toggling Show Plots to render every plot inline.