AutoHotkey Community

It is currently May 25th, 2012, 7:51 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 70 posts ]  Go to page Previous  1, 2, 3, 4, 5  Next
Author Message
 Post subject:
PostPosted: April 15th, 2007, 10:24 am 
Offline

Joined: May 24th, 2006, 2:49 pm
Posts: 4511
Location: Belgrade
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.

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 15th, 2007, 10:53 am 
Offline

Joined: October 17th, 2006, 4:15 pm
Posts: 7501
Location: Australia
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++.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 15th, 2007, 10:55 am 
Offline

Joined: May 24th, 2006, 2:49 pm
Posts: 4511
Location: Belgrade
ok

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 10th, 2007, 12:03 pm 
Offline

Joined: May 19th, 2007, 4:15 pm
Posts: 5
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


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 10th, 2007, 12:35 pm 
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.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: June 10th, 2007, 3:45 pm 
Offline

Joined: February 14th, 2005, 4:05 pm
Posts: 4710
Location: Boulder, CO
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.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 10th, 2007, 6:20 pm 
Offline

Joined: June 8th, 2007, 8:17 pm
Posts: 28
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 June 10th, 2007, 6:58 pm, edited 1 time in total.

Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 10th, 2007, 6:47 pm 
Offline

Joined: June 8th, 2007, 8:17 pm
Posts: 28
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.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 10th, 2007, 6:57 pm 
Offline
User avatar

Joined: December 29th, 2004, 1:28 pm
Posts: 2541
- added a download for version 2.01 to the first post [thanks Kulturbanause]


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 11th, 2007, 8:47 pm 
Offline

Joined: October 28th, 2006, 2:14 am
Posts: 297
Location: US
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 :D


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 11th, 2007, 8:55 pm 
Offline
User avatar

Joined: August 11th, 2004, 1:47 am
Posts: 5346
Location: UK
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.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 12th, 2007, 12:36 am 
Offline
User avatar

Joined: December 29th, 2004, 1:28 pm
Posts: 2541
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.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 12th, 2007, 12:44 am 
Offline
User avatar

Joined: December 29th, 2004, 1:28 pm
Posts: 2541
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... :? :shock:


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 12th, 2007, 2:13 am 
Offline
User avatar

Joined: December 29th, 2004, 1:28 pm
Posts: 2541
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 :) .


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 12th, 2007, 8:59 am 
Offline
User avatar

Joined: August 11th, 2004, 1:47 am
Posts: 5346
Location: UK
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... :?

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.


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 70 posts ]  Go to page Previous  1, 2, 3, 4, 5  Next

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 18 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group