« first day (1333 days earlier)      last day (1311 days later) » 

2:18 AM
how exactly does @DyalogAPL work? the catbot, that is. seems rather sophisticated for a chatbot!
*chatbot sorry
although robotic cats would be kinda cool
 
2:57 AM
@matt Adám made a secure kernel for running apl stuff online, and linked it to an SE bot.
it might actually be running from tio, not sure
 
 
1 hour later…
4:28 AM
<moon-child> @matt the chatbot bridges two different chatrooms; we're real people, here!
<moon-child> @Razetime the apl stuff is running on the same machine as the bot itself now, so it can return results essentially instantly. (The delay is because of SE chat.)
 
@Moonchild You're very convincing as a human.
 
@eyepatch Much obliged
 
5:13 AM
lmoaooo
¯1⍭56
⋄¯1⍭56
 
@Razetime Illegal code
 
5:31 AM
 
@Razetime Is ⍭ function only available in certain Dyalog version?
 
<moon-child> @jimfan it's part of github.com/abrudz/dyalog-apl-extended
 
@DyalogAPL So it is said "Requires Dyalog APL version 16.0 or higher."
 
5:46 AM
<moon-child> @jimfan yes, but it's an extension to dyalog. It doesn't come with apl; you have to install it separately
 
@DyalogAPL Alright
Thanks, bot
 
<moon-child> ;<
 
6:07 AM
@DyalogAPL I missed this. You said you are real :-)
 
6:48 AM
@jimfan It's in Extended, which has some nifty symbol functions for easy use
best way to use it is tio, I prefer having the Unicode IDE
 
 
7 hours later…
2:16 PM
Heyyy
⋄{(⌽,⊢)⍉↑{⍵↑'O'}¨1,1-1↓+\⍳⍵+1}3
 
@Razetime
   OO
  O  O


 O    O



O      O
 
35
Q: Draw the arc of a ball

xnorDraw the parabolic trajectory of a thrown ball. The input is the ball's initial upward velocity, a positive integer v. Every second, the ball moves 1 space right and v spaces vertically, and then v decreases by 1 to due to gravity. So, the upward velocity eventually steps down from v to 0 and d...

what are some good ways to golf this?
codegolf.stackexchange.com/questions/58732/… also how do i answer questions like these?
 
2:40 PM
<kritixilithos> {⍵↑'O'} → ↑∘'O'
 
Interesting.. will note that down.
 
3:03 PM
@Razetime Much simpler one compare to @Razetime 's
@Razetime Ok thanks for the pointer
 
3:30 PM
nice
@jimfan was trying this in extended, but didnt work
@Adám what's wrong in this one: tio.run/##AVEArv9hcGwtZHlhbG9nLWV4dGVuZGVk//…
 
3:52 PM
@Razetime I think it is the problem with ∩/
It seems to be it evals to not flat vector 2 2 but ⊂2 2
This happens with NARS2000 too
⎕fmt 28{∩/π¨⍺⍵}144
┌──────┐
│┌2───┐│
││ 2 2││
│└~───┘2
└∊─────┘
Oops sorry for the ugly output
And not surprising, ×/⊂2 2 gives ⊂2 2
 
4:05 PM
For your case I believe ⍭⍵ gives two boxed array, each being prime factors of 28 and 144, ∩/ reduces them giving ⊂2 2. Maybe reduction must generate scalar output and thus the enclosing? Not 100% sure.
 
nice
then this should be correct.
@jimfan to remove the box, just used ⊃
 
@Razetime Yes and yours solution is 9-char only, even more compact
I've been thinking of using | and ⍣ for Euclid algorithm, no luck
 
5:02 PM
Euclid algorithm?
lemme search that up
looks like a recursive func
@jimfan probably longer
 
ngn
@jimfan hint: ⌽|\
 
Okay let me try during daytime
@Razetime That's what I think too, the prime factor intersection is quite elegant
 
5:35 PM
@ngn didn't expect ⌽ to be there
 
ngn
@Razetime if you do this repeatedly to a pair of ints, eventually you'll get to a pair of 0 and the gcd
the interesting part is figuring out how to avoid an infinite loop that toggles between 0,gcd and gcd,0
 
 
5 hours later…
10:33 PM
An interesting little sub-problem came up in "sporeball numbers," which seemed trivial but whose solution in J turned out to be surprisingly difficult. The problem is to make a verb that tells you if a list is a "doubled list" -- that is, some list repeated exactly twice. Any odd numbered list therefore always fails, and the empty list is supposed to fail too. The best I came up with was (*@#*]-:-:@#|.]) ::0. Can this be improved?
 
11:00 PM
@Jonah I think -:]&.:(,~^:_1) works, although it returns 1 for an empty list while your solution doesn't. But why wouldn't an empty list qualify? It's the same as itself repeated twice.
 
11:13 PM
<moon-child> @Marshall I expect because that's the requirement put forth in the ppcg question - codegolf.stackexchange.com/questions/211292
 
> The empty string "" is not palindromic, and cannot be split into two identical halves.
Well that's just not true...
 

« first day (1333 days earlier)      last day (1311 days later) »