Jump to content

TheDcoder

Active Members
  • Posts

    7,103
  • Joined

  • Days Won

    88

Everything posted by TheDcoder

  1. _Translate Simple translation library/UDF for AutoIt Inspired by gettext and AU3Text. Usage Extractor Place compiled eci.exe binary under eci\build folder Run Extract.au3 script to interactively extract all translatable strings from your script NOTE: The extractor will only extract translatable strings from your code (i.e strings wrapped in the _ function): #include "_.au3" ConsoleWrite("This string will NOT be extracted") ConsoleWrite(_("This string will be extracted")) UDF Include _.au3 in your script Call _Translate_LoadTable with path of your translation table Use _ to wrap all of your strings which need to be translated View code at GitHub - Download code as ZIP - Download compiled eci.exe
  2. Got it. Is this true if the code is not processing any customer data on the developer's computer? I mean, does something like Microsoft Excel fall under GDPR even if it does not process any data on their computers? (file is local to customer's computer)
  3. @mLipok Thanks for clarification, I was curious and thought your UDF was to make the script/program itself GDPR compliant, but now I realize that it is just an helper UDF to make customer data processing GDPR compliant
  4. Interesting, I thought GDPR only applies to service providers (who store customer data in their own servers), not to software running on personal computers. Kind of pointless if it is required by law for personal computers if there is no data being transmitted.
  5. I don't think so, functional programming is more related to using pure mathematics than using "functions", it is easy to confuse both because function can mean different things depending on the context. Haskell would be a good candidate for a functional programming language I imagine. I think you are looking for the term "Procedural", which correctly matches the Functions we use in AutoIt, sometimes functions are also called procedures, bits of code which can be called to perform a procedure . Most BASIC-like languages are procedural programming languages. The other kind of programming languages are called Object-oriented (programming) languages, but I am guessing you are already familiar with that. Some BASIC-derivatives have added support for these OOP features.
  6. Hey everyone, just got back from my 2 month break from posting in this topic, LOL Before you add this project to the long list of other "AutoIt wannabe languages", let me tell you that I am still actively thinking about how to progress forward . As a matter of fact, the reason for the delay is that I got busy with another freelance project and so I haven't been able to concentrate on this project with that and all the other good stuff in life. Today I would like to break the silence by reporting on some progress I made while I was quiet. -- I have started work on the next step of parsing, which is syntactic analysis, i.e taking those tokens and building the actual code tree so that the interpreter/compiler can know what the code is trying to do. Before I could start writing code to do that, I need to get all the tokens in a neat array, so I implemented a linked list to do just that... a linked list is a kind of dynamic array, to which elements could be added/removed easily compared to traditional arrays: https://github.com/DcodingTheWeb/EasyCodeIt/commit/5c43ffd392e8a2c26d9187767298167cf2de66c2 I also modified the output code to work with the new dynamic array instead of getting the tokens one-by-one and printing them without storing anything in the memory, and I have also added a neat feature which lets the user know in advance if there are any unknown tokens in the code, which was previously not possible . Here is some sample output: ConsoleWrite("This script has an unknown token" & @CRLF) % ; Here it is !!! WARNING: Unknown token(s) encountered !!! ---### TOKEN ###--- Type: Word Data: ConsoleWrite ---### TOKEN ###--- Type: Bracket Data: ( ---### TOKEN ###--- Type: String Data: This script has an unknown token ---### TOKEN ###--- Type: Operator Data: & ---### TOKEN ###--- Type: Macro Data: CRLF ---### TOKEN ###--- Type: Bracket Data: ) ---### TOKEN ###--- Type: Unknown Data: % ---### TOKEN ###--- Type: Comment Data: Here it is
  7. @JockoDundee In olden times, AutoIt was open-source and inevitably there were some forks, which one of them has gained immense popularity over the years, more info can be found on the Wikipedia page for AutoIt
  8. In the same post that you mentioned: "less CPU usage (...) can you maybe check this?", as direct as it can get Your brain was clearly under the impression enough to ignore the meaning behind the sentence Doesn't matter, the only street which matters to me is the wall street -- If you are done having fun, it will be interesting to see if how much % of your CPU is used for each algorithm.
  9. I said check for CPU usage, not run time, two different things Since your disk is a bottleneck, your usage should be less than 100% for CRC32 or xxHash, and MD5 should use more of your CPU than those two. Don't check with SHA256, because your processor is not fast enough to hit the disk bottle neck.
  10. Results look much more consistent than fsum, so I suggest replacing fsum with rhash. I didn't request SHA256, but thanks for showing us the results, since your processor is slower, the disk is no longer a bottleneck. There is no competition between your Intel Atom and my Intel Core i7 really. For what reason I wonder?
  11. I agree with @DonChunior, their version uses StringIsDigit while @jchd's version uses RegEx, it is a matter of opinion which is simpler, not all people know or like RegEx
  12. Slight nitpick, you can use TrayOnEvent instead of making your own Sleep function which checks for tray messages
  13. I think we missed another important aspect while discussing disk bottlenecks... a faster algorithm also means less CPU usage, which should especially be evident in your low-powered netbook, can you maybe check this? Something like SHA256 hash computing would probably use one of your cores in full-speed but CRC32 might only use less than 25% of it.
  14. Talk about DRM 😓, you will definitely not be able to use the same service Google/YT are providing without paying them. But you can always use free apps like Spotify to stream music... or if you want to hear music offline from YouTube, there is a nice app called NewPipe, it is a frontend for YouTube and it allows you to download the audio. On desktop you can use youtube-dl. If you are REALLY desperate for high quality music, there are websites out there which provide FLAC files This reminds me of this meme again:
  15. I'd suggest at-least using rhash seeing as how FSUM has some shortcomings... and did I mention rhash is open-source?
  16. @TheSaint Yup, exactly as shown in my test, currently our HDDs are very slow that even the most advanced algorithms are hitting their top speeds waiting for new data to arrive. That is why benchmarks with real HDDs are not really ideal, they have bottlenecks, the speed of the program can't exceed the speed of the data transfer. So ideally you would be using xxHash since it offers the most performant hash algorithm... it even hits the bottleneck for RAM . In any case, thanks for playing along... glad to see that xxhash for win32 is working, I was a bit doubtful about that.
  17. Probably the latter, just remembered that ZST is also developed by Yann Corbet (not sure if the name is correct), the same person who made xxHash. This is not a release... it is part of the MSYS2 eco-system of packages, not something your typical joe would be using. The package file is not meant for normal usage, it is automatically download and installed into your computer. I gave you a link to it because that is the only place where I could find a compiled binary for the 32-bit version... short of compiling it myself . I repackaged it in a ZIP, enjoy: https://mega.nz/file/OY4wWICJ#e90d_7K-mdN-iqTCbJ7W3ZGNaeRpvfDZHhrMcusmXUE (You can find the executables under the bin folder) RIP Signal, sad to hear that... and frankly, I don't buy it, it should not have that kind of power... unless you had it set it as your messaging app (you didn't). So I blame your SMS app, OEM apps are shit like that, use something sensible like QKSMS as your SMS app.
  18. I believe "CityHash" is a variant of the CRC algorithm... I might be wrong, just guessing. Who knows what those nerds are up-to anyway Oops, no idea how I missed the obvious win64 bit... looks like there aren't official builds for the 32-bit version, but you are in luck because I found an alternative version built by the MSYS2 project, this should be 32-bit: http://repo.msys2.org/mingw/i686/mingw-w64-i686-xxhash-0.7.4-1-any.pkg.tar.zst Use 7-zip because zst is a relatively new compression algorithm. Let me know how it goes.
  19. @Kovacic Oh, that's interesting... I thought CrossOver was just the commercial version of Wine . Were you not able to run GUI applications in Wine without CrossOver?
  20. If you want a modern, really fast (and FOSS) hashing algorithm, try xxHash. It is neither CRC32 or MD5, but it is explicitly designed for testing data integrity between transfers. It is the one of the fastest algorithms out there. You can download the command-line tool from GitHub. Edit: Just did a benchmark, it calculated the hash of a 1GB file within ~115ms! TheDcoder@arch /tmp> time xxhsum bigfile fd1792309f7da722 bigfile ________________________________________________________ Executed in 115.66 millis fish external usr time 75.83 millis 220.00 micros 75.61 millis sys time 39.89 millis 97.00 micros 39.79 millis
  21. Already did you stupid a$$ donkey, see my benches It means you forgot to check it out properly
  22. Nice, I can definitely see the merit of such a macro, especially in UDFs like IE.au3 where the function name is often hardcoded in diagnostic strings @mLipok Also, I find it a bit ironic that jpm sent a patch to Jon after you made your comment saying it might not be necessary... 6 years and a single comment is all it took
  23. LOL, maybe Might be, that video does show the cursed fork of AUT, pretty sure that is illegal around these parts
  24. Horse $#!T I don't understand horses, and it was just a stupid analogy that I came up in the heat of the moment In reality both CRC and MD5 are mathematical functions, number goes in and number comes out, there wouldn't be much variation because the input isn't parsed... it is just processed with the same algorithm over and over. Think I already did way back in some other thread, and also used it in my tests... it is called rhash and it is cross-platform. I recall FSUM had some shortcomings that I pointed out in the other thread, can't recall them right now, but FSUM definitely isn't the perfect pony you might have had in your mind
  25. Wine is great, it emulates most of the WinAPI, a god sent for us Linux Gamers who want to play Windows games @argumentum Don't think it is XQuartz, it is a legit software and it is not related to AutoIt. Perhaps they used a decompiler somewhere? @Kovacic Can you atleast tell us why this "other software" is required? AutoIt works out of the box in wine for me, no additional software required.
×
×
  • Create New...