Sometimes I am just to lazy to do my work thus macros could be doing them. Examples: Get version from git repository and add it in version Use maxima/Python's math libraries to solve equations and turn the result into code like https://docs.sympy.org/latest/modules/utilities/lambdify.html
Now I tried using exec and failed cause some modules were not available. I know that compilation time suffers somewhat but when using cache it might be good enough for small projects.
Thus is there a way to have a cache file run Python or talk to any other kind of dev server/cache (eg socket whatever) when running macros ?
There are more use cases like writing type files of other languages when writing APIs and whatnot.
You mean to use Python at compile-time?
macro example() =
echo(staticExec "python -c 'print(123)'")