Search found 407 matches
- 04 Feb 2019, 11:36
- Forum: Other Programming Languages
- Topic: JavaScript vs AutoHotKey (Simple Speed Test)
- Replies: 54
- Views: 38242
Re: JavaScript vs AutoHotKey (Simple Speed Test)
Comparing ECMA speed which has been optimized for 30+ years and AHK is both idiotic and trollish. Comparing speed of a compiled language to an interpreted one is similarly idiotic and trollish. What honestly is your point? AHK is an automation language. Unless one of you is an expert at RPA like I ...
- 04 Feb 2019, 10:10
- Forum: Other Programming Languages
- Topic: JavaScript vs AutoHotKey (Simple Speed Test)
- Replies: 54
- Views: 38242
Re: JavaScript vs AutoHotKey (Simple Speed Test)
My friend, it's clear here that you are a troll trolling all the time on this matter and it is even more clear that you have big problems in understand things! (thus the reason why you are trolling!) Listen Mister troll, - People use AHK and others scripting languages in order to write simple, shor...
- 03 Feb 2019, 22:03
- Forum: Other Programming Languages
- Topic: JavaScript vs AutoHotKey (Simple Speed Test)
- Replies: 54
- Views: 38242
Re: JavaScript vs AutoHotKey (Simple Speed Test)
Hehe! You are the only troll trolling here anyway! Who is here ignoring that AutoHotkey can solve problems differently? Who said that other viable solutions to increase performance can't be used in AHK? Fact: AHk loop is slow! (You argue this because you are a troll!) loop is a practical solution f...
- 03 Feb 2019, 10:26
- Forum: Other Programming Languages
- Topic: JavaScript vs AutoHotKey (Simple Speed Test)
- Replies: 54
- Views: 38242
Re: JavaScript vs AutoHotKey (Simple Speed Test)
I didn't test your code, but I think you should remove "Local" statement (because not everybody uses AHK 1.1.27+) and should use cLen := strLen(string1) >= strLen(string2) ? strLen(string1) : strLen(string2) (because not everybody has max() function in their library), otherwise, most of people here...
- 03 Feb 2019, 08:53
- Forum: Other Programming Languages
- Topic: JavaScript vs AutoHotKey (Simple Speed Test)
- Replies: 54
- Views: 38242
Re: JavaScript vs AutoHotKey (Simple Speed Test)
This can cause a speed problem, regardless of programming language and has nothing to do with an actual flaw in AutoHotkey ... Now you are trying to argue that AHK loop is not slow to really slow? Can't you see that from the "Is()" function examples I posted above that AHK loop is in fact slow? The...
- 02 Feb 2019, 15:41
- Forum: Other Programming Languages
- Topic: JavaScript vs AutoHotKey (Simple Speed Test)
- Replies: 54
- Views: 38242
Re: JavaScript vs AutoHotKey (Simple Speed Test)
Well, thinking better, "AHK is slow" is not all that correct! But, heavy loop iteration in AHK is slow to very slow! (Should be avoided! The problem is that the use of "loop" is oftenly required to write functions and to do others things!) For example, "Sort" command even for large strings is someho...
- 02 Feb 2019, 07:16
- Forum: Other Programming Languages
- Topic: JavaScript vs AutoHotKey (Simple Speed Test)
- Replies: 54
- Views: 38242
Re: JavaScript vs AutoHotKey (Simple Speed Test)
Regardless of how the AHK interpreter works, heavy loop iteration should be avoided in AHK because it is really slow to very slow!
For example, from the example code I posted in this thread's main post, we could say that javascript loop for(;;) is 19x faster than AHK loop!
- 02 Feb 2019, 07:02
- Forum: Other Programming Languages
- Topic: JavaScript vs AutoHotKey (Simple Speed Test)
- Replies: 54
- Views: 38242
Re: JavaScript vs AutoHotKey (Simple Speed Test)
The truth is that, any task that requires heavy loop iteration (Say, 15000+ iterations) is slow to very slow in AHK!
So, heavy loop iteration should be avoided in AHK! (even when using c\c++, machine codes, dll, etc, etc, workarounds!)
So, heavy loop iteration should be avoided in AHK! (even when using c\c++, machine codes, dll, etc, etc, workarounds!)
- 02 Feb 2019, 05:54
- Forum: Other Programming Languages
- Topic: JavaScript vs AutoHotKey (Simple Speed Test)
- Replies: 54
- Views: 38242
Re: JavaScript vs AutoHotKey (Simple Speed Test)
are you comparing a built-in feature of JavaScript with a suboptimally-implemented custom function in AutoHotkey. Hehe, "Is()" function is not a built-in feature neither in AHK nor Javascript! They are basically a clone of each other, and both of them use built-in "Subtring()" functions of the corr...
- 01 Feb 2019, 11:35
- Forum: Other Programming Languages
- Topic: JavaScript vs AutoHotKey (Simple Speed Test)
- Replies: 54
- Views: 38242
Re: JavaScript vs AutoHotKey (Simple Speed Test)
Hehe! Of course I'm going to use Javascript more oftenly now! (Thanks for your recommendation!) I'm not pushing anything further, I'm just sharing a script from another language and compare it with AHK in "Other Programming Languages" forum! If you don't like "Other Programming Languages" forum, ju...
- 01 Feb 2019, 11:14
- Forum: Other Programming Languages
- Topic: JavaScript vs AutoHotKey (Simple Speed Test)
- Replies: 54
- Views: 38242
- 01 Feb 2019, 11:12
- Forum: Other Programming Languages
- Topic: JavaScript vs AutoHotKey (Simple Speed Test)
- Replies: 54
- Views: 38242
Re: JavaScript vs AutoHotKey (Simple Speed Test)
Also looking at his code he doesn't even seem to measure the is function itself only the String comparison. alert(Is(x, "=", y)) javascript String comparison (450 milliseconds) is faster than "Is()" function (741 milliseconds)! That's understandable because "Is()" function do extra tasks in order t...
- 01 Feb 2019, 10:50
- Forum: Other Programming Languages
- Topic: JavaScript vs AutoHotKey (Simple Speed Test)
- Replies: 54
- Views: 38242
Re: JavaScript vs AutoHotKey (Simple Speed Test)
Hehe, I'm not trolling AHK! I'm just saying that, yes, it's clear that AHK is a very slow language! (Even a very simple function written in AHK can be really really slow!) AHK should be fast enough for some Windows Os and Games automation tasks! But, it is not recommended for data-processing and st...
- 31 Jan 2019, 20:04
- Forum: Off-topic Discussion
- Topic: too many programming languages?
- Replies: 14
- Views: 6889
Re: too many programming languages?
I don't care if in the future will exist millions, billions, trillions or even infillions programming languages to deal with! The only thing that I think should be a must for any programming language is the capability to do real compilation! (Unlike fake compilation adopted by some languages like A...
- 31 Jan 2019, 18:58
- Forum: Other Programming Languages
- Topic: JavaScript vs AutoHotKey (Simple Speed Test)
- Replies: 54
- Views: 38242
JavaScript vs AutoHotKey (Simple Speed Test)
Wow, now I am really surprised! I wrote "Is()" function (click here) for AutoHotKey just to test speed! (which is really slow, it takes 14000 milliseconds (14 seconds) to compare 2 strings of ~= 20 megabytes each!) I decided to write the same function for JavaScript (almost a clone), and I was expec...
- 31 Jan 2019, 08:37
- Forum: Ask for Help (v1)
- Topic: How to pass a v-variable? Topic is solved
- Replies: 10
- Views: 3394
Re: How to pass a v-variable? Topic is solved
Thank you, A_AhkUser & User!!! Each of you both is a schatz!!! I will use your method, User, which is a little more transparent for me as a newbie. (Btw, I was extremely surprised (as a newbie, of course) by these multiple problems araising from the fact that a gui definition and a label are used i...
- 30 Jan 2019, 16:51
- Forum: Ask for Help (v1)
- Topic: How to pass a v-variable? Topic is solved
- Replies: 10
- Views: 3394
Re: How to pass a v-variable? Topic is solved
or MakeGui() RETURN MakeGui() { ;_______________________________ Static Static := [] gui, Test:Default loop, 4 { if (a_index = 4) Text := "Exclude" Gui, Add, Edit, w570 HwndTempCtrlId, % Text Static["Gui_Ed" a_index] := TempCtrlId } Gui, Show, w600 Return TestGuiDropFiles: ;__ MouseGetPos,,,, mHwnd,...
- 30 Jan 2019, 16:40
- Forum: Ask for Help (v1)
- Topic: How to pass a v-variable? Topic is solved
- Replies: 10
- Views: 3394
Re: How to pass a v-variable? Topic is solved
Thanks! @newbieforever, this is your best way to go: MakeGui() RETURN Testguiclose: ;__________________ exitapp MakeGui() { ;_______________________________ Static Static := [] Gui Test: Add, Edit, w570 HwndTempCtrlId Static["Gui_Ed1"] := TempCtrlId Gui Test: Add, Edit, wp HwndTempCtrlId Static["Gu...
- 30 Jan 2019, 10:58
- Forum: Bug Reports
- Topic: OnMessage() Cause temporary variables to empty Topic is solved
- Replies: 5
- Views: 2958
Re: OnMessage() Cause temporary variables to empty Topic is solved
Yha, it seems that "labels" inside functions are not recommended in some situations! You can use the below alternative: Gui, Show, w500 h300 OnMessage(0x200, Func("WM_MOUSEMOVE").Bind("OnMessage_Call")) return guiclose: ;________________ exitapp WM_MOUSEMOVE(Options := "") { ;______________________...
- 29 Jan 2019, 16:58
- Forum: Ask for Help (v1)
- Topic: How to pass a v-variable? Topic is solved
- Replies: 10
- Views: 3394
Re: How to pass a v-variable? Topic is solved
Use "Static Control := []" object, then store controls' hwnd in Control["Ed1"], Control["Ed2"], etc, etc through "TempControlId" variable! MakeGui() RETURN MakeGui() { Static Control := [] Gui Test: Add, Edit, w570 hWndTempControlId, Something Control["Ed1"] := TempControlId Gui Test: Add, Edit, w57...