Running the Application
Wallaroo applications are built using the Pony compiler. The compiler will build our application along with any other tools used, optimize it, and link whatever libraries were needed. Once compiled, the application can be run over and over again, independently from the compiler or anything else. It will exist as a complete program on it’s own.
Generally, in order to build a Wallaroo Pony application, the following steps should be followed:
- import the Wallaroo library and any other needed packages in the Pony application’s
- define the
Main actor and the
- Create classes/primitives that provide the correct Wallaroo Pony interfaces (more on this later)
Wallaroo.build_application with the needed arguments in your application’s
- compile the binary using the Pony compiler:
Once loaded, Wallaroo executes
Wallaroo.build_application, constructs the appropriate topology, and enters a
ready state where it awaits incoming data to process.
There are a set of tools precompiled for you, to make getting started easier. If you have installed Wallaroo as instructed and follow the Starting a new shell for Wallaroo instructions each time you start a new shell, these tools will be available to you in your PATH.
To try running an example, go to the Alerts example application and follow its instructions.
To learn how to write your own Wallaroo Pony application, continue to Writing Your Own Application
To find out more detail on the command line arguments and other aspects of running Wallaroo application, see the Running Wallaroo section.