olofson / audiality2

A realtime scripted modular audio engine for video games and musical applications.
http://audiality.org/
zlib License
80 stars 5 forks source link

Script libraries #324

Open olofson opened 7 years ago

olofson commented 7 years ago

We need to handle script libraries (instruments, effects, waves etc) in a sane and organized fashion.

The naïve approach to versioning is to just import specific versions of things, and declare that once a library has been officially released, there must be no changes in interfaces and functionality; only bug fixes and performance optimizations. Simple and robust, but not very practical.

For script libraries to be seriously useful and maintainable, we probably can't get away with much less than a typical major.minor.micro versioning system;

The 'import' directive would get an optional version argument, to specify the required major version, and minimum micro version. If no version is specified, A2 will used the newest version it can find - but if this is done with anything but private application libraries, the compiler should probably issue a warning, because scripts like that will break sooner or later.