Separating the language from the backend
#1
Guests
Posted 16 July 2012 - 03:14 PM
Is it planned? It would make much more sense to make the backend independent of the language, because then mature languages (e.g. Python) could be used for writing the scripts.
#2
Guests
Posted 16 July 2012 - 04:43 PM
#3
Posted 16 July 2012 - 08:21 PM
Would it be hard to do? There should be an AHK library and the actual language should only be a wrapper around this library, so that any other language could be used to program AHK scripts for which a wrapper is written.
Is it planned? It would make much more sense to make the backend independent of the language, because then mature languages (e.g. Python) could be used for writing the scripts.
I am not the brightest lightbulb really, but why would you use Python to code AHK... when you can just use AHK to code AHK?
You want to be able to use all of AHK's functionality, without learning the actual syntax?
#4
Posted 17 July 2012 - 04:23 PM
There are many other possible benefits, such as availability of certain modules.Would it be hard to do? There should be an AHK library and the actual language should only be a wrapper around this library, so that any other language could be used to program AHK scripts for which a wrapper is written.
Is it planned? It would make much more sense to make the backend independent of the language, because then mature languages (e.g. Python) could be used for writing the scripts.
I am not the brightest lightbulb really, but why would you use Python to code AHK... when you can just use AHK to code AHK?
You want to be able to use all of AHK's functionality, without learning the actual syntax?
#5
Posted 17 July 2012 - 06:41 PM
There are many other possible benefits, such as availability of certain modules.
I guess I don't understand why that is relavent though.
So, a 'module' that is only available for python, would be called and usable through AHK?
But why. Can anyone give a psudo-example to better put this into context for me?
#6
Posted 17 July 2012 - 09:01 PM
No, the other way around. Users could use Python (which has much more advanced modules than most AHK libraries) and still profit from the functionality of AHK (working with windows, hotkeys, etc. where Python might fall short). There are some attempts in this direction, namely Autohotkey.dll, but a proper separation between the language and AutoHotkey features would be better.There are many other possible benefits, such as availability of certain modules.
I guess I don't understand why that is relavent though.
So, a 'module' that is only available for python, would be called and usable through AHK?
But why. Can anyone give a psudo-example to better put this into context for me?
#7
Posted 18 July 2012 - 12:38 AM
Thanks for the clarification.




