| View previous topic :: View next topic |
| Author |
Message |
majkinetor
Joined: 24 May 2006 Posts: 4511 Location: Belgrade
|
Posted: Sun Apr 15, 2007 9:24 am Post subject: |
|
|
| 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 |
|
 |
Lexikos
Joined: 17 Oct 2006 Posts: 7299 Location: Australia
|
Posted: Sun Apr 15, 2007 9:53 am Post subject: |
|
|
| 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 |
|
 |
majkinetor
Joined: 24 May 2006 Posts: 4511 Location: Belgrade
|
Posted: Sun Apr 15, 2007 9:55 am Post subject: |
|
|
ok _________________
 |
|
| Back to top |
|
 |
Kulturbanause
Joined: 19 May 2007 Posts: 5
|
Posted: Sun Jun 10, 2007 11:03 am Post subject: |
|
|
| 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 |
|
 |
Lexikos* Guest
|
Posted: Sun Jun 10, 2007 11:35 am Post subject: |
|
|
| 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
|
Posted: Sun Jun 10, 2007 2:45 pm Post subject: |
|
|
| 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 |
|
 |
sanitarium
Joined: 08 Jun 2007 Posts: 28
|
Posted: Sun Jun 10, 2007 5:20 pm Post subject: |
|
|
| 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 |
|
 |
sanitarium
Joined: 08 Jun 2007 Posts: 28
|
Posted: Sun Jun 10, 2007 5:47 pm Post subject: |
|
|
| 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 |
|
 |
corrupt
Joined: 29 Dec 2004 Posts: 2485
|
Posted: Sun Jun 10, 2007 5:57 pm Post subject: |
|
|
| - added a download for version 2.01 to the first post [thanks Kulturbanause] |
|
| Back to top |
|
 |
Elevator_Hazard
Joined: 28 Oct 2006 Posts: 297 Location: US
|
Posted: Mon Jun 11, 2007 7:47 pm Post subject: |
|
|
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  |
|
| Back to top |
|
 |
polyethene
Joined: 11 Aug 2004 Posts: 5248 Location: UK
|
Posted: Mon Jun 11, 2007 7:55 pm Post subject: |
|
|
| 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.) _________________ GitHub • Scripts • IronAHK • Contact by email not private message. |
|
| Back to top |
|
 |
corrupt
Joined: 29 Dec 2004 Posts: 2485
|
Posted: Mon Jun 11, 2007 11:36 pm Post subject: |
|
|
| 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 |
|
 |
corrupt
Joined: 29 Dec 2004 Posts: 2485
|
Posted: Mon Jun 11, 2007 11:44 pm Post subject: |
|
|
| 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...  |
|
| Back to top |
|
 |
corrupt
Joined: 29 Dec 2004 Posts: 2485
|
Posted: Tue Jun 12, 2007 1:13 am Post subject: |
|
|
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 . |
|
| Back to top |
|
 |
polyethene
Joined: 11 Aug 2004 Posts: 5248 Location: UK
|
Posted: Tue Jun 12, 2007 7:59 am Post subject: |
|
|
| 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. _________________ GitHub • Scripts • IronAHK • Contact by email not private message. |
|
| Back to top |
|
 |
|