AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

ahkstructlib - Functions for use with Structures (version 2)
Goto page Previous  1, 2, 3, 4, 5  Next
 
Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions
View previous topic :: View next topic  
Author Message
majkinetor



Joined: 24 May 2006
Posts: 4511
Location: Belgrade

PostPosted: Sun Apr 15, 2007 9:24 am    Post subject: Reply with quote

Quote:
WTF IS THE POINT YOU ARE TRYING TO MAKE!??

LOL, you are funny.

The point is that C# although extremely sophisticatet and abstract language, it is slow as hell due to the level of abstraction. Its normal thing thoguh, increase in abstraction is inversly proportional with performance. And I am not talking about small performance problems. Virutal machines are going to shine in next few years, IMO. So, you can hardly use C# for the job requires performance.
_________________
Back to top
View user's profile Send private message
Lexikos



Joined: 17 Oct 2006
Posts: 7299
Location: Australia

PostPosted: Sun Apr 15, 2007 9:53 am    Post subject: Reply with quote

majkinetor wrote:
So, you can hardly use C# for the job requires performance.

That depends highly on the application, as well as the APIs you use. Maybe your C# code is slow as hell, but mine surely isn't.

It's not like it's difficult to write badly performing code in, say, C++.
Back to top
View user's profile Send private message Visit poster's website
majkinetor



Joined: 24 May 2006
Posts: 4511
Location: Belgrade

PostPosted: Sun Apr 15, 2007 9:55 am    Post subject: Reply with quote

ok
_________________
Back to top
View user's profile Send private message
Kulturbanause



Joined: 19 May 2007
Posts: 5

PostPosted: Sun Jun 10, 2007 11:03 am    Post subject: Reply with quote

Quote:
ahkstructlib2

ahkstructlib2 is an Include file that I've been working on to hopefully simplify working with structures in AutoHotkey. If anyone has the time to try it out and provide a bit of feedback I'd appreciate it. I'd be interested in hearing any comments, suggestions, bug reports, questions on usage, etc... Smile

** Updated to version 2.01 **
- Version 2.01 is now available with a few changes added since the beta release.
- Version 1 can be downloaded here in case anyone still needs the first version that was posted.


Hi guys i need that libary!!!
Does anybody know where can i download or achieve it? -->ahkstructlib2<--

Thanx in advance
Back to top
View user's profile Send private message
Lexikos*
Guest





PostPosted: Sun Jun 10, 2007 11:35 am    Post subject: Reply with quote

Kulturbanause wrote:
Hi guys i need that libary!!!
Does anybody know where can i download or achieve it? -->ahkstructlib2<--
It's in the [code] block under "Suggested filename: ahkstructlib2.ahk", near the bottom of the first post of this thread. Just copy-paste it into notepad and save.
Back to top
Laszlo



Joined: 14 Feb 2005
Posts: 4710
Location: Boulder, CO

PostPosted: Sun Jun 10, 2007 2:45 pm    Post subject: Reply with quote

Kulturbanause: You could also consider using the less fancy, much simpler script I put together in 10 minutes. Because the necessary function definitions take only 24 lines, it is easy to adapt to your special needs.
Back to top
View user's profile Send private message
sanitarium



Joined: 08 Jun 2007
Posts: 28

PostPosted: Sun Jun 10, 2007 5:20 pm    Post subject: Reply with quote

Laszlo wrote:
Kulturbanause: You could also consider using the less fancy, much simpler script I put together in 10 minutes. Because the necessary function definitions take only 24 lines, it is easy to adapt to your special needs.
...or, Laszlo, you could consider giving a few suggestions to improve the functions that are posted here that have been around a long time instead of suggesting alternatives to people that seem interested...

Last edited by sanitarium on Sun Jun 10, 2007 5:58 pm; edited 1 time in total
Back to top
View user's profile Send private message
sanitarium



Joined: 08 Jun 2007
Posts: 28

PostPosted: Sun Jun 10, 2007 5:47 pm    Post subject: Reply with quote

Kulturbanause wrote:
Hi guys i need that libary!!!
Does anybody know where can i download or achieve it? -->ahkstructlib2<--

Thanx in advance
You can either copy it from the first post or download it here. Thanks for reminding me that a download wasn't available.
Back to top
View user's profile Send private message
corrupt



Joined: 29 Dec 2004
Posts: 2485

PostPosted: Sun Jun 10, 2007 5:57 pm    Post subject: Reply with quote

- added a download for version 2.01 to the first post [thanks Kulturbanause]
Back to top
View user's profile Send private message Visit poster's website
Elevator_Hazard



Joined: 28 Oct 2006
Posts: 297
Location: US

PostPosted: Mon Jun 11, 2007 7:47 pm    Post subject: Reply with quote

Would you suggest this for a script in which there won't be many structures? I really like the object-orientedish feel of this.
_________________
Changed siggy at request of ahklerner Very Happy
Back to top
View user's profile Send private message
polyethene



Joined: 11 Aug 2004
Posts: 5248
Location: UK

PostPosted: Mon Jun 11, 2007 7:55 pm    Post subject: Reply with quote

Elevator_Hazard wrote:
Would you suggest this for a script in which there won't be many structures?
No because it's much slower and you lose the functionality of commands like Sort, SubStr(), parsing loops et al. This isn't real OOP anyway. If you want you can get the beta and experiment with NumGet/Put - I think Anchor v4 is a good example with point structs, window handles etc.)
_________________
GitHubScriptsIronAHK Contact by email not private message.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
corrupt



Joined: 29 Dec 2004
Posts: 2485

PostPosted: Mon Jun 11, 2007 11:36 pm    Post subject: Reply with quote

Elevator_Hazard wrote:
Would you suggest this for a script in which there won't be many structures? I really like the object-orientedish feel of this.
I would suggest it for that purpose as it makes struct usage much more user friendly. On the other hand, I would suggest using one of the less user friendly methods for scripts that heavily rely on repetitive struct access.
Back to top
View user's profile Send private message Visit poster's website
corrupt



Joined: 29 Dec 2004
Posts: 2485

PostPosted: Mon Jun 11, 2007 11:44 pm    Post subject: Reply with quote

Titan wrote:
No because it's much slower
It's not that slow and it depends on what you are scripting. Speed is not always essential in a script vs convenience and readability that can save a lot of time during design.
Titan wrote:
and you lose the functionality of commands like Sort, SubStr(), parsing loops et al.
What functionality is lost? Maybe if you don't know what you're doing...
Titan wrote:
This isn't real OOP anyway.
Nobody said it was and since nobody seems to care about the ability to create objects in AutoHotkey it likely won't happen unless I share a modified version...
Titan wrote:
I think Anchor v4 is a good example with point structs, window handles etc.)
Thanks for the commercial... Confused Shocked
Back to top
View user's profile Send private message Visit poster's website
corrupt



Joined: 29 Dec 2004
Posts: 2485

PostPosted: Tue Jun 12, 2007 1:13 am    Post subject: Reply with quote

In the interest of efficiency and keeping somewhat up to date, these functions, CMDret and a few others will be updated to use the new numspagetti and numnuts functions, callbacks and other current features in the current beta once they are offically released Smile .
Back to top
View user's profile Send private message Visit poster's website
polyethene



Joined: 11 Aug 2004
Posts: 5248
Location: UK

PostPosted: Tue Jun 12, 2007 7:59 am    Post subject: Reply with quote

corrupt wrote:
It's not that slow and it depends on what you are scripting.
It is much slower and more complex than simple variable assignments.

corrupt wrote:
What functionality is lost?
Pseudo array functions like Sort, Parsing loops, StringSplit and enumerations for example.

corrupt wrote:
nobody seems to care about the ability to create objects
Elevator_Hazard said "I really like the object-orientedish feel of this." which I was responding to.

corrupt wrote:
Thanks for the commercial...
Education != Commercial ffs... Confused

corrupt wrote:
CMDret and a few others will be updated to use the new numspagetti and numnuts functions, callbacks and other...
Great, they'll be useful examples to learn from.
_________________
GitHubScriptsIronAHK Contact by email not private message.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions All times are GMT
Goto page Previous  1, 2, 3, 4, 5  Next
Page 4 of 5

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group