Host-side Function Plugin Support for Jyro

We're pleased to announce that Jyro now supports dynamic plugin loading, enabling developers to extend the language with custom functions tailored to their specific needs.

This release introduces three new API methods on the JyroBuilder: WithFunctionsFromAssembly() for loading individual assemblies, WithFunctionsFromAssemblyPath() for loading from file paths, and WithFunctionsFromDirectory() for batch loading from folders with pattern matching and recursive search capabilities. Plugin functions are implemented by creating .NET class libraries that inherit from JyroFunctionBase, providing a straightforward extension mechanism that integrates seamlessly with Jyro's existing type system and execution model.

The Jyro CLI has been updated to support plugin loading through command-line options, environment variables, and JSON configuration files. Users can now specify plugins using the -p flag for individual assemblies or -pd for entire directories, with additional options for search patterns and recursive loading.

Configuration support includes automatic discovery of jyro.config.json files in standard locations (current directory, AppData, or user home) and follows a clear precedence model where command-line arguments override environment variables, which in turn override configuration file settings. This flexibility allows teams to establish project-level defaults while maintaining the ability to override settings for specific execution contexts.

Previous
Previous

Jyro 0.3.0 - Improved Stdlib Composability

Next
Next

Compilation-caching now supported