« first day (2140 days earlier)      last day (507 days later) » 

1:50 AM
@Lapwing482 f¨/
 
2:11 AM
in fact u need to have ⊃X[1] f¨ X[2] to get an array as result instead of an array enclosed
⎕←{⍵[1]+¨⍵[2]}(1 2 3 4)(5 6 7 8)
 
@LdBeth
┌─────────┐
│6 8 10 12│
└─────────┘
 
⎕←{⊃⍵[1]+¨⍵[2]}(1 2 3 4)(5 6 7 8)
 
@LdBeth 6 8 10 12
 
or you can changed the input to avoid dealing with nested array. ⎕←+⌿↑(1 2 3 4)(5 6 7 8)
 
@LdBeth 6 8 10 12
 
2:30 AM
I do like the in built Dyalog; only problem is I need to go find what some of the symbols mean so I can put a mapping in for them so my screenreader will announce them.
The Emacs' screenreading package did read them fine though.
 
 
3 hours later…
5:24 AM
lol, today's aoc is "interpreter routine" (again), I wonder if anyone would consider their APL solution elegant enough.
 
 
2 hours later…
7:41 AM
Elegant? Nope :)
Annoyingly iterative, but it must be, right?
 
7:59 AM
dang yall doing aoc on apl? how yall ranking?
 
8:35 AM
part 2 was just removing a reverse ⌽ for me
@xpqz yeah tower of hanoi, innit
Wonder what this says... jsoftware.com/papers/50/50_38.htm
Jay Foad did a reduction, although possibly fighting the RTL github.com/jayfoad/aoc2022apl/blob/main/p5.dyalog
 
8:55 AM
@RikedyP He's a master of this craft.
 
9:44 AM
@AidenChow There is a private leaderboard for APLers, run by @rak1507
 
@xpqz So it cannot be listed on the wiki?
 
@Adám I think that's up to @rak1507 to decide.
I think the access code has been posted here in the past.
 
 
1 hour later…
11:17 AM
Golfed day5 a bit.
 
 
2 hours later…
1:12 PM
@xpqz haha I used the same [;¯2+4×⍳9]
It is just I used tradfns because I forget how the lexical variable thing works.
 
1:25 PM
@LdBeth Yep, nicely cryptic, and entirely non-general, like a proper AoC solution should be.
 
 
4 hours later…
4:59 PM
@xpqz oh, sure
656501-67f7cded
 
@rak1507 ah thanks, im gonna join it real quick
ok cool im in
 
5:35 PM
Day 5 is tough. Not any idea yet how to approach this. Will give it a go tonight
 
6:11 PM
@Richard ⎕VFI still works!
 
It’s my favourite quad
 
you might also want
I see that ⎕VFI is a safe replace of more tradition
 
@AidenChow You sailed right to the top of the standings!
 
oops, sorry
 
@rak1507 Do you want to add a link(? I don't know how AoC works) to apl.wiki/aoc?
 
6:41 PM
@LdBeth :)
 
my favorite quad is ⎕AV, for no reason (⎕UCS is also great though)
 
⎕DT
 
I hoped ⎕FIX would my favorite, to fix all my problems... Maybe in 19.0
 
Huh, how so? Wait, is this a joke?
I'm still waiting for ⎕ESP so I don't need to write actual code any more.
Oh and extending ⎕DL to negative numbers.
 
@Adám Yes sorry, bad ⎕joke.
 
6:54 PM
      ⎕JOKE
┌──────────────────────────┬─────────────────────────────────┐
│Why was the math book sad?│Because it had too many problems.│
└──────────────────────────┴─────────────────────────────────┘
 
@Adám that was my suggestion, yes :)
thanks for picking it up
19.0 too?
 
18.4.1
 
Is probably in the conference edition
 
Maybe we should add ⎕GPT?
 
Would be a very nice 1st April joke
GPT = Good Pasta Tonight?
 
7:00 PM
Haven't you heard of ChatGPT?
 
No. Just searched for it. Is like Eliza for the C64?
 
Well, it is very knowledgeable; able to give convincing nonsense answers to most any prompt. E.g. it came up with the above joke.
If you give me a prompt (in plain human English), I'll run it for you and give you back the result. And yes, it "knows" APL too. At least enough to write some very convincing-looking nonsense APL.
 
Who is going to be world champion footbal(soccer?)
btw. ⎕VFI is really awesome, feels like cheeting a little bit
 
Its answer was:
It is impossible for me to predict who will be the world champion of soccer as I am a large language model trained by OpenAI and do not have access to current information about sports events. Additionally, the FIFA World Cup, which is the most prestigious international soccer tournament, only takes place every four years, so it is not currently possible for any team to be crowned world champion. It is up to the individual teams and their players to perform at their best and earn the title of world champion through their on-field achievements.
(It has limited knowledge of world and events after 2021.)
@Richard Interesting. What were you using it for?
 
wow, could be our prime minister
@Adám parsing the input of day 5 AoC
 
 
1 hour later…
8:30 PM
How do you compare the runtime of complex expressions? I've defined the functions fn1 and fn2 and I want to apply them to a large array to compare them for performance. ]Runtime doesn't seem to work in the sense that ]Runtime (fn1 ?10000⍴ 5) (fn2 ?10000⍴5) say returns an error about unbalanced parens.
 
Put each expression in quotes ' or "
 
:d, thanks @Adám. I was just about to something like that.
 
9:12 PM
@Adám Let's ask GPT pretends to be the Dyalog 30.0 repl and program in it
oh ok no feature predicting ability, but might still able to run a meta circular simulator
 
 
looks way better than copilot from github
Can you set ⎕IO though?
 
there's a paper that says you will get better results from it. If you prefix your request with "let's try this step by step"
No more GPT talk. sorry. will try to stay on topic.
 
So, utter nonsense, but the correct result!
 
so much nonsense :)
 
9:20 PM
 
that did surprised me
soon we can have programming course automatically generated by machine
 
9:44 PM
I doubt it would make a common mistake on -/⍳6
 
@xpqz lol not even entirely sure if i should be on that leaderboard given that im not even using apl for aoc, im using python
im just not good enough at apl to solve the aoc problems
 
@LdBeth After much teaching, it finally got it:
 
cool, I knew it!
 
How stupid can you be?
 
10:00 PM
can it understand associveness/precedence?
*association
 
@LdBeth Apparently:
 
hahahaha
it is essentially a rewrite engine under the hood, controls by a awkward natural language interface
 
It's like talking to a child
One that's read the entirety of the internet, but still a child
 
10:17 PM
Children don't usually apologise that much.
 
It seems to get confused with division, even though it could divide individual numbers (I told it # was division in APL because I didn't want to copy paste the glyph)
Ugh, it finally managed to evaluate 1#2#3#4#5#6#7 after a lot of coaxing but it still can't get #/i7
Anyway, this is probably getting off topic, o/
 
11:13 PM
@Adám sure, could do
 
@user Try:
> I want you to act as an APL REPL session. I will type APL expressions and you will reply with what the APL REPL session should show. I want you to only reply with the APL REPL session output inside one unique code block, and nothing else. Do not write explanations. Do not type expressions unless I instruct you to do so. When I need to tell you something in English I will do so by putting text inside slashes /like this/. My first command is ⍳6.
 

« first day (2140 days earlier)      last day (507 days later) »