Ah! Thanks for making my notice the GCM -> GCD typo.
I'm not gunning for the leaderboards myself, it's pretty hopeless ^^. Yes i am assuming based off of experience and utility tools.
(Also completely pointlessly have a functions to extract the session cookie from chrome storage from the CLI, despite being long-lived, and therefore much simpler to simply copy-paste from debugger window)
The main catch is it would often be faster to use a "real" programming langage ^^,
both in writing the code, and in execution time for some loop heavy examples: equivalent code that completes say in 1 second in python, completing in 1 minute in jq. Also missing a way to call native libraries, to do stuff like say "md5" (relevant) in past years advents-of-code.
That being said i like the general "pipe", map-reduce feel of the language.
Like bash one-liners It can make for very terse implementations.
I like to add comments, and indentation to make it readable though.
I liked the slight trickiness of part 2, that the naive implementation would never complete in time.
As always doing a JQ implementation:
Replaced less-than (and greater-than for symmetry) symbols with full-width version, since lemmy apparently doesn't handle them well within a code block: replacing less than with lt;
Second part was harder than expected, i had to resort to regex.
Day 2
Not too much trickery in this example.
Satisifyingly straightfoward edit form part one.
Day 3
Took More time than i expected, glad i had the idea early to search by the indices of the symbols and not the digits.
Not super well suited to jq, unless I'm missing a better solution.
One (simpler) explanation is that proving an absence of something is almost impossible, and that attempting too hard would make them look a heck of a lot guilty.
There is a good reason why the burden of evidence is “innocent until proven guilty”, and yes this extends to the (in your eyes) untrustworthy.
Prove to me you never stole candy from a store as a child (or if you did, replace that accusation with any item of higher value until you hit something you did not steal)
One of the more disturbing things that happened at work when using MS Word, was the automatic addition of alt-text images.
I didn't ask for that, I didn't click any "Please send my images to the cloud, possibly leaking sensitve material, so inference can be run there, to add potentially unhelpful descriptions"
Is document editing really a task that benefits from AI?
An example of unhelpfulness:
I'm torn between at almost praising meek half-assed attempt at accessibility, and shrieking to the heavens about this unweclome shoe-horned addition.
Ah, but each additional sentence strikes home the point of absurd over-abundance!
Quite poetically, the sin of verbosity is commited to create the illusion of considered thought and intelligence, in the case of hpmor literally by stacking books.
Amusingly him describing his attempt as "striking words out" rather than "rewording" or "distilling", i think illustrates his lack of editing ability.