Search found 321 matches

by iseahound
Today, 12:43
Forum: Wish List
Topic: Defer initialization of objects until they are needed.
Replies: 5
Views: 78

Re: Defer initialization of objects until they are needed.

This is pretty funny. You wrote external code that can handle the concept of delayed initialization. I wrote internal code that could handle delayed initialization, but didn't like how it hijacked the __New and __Call meta-functions because it didn't provide the user a choice whether they wanted the...
by iseahound
Today, 11:26
Forum: Wish List
Topic: Defer initialization of objects until they are needed.
Replies: 5
Views: 78

Re: Defer initialization of objects until they are needed.

I don't know. I'd prefer the choice of delaying the new command vs forcing the new operator to delay it. obj := new a() Sleep 2500 obj.California("sleeping") Sleep 2500 obj.California("eating") class a { __New() { if !(this.initalize) { MsgBox % "Function:" A_Space "Delay" A_Space A_ThisFunc return ...
by iseahound
Today, 10:28
Forum: Wish List
Topic: Defer initialization of objects until they are needed.
Replies: 5
Views: 78

Defer initialization of objects until they are needed.

When writing code, it makes sense to group all of the objects in the beginning. So I have code that reads a := new Object(), b := new Object, c := new Object()... It would be much more efficient to allow their initialization to be delayed until their first call. Meaning that the __New() meta functio...
by iseahound
11 Nov 2018, 22:35
Forum: Wish List
Topic: [Request]: Official Library & Wrapper
Replies: 89
Views: 3267

Re: [Request]: Official Library & Wrapper

yes I also find that node and chocolatey lack the elegance of apt-get which I am perfectly fine with. pip is okay but I think the command is py-3 -m pip install <version 3 compatible python package> is annoying with version management between v2 and v3. (Since pip can refer to a v2 or v3 python modu...
by iseahound
11 Nov 2018, 22:31
Forum: Scripts and Functions
Topic: FindText - Capture screen image into text and then find it Topic is solved
Replies: 204
Views: 45630

Re: FindText - Capture screen image into text and then find it Topic is solved

Regarding false positives/negatives, I think there are some improvements that can be made. I might add some stuff from FindText into my project Vis2, if that is okay with you feiyue.
by iseahound
10 Nov 2018, 13:05
Forum: Other Programming Languages
Topic: jethrow's preferred language ... and why
Replies: 3
Views: 243

Re: jethrow's preferred language ... and why

I agree Scala has some very nice syntax, and compiles to the Java Virtual Machine, so you're essentially writing Java. I'll throw out Haskell for a good taste of what mathematicians prefer, Coq if you are interested in proofs, Common LISP for its homoiconicity, and maybe get familiar with ML type la...
by iseahound
07 Nov 2018, 16:48
Forum: Ask For Help
Topic: msgbox - always on top - Yes/No Topic is solved
Replies: 6
Views: 172

Re: msgbox - always on top - Yes/No Topic is solved

try

Code: Select all

  Gui +LastFound +OwnDialogs +AlwaysOnTop
by iseahound
06 Nov 2018, 00:14
Forum: Wish List
Topic: [Request]: Official Library & Wrapper
Replies: 89
Views: 3267

Re: [Request]: Official Library & Wrapper

I really don't want a node_modules folder...
by iseahound
28 Oct 2018, 13:56
Forum: AutoHotkey v2 Development
Topic: Defer
Replies: 2
Views: 121

Re: Defer

Yes your code is exactly right. Defer resembles the __Delete meta function of an object. I've found myself creating objects with only __New and __Delete to replicate this functionality. Currently in v1 return a, DllCall("GlobalFree", "ptr", a) returns a and not the result of the DllCall. (I'm writin...
by iseahound
27 Oct 2018, 06:10
Forum: AutoHotkey v2 Development
Topic: Objects
Replies: 11
Views: 563

Re: Objects

Quick question: how fast do you expect the pure data objects to be? As fast as associative arrays? c?
by iseahound
26 Oct 2018, 23:42
Forum: AutoHotkey v2 Development
Topic: Defer
Replies: 2
Views: 121

Defer

@iseahound: If higher level concepts have influenced your AutoHotkey v2 Development ideas, what about lower level concepts? Assembly language etc. Cheers. Defer would allow functions to execute code after the function has returned. For reference this functionality already exists you can write retur...
by iseahound
26 Oct 2018, 23:33
Forum: AutoHotkey v2 Development
Topic: Bug: GuiCtrl.Pos[xyhw]
Replies: 13
Views: 521

Re: Bug: GuiCtrl.Pos[xyhw]

I thought about it and it is useless. I use square brackets when I want to evaluate the variable inside. If I am not using square brackets it means I already know the name of my sub object. Why are you evaluating my y in x.y[z]? This is extra work. I've encountered this issue before and the solution...
by iseahound
26 Oct 2018, 23:10
Forum: AutoHotkey v2 Development
Topic: Bug: GuiCtrl.Pos[xyhw]
Replies: 13
Views: 521

Re: Bug: GuiCtrl.Pos[xyhw]

x.y.z is the same as (x.y).z Yes, resolution of subobjects is left associative. Makes sense since it is like browsing through a folder hierarchy. x.y[z] is the same as x[y,z] Could you give a motivating example of the usefulness of this weird right-associativity? This is bad language design, since ...
by iseahound
23 Oct 2018, 10:02
Forum: Scripts and Functions
Topic: FindText - Capture screen image into text and then find it Topic is solved
Replies: 204
Views: 45630

Re: FindText - Capture screen image into text and then find it Topic is solved

Feiyue, some questions for you:

1) Why is the image selection so small?
2) Also color2two doesn't work very well. If I select a red square -> grey, sometimes it will match a green square or blue square.
3) Can I make some changes to your script? I hope you will put the project on GitHub
by iseahound
12 Oct 2018, 14:14
Forum: AutoHotkey v2 Development
Topic: Operators vs Methods
Replies: 35
Views: 758

Re: Operators vs Methods

I'll elaborate some of my ideas is a future post. For the time being, it would be wise to remember the history of programming. I was taught lambda calculus and scheme first, and although I hated it and absolutely dispised it, calling it useless, impractical, and without meaning, lately it is the exa...
by iseahound
12 Oct 2018, 12:10
Forum: AutoHotkey v2 Development
Topic: Operators vs Methods
Replies: 35
Views: 758

Re: Operators vs Methods

Click has no obvious candidate for epsilon . Compare to, for example numput , which maps A -> A + e Cheers. I'm pretty sure the + means choice, so A gets mapped to A or e. Careful with the symbols! They tend to mean different things in different areas of mathematics. That's why I wanted operator ov...
by iseahound
12 Oct 2018, 11:58
Forum: AutoHotkey v2 Development
Topic: Operators vs Methods
Replies: 35
Views: 758

Re: Operators vs Methods

I've never considered the existence of a map() function to be paramount, but rather trivial. In other words, I was surprised that a map() function was not built in. Had a map() function been built in, it would have error-ed out because: Click is not a function, so map would have returned an empty st...
by iseahound
11 Oct 2018, 19:38
Forum: AutoHotkey v2 Development
Topic: Operators vs Methods
Replies: 35
Views: 758

Re: Operators vs Methods

https://i.imgur.com/OIOfTdA.png Because in this case the function click is defined as an input (A) to an output (A) + side effect (∊). Also consider these 3 properties: https://i.imgur.com/P9C32Nr.png Now as a bonus, try to find a function that satisfies all three properties :p You could make the a...
by iseahound
11 Oct 2018, 12:49
Forum: AutoHotkey v2 Development
Topic: Operators vs Methods
Replies: 35
Views: 758

Re: Operators vs Methods

How is this odd? What did you expect click to return? I expected Click to return its arguments, unmodified. this is my first time using v2. shouldn't that be a prerequisite before starting a thread such as this? I don't know. This will take a long time to explain, and I will make a new thread, so t...
by iseahound
07 Oct 2018, 21:27
Forum: AutoHotkey v2 Development
Topic: <> no longer acceptable as a comparison operator
Replies: 48
Views: 1623

Re: <> no longer acceptable as a comparison operator

Yeah, I gotta be honest, A_StringCaseSense makes no sense. I also like the difference between = and == and for god's sake I hope that I never have to see ===.

Go to advanced search