New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
re-working the Macro plugin to be even better and more useful #59
Comments
Well, I'll try to list some problems of macro plugin and try to propose solutions to them. 1- It rechecks all automacro keywords each cycle, which is tremendously cpu intensive. 2- Macros are not parsed until execution, which, again, is tremendously cpu intensive and makes debugging REALLY hard. 3- We don't have support for global | local variables, all we have is globals. 4- We list support we have in macros is (really) bad, and hash support is even worse (varvar?). 5- We have lots of functions in macro which are almost equal to checkSelfCondition 6- The support for loops is not really good, it exists though. 7- There's no way of pausing a macro without totally interrupting it 8- There's no support for everlasting variables (continue existing after instance is closed, should we have it?) 9- There's no support for concurrent macros. 10- The parsing of automacros is really bad, there's no error message on duplicate keywords and duplicate names. 11- There is no separation between automacro 'conditions' like job, location, and automacro 'parameters', like exclusive and run-once. 12- We have support of Also, our sintax is not really good, should we use semicolon or something else and make the parsing character wise instead of line wise? |
I'm all for this. What do we need to do to get this rolling? |
I guess that with eventMacro we can close this issue... right? ( although there is a few things that werent implemented yet ) |
No love for old macros. |
hahahahahahah |
closing since we have now eventMacro |
Pros of Macros vs Plugins
Pros of Plugins vs Macros
Adding delayed execution to plugins might be possible with something like Coro or a source filter, but such things are likely to break as the language evolves.
Adding concurrent code sequences (ie, the ability to run another macro while a macro is running) should be totally doable.
Suggestion
pause
d macro via another macro command, so that a macro can wait for a hook.Open Questions
Example
The text was updated successfully, but these errors were encountered: