[HN Gopher] Advent of q 2022
       ___________________________________________________________________
        
       Advent of q 2022
        
       Author : todsacerdoti
       Score  : 94 points
       Date   : 2022-12-08 14:15 UTC (8 hours ago)
        
 (HTM) web link (github.com)
 (TXT) w3m dump (github.com)
        
       | mlochbaum wrote:
       | Other array language AoC collections, although they don't come
       | with explanations like the OP:
       | 
       | - K: https://k.miraheze.org/wiki/Advent_of_Code
       | 
       | - APL: https://aplwiki.com/wiki/Advent_of_Code
       | 
       | - BQN: https://mlochbaum.github.io/BQN/community/aoc.html
        
       | vtail wrote:
       | It is no Q, but I really like Wolfram Language for its expressive
       | power. Look for example at this solution[1] for problem 8 -
       | highlights the fact that Parts 1 and 2 are essentially the same.
       | 
       | [1] https://twitter.com/vkryukov/status/1600726415778775042
        
       | hardware2win wrote:
       | I thought it is going to be Q#
        
         | culi wrote:
         | I thought this was gonna be a political post about progressive
         | politicians and far-right conspiracies
        
           | [deleted]
        
           | balls187 wrote:
           | I had to click the link because I sadly thought the same
           | thing as well.
        
       | aarchi wrote:
       | I've created a similar repo of puzzles, including Advent of Code,
       | but solved in the Whitespace programming language. Even otherwise
       | easy puzzles are made significantly more difficult in Whitespace,
       | as it is a quite low-level language. The control flow feels like
       | coding in assembly and the stack paradigm feels like a Forth. The
       | challenge is fun, though, and I'm filling in the gaps of my
       | (unofficial) standard library as I go.
       | 
       | https://github.com/andrewarchi/ws-challenges
        
       | rospaya wrote:
       | I thought AOC is the congresswoman and Q was either a queue or
       | Qanon. None of it was correct.
        
       | tantalor wrote:
       | Apparently "AOC" is also this electronics warfare advocacy org,
       | and definitely not a Batman archenemy secret society.
       | 
       | https://en.wikipedia.org/wiki/Association_of_Old_Crows
        
         | jeffreyrogers wrote:
         | They have published some really interesting books on EW during
         | the cold war. The volume I have has a lot of info that I've
         | been unable to find anywhere else.
        
         | pimlottc wrote:
         | Yes, the acronym could use expanding in the title
        
       | marginalia_nu wrote:
       | Rumor has it, a young Arthur Witney's cat once walked across his
       | keyboard. He jumped out of his chair in great joy and exclaimed
       | "By God, Senor Mittens! This is it! This is how my programming
       | language will look!"
        
         | nivertech wrote:
         | This cat only knew K, q is much more readable ;)
        
         | 082349872349872 wrote:
         | The operator space of TECO was apparently sufficiently dense
         | that hackers of yore could ask each other "what does your
         | name/handle do as a TECO command?"
        
       | sxp wrote:
       | I've tried to use AoC and Project Euler to learn k, but I've
       | given up in the past because there are multiple versions of k
       | interpreters & tutorials out there with subtly different language
       | behavior. And running code from one version of the language in
       | another interpreter results in obscure errors or crashes.
       | 
       | It would be nice if this repo specified the exact binaries used
       | so that the results would be reproducible.
        
         | abrudz wrote:
         | As far as I know, there's only one q, which is the query
         | language of kdb+, implemented in k4.
        
         | latenightcoding wrote:
         | try J
        
         | andylynch wrote:
         | This will be for kdb+. (Nick Parsis wrote a very good book on
         | it, Stephen Taylor is the Librarian at KX)
        
         | hoosieree wrote:
         | There's only one Q.
         | 
         | Open source K is likely compatible with ngn/k or oK, both of
         | which are based on k6. There are minor differences between
         | these 2 implementations (one is browser-native, the other
         | isn't) but for the most part code should work identically on
         | both.
         | 
         | Q: https://code.kx.com/q/
         | 
         | ngn/k: https://codeberg.org/ngn/k
         | 
         | oK: https://github.com/JohnEarnest/ok/
        
         | adregan wrote:
         | I found the most recent episode of array cast[0] to be pretty
         | illuminating regarding what's what with k. I too found it
         | pretty difficult to know which k is the right k to use.
         | 
         | 0: https://www.arraycast.com/episodes/episode41-john-earnest
        
       | shp0ngle wrote:
        
       ___________________________________________________________________
       (page generated 2022-12-08 23:01 UTC)