function run()
How can we extend Zorro’s S-Lang environment to incorporate arbitrary external computation while maintaining low latency (<1ms per call) and deterministic memory management?
static CURL* curl = nullptr; static SentimentModel* model = nullptr; zorro plugin
Compile (MinGW):
The Zorro plugin system provides a robust, low-latency bridge between the S-Lang scripting environment and arbitrary native code. While the API is minimal (only three required exports), it is sufficient to integrate modern computational libraries. Our sentiment analysis plugin demonstrates that even complex, network-dependent operations can be embedded with acceptable performance for swing trading (but not high-frequency trading). Future work could include a standard SDK generator for Python and Rust, as well as support for asynchronous plugin calls. function run() How can we extend Zorro’s S-Lang
To overcome these limitations, the Zorro team introduced a . A Zorro plugin is a compiled shared library that exports specific functions, allowing S-Lang scripts to call external code as if it were a native function.
// Called before Zorro unloads the plugin int PLUGIN_EXIT(void) // Free memory, close handles return 0; A Zorro plugin is a compiled shared library
In this guide, we’ll dive deep into what the Zorro Plugin is, its core features, and how you can use it to "slash" through technical hurdles. What is the Zorro Plugin?
To get the most out of the Zorro Plugin without running into trouble, keep these tips in mind: