[Request]: Official Library & Wrapper

Propose new features and changes
User avatar
tomoe_uehara
Posts: 213
Joined: 05 Oct 2013, 12:37
Contact:

[Request]: Official Library & Wrapper

12 Sep 2018, 05:26

I saw there are lots of users who posted their libs to make ahk usage easier, but I can't find any official compilation of libs & wrappers.
What I mean is something like:
  • Parser (XML, JSON, YAML)
  • HTML Decode/Encode
  • Additional math functions
  • Third party wrapper (Excel, SQL, other popular apps)
  • Network Functions (OAuth, WebSocket, HTTP Request, RESTful Services: POST, GET, PUT, PATCH, DELETE)
  • Archiving functions (Zip, Rar, 7z, tar.gz)
  • Hashing Functions (MD5, SHA, CRC32)
  • Graphic Functions (GDI+)
  • Serialize, Unserialize
  • etc
To make it easier to maintain, the compilation can be put into a public Github repository (perhaps controlled by https://github.com/ahkscript or something else), so everyone can contribute in form of bug fixes & submitting pull requests.

Thank you :wink:
guest3456
Posts: 3454
Joined: 09 Oct 2013, 10:31

Re: [Request]: Official Library & Wrapper

12 Sep 2018, 08:39

tomoe_uehara wrote:but I can't find any official compilation of libs & wrappers.
well of course there's nothing "official" because who would have the authority to claim which list is the "official" one? there is this list on github, where you could submit pull requests to add any libraries you want to share. matter of fact i'm going to do that now to add the GDIP AHKv2 version

https://github.com/ahkscript/awesome-AutoHotkey

sounds like thats what youre looking for

User avatar
Frosti
Posts: 426
Joined: 27 Oct 2017, 14:30
Contact:

Re: [Request]: Official Library & Wrapper

12 Sep 2018, 18:33

I offer one unsorted collections of libraries. Look at my links below. At every visit in my AHK\libs folder I reorganize it a bit. But at now it's not worth to publish the changes I've made. Since the last publish their are waiting 100 new libraries to join the collection. But 'No time' is my biggest enemy since weeks.
iseahound
Posts: 1434
Joined: 13 Aug 2016, 21:04
Contact:

Re: [Request]: Official Library & Wrapper

12 Sep 2018, 19:40

We're all just waiting for someone to create the AutoHotkey version of https://pypi.org/ or https://www.npmjs.com/ or https://rubygems.org/ or https://crates.io/ etc.

Note that C and C++ work just fine without an official repository, and Go seems to just have https://godoc.org/ and keeping in mind that Go is developed by Google, using a search engine to find packages is very "googleish"
User avatar
jeeswg
Posts: 6902
Joined: 19 Dec 2016, 01:58
Location: UK

Re: [Request]: Official Library & Wrapper

12 Sep 2018, 23:35

- Ultimately every list, even the 'official' list, is just someone's personal list.
- @tomoe_uehara: By the looks of things you would make a very good list, so I would encourage you to start a new thread somewhere.
- Any list done 'by committee' is likely to be uniquely bad e.g. disorganised and with a slowness to replace antiquated/obsolete scripts, i.e. insufficient pruning, and a slowness to add new scripts, i.e. delayed responsiveness. Also, a reluctance to say 'no' to people can lead to lacklustre additions.
- The problem also with some lists is that they are too long, including my own, I did write some very short 'essential' scripts sections however (and other sublists are nicely sized).
best utilities + best AutoHotkey scripts (+ useful tips) - AutoHotkey Community
https://autohotkey.com/boards/viewtopic.php?f=7&t=28149
- Also, I have a temporary list of scripts that I might add to this list, but it's massive (needs filtering). Perhaps at some point I will update it, i.e. when the addition rate slows down and I complete certain projects.

- Some further comments:
best utilities + best AutoHotkey scripts (+ useful tips) - AutoHotkey Community
https://autohotkey.com/boards/viewtopic ... 86#p132086
with [curated] script lists, people get over-excited about grand projects which hardly anyone ever uses
...
Sometimes short lists of favourite links can be really good, because it means that each one is of some importance to the user.
Btw sometimes it's not about the length of the list, but the tastes of the user. If I find a user whose interests coincide neatly with mine, their list will be exceptionally useful to me.
- Another link:
[AutoHotkey Programming Tools] + awesome-AutoHotkey list. - AutoHotkey Community
https://autohotkey.com/boards/viewtopic.php?f=6&t=4161
- [EDIT:] See also: REFERENCE: LISTS OF SCRIPTS / FAQ, here:
best utilities + best AutoHotkey scripts (+ useful tips) - AutoHotkey Community
https://autohotkey.com/boards/viewtopic.php?f=7&t=28149
Last edited by jeeswg on 13 Sep 2018, 00:02, edited 1 time in total.
homepage | tutorials | wish list | fun threads | donate
WARNING: copy your posts/messages before hitting Submit as you may lose them due to CAPTCHA
User avatar
tomoe_uehara
Posts: 213
Joined: 05 Oct 2013, 12:37
Contact:

Re: [Request]: Official Library & Wrapper

12 Sep 2018, 23:45

guest3456 wrote:there is this list on github, where you could submit pull requests to add any libraries you want to share. matter of fact i'm going to do that now to add the GDIP AHKv2 version
https://github.com/ahkscript/awesome-AutoHotkey
Yes, I'm aware of that, but that's just a "bookmark" which links to another place, and some of the scripts there are hosted in various places, even VxE's Dropbox links has 404 on it..

Frosti wrote:At every visit in my AHK\libs folder I reorganize it a bit. But at now it's not worth to publish the changes I've made. Since the last publish their are waiting 100 new libraries to join the collection.
For me that kind of versioning control is like SVN, with Git we can have multiple people who can help reorganize and keep it up to date :thumbup:

iseahound wrote:We're all just waiting for someone to create the AutoHotkey version of https://pypi.org/ or https://www.npmjs.com/ or https://rubygems.org/ or https://crates.io/ etc.
Yes that's what I'm talking about, a place to collect useful scripts, libs & functions from AHK users that scattered all over the forum.
My point is that we don't have to reinvent the wheel by writing different codes but to achieve the same result over and over again.

I'm thinking of a categorized directory (section) to make it easier, I like how linux devs organize their file naming convention, for example: https://packages.ubuntu.com/trusty/

Anyone else have thoughts about this? Pros & cons are welcome ;)
User avatar
tomoe_uehara
Posts: 213
Joined: 05 Oct 2013, 12:37
Contact:

Re: [Request]: Official Library & Wrapper

13 Sep 2018, 00:13

jeeswg wrote:- Ultimately every list, even the 'official' list, is just someone's personal list.
TBH it is, but at least we will have a unified lib compilation. Later, we can add more functionalities, fix bugs & implement user suggestions by using Git Pull Requests. The hardest thing is to take the first step :D

jeeswg wrote:- Any list done 'by committee' is likely to be uniquely bad e.g. disorganised and with a slowness to replace antiquated/obsolete scripts, i.e. insufficient pruning, and a slowness to add new scripts, i.e. delayed responsiveness. Also, a reluctance to say 'no' to people can lead to lacklustre additions.
That's why we need a comittee that consists of several people who are active & have (spare) time to take care the continuity of the lib compilation.

jeeswg wrote:- The problem also with some lists is that they are too long, including my own, I did write some very short 'essential' scripts sections however (and other sublists are nicely sized).
Our first priority would be functionality over readability, it's like jquery.js vs jquery.min.js, but it's not necesarily to strip all blank spaces though :lol:
This lib is intended for casual user's daily usage, while more advanced users can just fork the lib and add enhancements to their liking.
Most of people would just hop into a car, instead of inspecting every part of it before they ride, isn't it?

jeeswg wrote:- Also, I have a temporary list of scripts that I might add to this list, but it's massive (needs filtering). Perhaps at some point I will update it, i.e. when the addition rate slows down and I complete certain projects.
Yes these kind of scripts are very useful, but if they are buried over several pages under the "Scripts and Functions" forum section, they will eventually forgotten.
With this compilation, we hope those codes which made by briliant minds will survive and even got better over time :thumbup:
guest3456
Posts: 3454
Joined: 09 Oct 2013, 10:31

Re: [Request]: Official Library & Wrapper

13 Sep 2018, 07:23

tomoe_uehara wrote:
jeeswg wrote:- Ultimately every list, even the 'official' list, is just someone's personal list.
TBH it is, but at least we will have a unified lib compilation. Later, we can add more functionalities, fix bugs & implement user suggestions by using Git Pull Requests. The hardest thing is to take the first step :D
the first step is already taken. this was your first post:
tomoe_uehara wrote: To make it easier to maintain, the compilation can be put into a public Github repository (perhaps controlled by https://github.com/ahkscript or something else), so everyone can contribute in form of bug fixes & submitting pull requests.
that's exactly what the awesome-authotkey list is:
https://github.com/ahkscript/awesome-AutoHotkey

any one can add to the list or edit the list by submitting pull requests to the list. its a group effort. 347 commits. 21 contributors already.

unless of course youre expecting all the actual CODE of the libraries to all be in one place. but that is just absurd. each library should be in its own repo so that issues and bugs can be contained and maintained by the individual authors.

iseahound
Posts: 1434
Joined: 13 Aug 2016, 21:04
Contact:

Re: [Request]: Official Library & Wrapper

13 Sep 2018, 08:50

I don't think the awesome series of lists is the best way to display fundamentally helpful (and small) libraries like the OP is discussing. It's been more to display the capabilities of a language, and large mature libraries.
User avatar
nnnik
Posts: 4500
Joined: 30 Sep 2013, 01:01
Location: Germany

Re: [Request]: Official Library & Wrapper

13 Sep 2018, 10:19

It would be good if AHK included a library manager by default.
This has been attempted multiple times but without backing from lexikos or heavy support from this site the project will just die.
Recommends AHK Studio
User avatar
nnnik
Posts: 4500
Joined: 30 Sep 2013, 01:01
Location: Germany

Re: [Request]: Official Library & Wrapper

13 Sep 2018, 10:49

And before joedf I think there were 1 or 2 other attempts.
We need a new software on this site that lets us collect APIs Programs and general techniques/concepts and connect them to specific libraries that implement/wrap them.
The forum software is not suited for this sort of collection.
Recommends AHK Studio
guest3456
Posts: 3454
Joined: 09 Oct 2013, 10:31

Re: [Request]: Official Library & Wrapper

13 Sep 2018, 10:49

ah a package manager

User avatar
kczx3
Posts: 1640
Joined: 06 Oct 2015, 21:39

Re: [Request]: Official Library & Wrapper

13 Sep 2018, 11:13

I think a package manager is exactly what AHK needs. I'd fully support it. But yes, likely need a separate application to handle that.
User avatar
nnnik
Posts: 4500
Joined: 30 Sep 2013, 01:01
Location: Germany

Re: [Request]: Official Library & Wrapper

13 Sep 2018, 11:37

A package manager could pull it's data from the software that I mentioned before.
We would also need a place to host the repositories for the scripts and make it possible to add help etc.
It's necessary to enforce specific standards for the libraries.
Recommends AHK Studio
User avatar
jeeswg
Posts: 6902
Joined: 19 Dec 2016, 01:58
Location: UK

Re: [Request]: Official Library & Wrapper

13 Sep 2018, 13:16

How are you going to handle AHK v1.0 scripts v. AHK v1.1 scripts v. AHK v2.0 scripts? Cheers.
homepage | tutorials | wish list | fun threads | donate
WARNING: copy your posts/messages before hitting Submit as you may lose them due to CAPTCHA
User avatar
kczx3
Posts: 1640
Joined: 06 Oct 2015, 21:39

Re: [Request]: Official Library & Wrapper

13 Sep 2018, 13:59

I see no reason to keep/support v1.0 scripts.

That said, the package itself would have versions that support certain versions of AHK. This is how many javascript packages work on npm. Some others do create separate packages for different "major" versions.

Then the user would just need to declare what version of the package they want to download to suit their needs.
User avatar
hoppfrosch
Posts: 443
Joined: 07 Oct 2013, 04:05
Location: Rhine-Maine-Area, Hesse, Germany
Contact:

Re: [Request]: Official Library & Wrapper

13 Sep 2018, 23:30

Joedf started another library manager project: https://github.com/ahkscript/ASPDM (mentioned here: https://autohotkey.com/boards/viewtopic ... 919#p18919)
User avatar
kczx3
Posts: 1640
Joined: 06 Oct 2015, 21:39

Re: [Request]: Official Library & Wrapper

14 Sep 2018, 09:37

hoppfrosch wrote:Joedf started another library manager project: https://github.com/ahkscript/ASPDM (mentioned here: https://autohotkey.com/boards/viewtopic ... 919#p18919)
Oh! Didn't realize the source was out on GitHub for this. The client application could use some work... It just downloads files and reads from them as the "API". Even using a synchronous HTTP request would be better than that.

They have a lot of information on the repository about how things need to be structured and what not. It could be usable but we may want to review it as it's rather old.
elmo
Posts: 113
Joined: 09 Oct 2013, 09:08

Re: [Request]: Official Library & Wrapper

14 Sep 2018, 10:55

This is a good topic, if nothing else, it is beneficial to reveal some of the links to existing collections. Moreover, it reminds how smart the folks in this community are.

In the matter of a definitive collection, it seems there is a binary question that needs to be answered before all others.

As @guest3456 emphasizes, there can be links to (a) the containing post / repository or (b) to the code block itself.

@tomoe_uehara seems to be talking about (b) and, in the examples from other major platforms cited by @iseahound, they return code.

Anyway, IMHO, the ideal situation would be (b) a definitive repository of code + reference to origin / source.
Last edited by elmo on 14 Sep 2018, 11:17, edited 1 time in total.

Return to “Wish List”

Who is online

Users browsing this forum: No registered users and 29 guests