What is the Experimental Package?
The experimental package (Loretta.CodeAnalysis.Lua.Experimental) contains features that are being tested and refined before potentially becoming part of the stable Loretta API. These features are fully functional but may undergo breaking changes as they evolve.
Installation
Install the experimental package via NuGet:Available Features
The experimental package currently provides two main features:Constant Folder
Optimize your Lua code by folding constant expressions at compile time
Minifier
Reduce code size by removing whitespace and renaming variables
When to Use Experimental vs Stable
Use Experimental Features When:
- You’re building developer tools or code optimization pipelines
- You need advanced code transformation capabilities
- You’re willing to handle potential API changes in future updates
- You’re prototyping or exploring Loretta’s capabilities
Stick to Stable APIs When:
- You’re building production-critical applications
- You need long-term API stability guarantees
- You’re just getting started with Loretta
- Your project has strict dependency management requirements
API Stability Warning
Getting Started
All experimental features are exposed through extension methods in theLoretta.CodeAnalysis.Lua.Experimental namespace:
Providing Feedback
If you encounter issues or have suggestions for experimental features:- Report bugs on the GitHub issue tracker
- Share your use cases and feedback
- Consider contributing improvements via pull requests