Hi folks. I have a pretty strange project that I'm dreaming up and I'm wondering how I might go about allowing functionality to be added to the software while it is being executed? I thought perhaps if I use methods, I can include a method inside a type and create a new instance of the type, so that effectively a new piece of code is added. I'm sure that must work, but of course the code has to be defined at compilation time so that it can be converted into machine code for whatever platform it is compiled on. So that doesn't exactly make it dynamic.
What ways can I dynamically add new functionality to a program while it is running?
I guess another option is to use some kind of script language like lua or arexx or whatever, which the system would then have to interpret. But I'm trying to get rid of the need for interpretation - it's a big overhead. A dynamic compiler would be nice but even if the Blitz Research folk allowed the BlitzMax compiler to be called within a program it would still be a long and slow compilation, not to mention the copyrighted compiler.
Any other suggestions?
What ways can I dynamically add new functionality to a program while it is running?
I guess another option is to use some kind of script language like lua or arexx or whatever, which the system would then have to interpret. But I'm trying to get rid of the need for interpretation - it's a big overhead. A dynamic compiler would be nice but even if the Blitz Research folk allowed the BlitzMax compiler to be called within a program it would still be a long and slow compilation, not to mention the copyrighted compiler.
Any other suggestions?