« first day (780 days earlier)      last day (1877 days later) » 

2:45 PM
@dzaima so far, I tried to make a pure APL\360 solution to your challenge, so I came up with this:
n∘.∧n←(,(n⍴0),⍪⍳n←⎕)\1
unfortunately, um, \ doesn't work that way :P
 
3:00 PM
@EriktheOutgolfer though i don't have an APL\360 interpreter, i'm pretty sure I've got a 22 byte solution that doesn't use \
 
I have a shorter one that uses ¨
 
@EriktheOutgolfer is that in APL\360?
 
no, APL\360 doesn't even have ¨, it's the very definition of pure APL :D
it also doesn't have , for instance
 
@EriktheOutgolfer my modern APL solutions don't use ¨
 
3:15 PM
@dzaima it's useful for , at least
 
@EriktheOutgolfer I'm just saying that my solutions without ¨ ended up shorter than with it
umm now that i say that i remembered a shorter Dyalog one that did use ¨ :|
 
3:35 PM
@dzaima never mind got a shorter non-¨ one
 
 
1 hour later…
4:58 PM
⎕←{'#'⍴⍨¨⍳2⍴⍵}3
 
@Sherlock9
┌─┬──┬───┐
│#│##│###│
├─┼──┼───┤
│#│##│###│
│#│##│###│
├─┼──┼───┤
│#│##│###│
│#│##│###│
│#│##│###│
└─┴──┴───┘
 
Okay so I get the box output here and not in TIO
Also, this is for this challenge: codegolf.stackexchange.com/questions/181582/…
 
@DyalogAPL oh by some reason i thought that was invalid output but it actually is allowed by my rules :|
I've got a 12 byte "proper" array answer in Dyalog and 9 in dzaima/APL
@dzaima oh right that was about having numbers in the cells instead of proper chars
 
5:14 PM
@dzaima Thanks! Will put it in an answer shortly
 
5:34 PM
@Sherlock9 unfortunately, I don't think that's valid
except if the separator doesn't really have to be constant
 
@EriktheOutgolfer with ]box on it is
 
I think it must be included in the bytecount then
 
@EriktheOutgolfer that's an explicit rule
 
yeah, wasn't 100% sure on the "every other character (though newlines are special) is considered whitespace" part
still, I don't think ]box on can be a default
 
⎕←(∘.('#'⍴⍨,)⍨⍳)3
 
5:41 PM
@voidhawk
┌─┬──┬───┐
│#│##│###│
├─┼──┼───┤
│#│##│###│
│#│##│###│
├─┼──┼───┤
│#│##│###│
│#│##│###│
│#│##│###│
└─┴──┴───┘
 
Also 12 bytes, could save 1 if I could get in Extended to work
 
Extended is a different language...
 
Hm, not sure how to fix this
There's a way to print this out properly, I'm sure of it
 
5:56 PM
pretty sure you can just assume a REPL and post this:
]box on
'#'⍴⍨¨⍳2⍴⎕
 
@EriktheOutgolfer
DOMAIN ERROR
 
well shut up
 
Ohhh
 
6:00 PM
salt is usually loaded in a REPL
 
Well that's going to be hell on the byte count
 
btw, it's 18 bytes, not 21 ;)
 
How would one interleave 1 2 3 4 with zeros to make 1 0 2 0 3 0 4?
 
@Sherlock9 ∊{⍺0⍵}/⍳4 or 1↓∊0,¨⍳4
 
6:14 PM
Alright how would one interleave blank rows in between ⍳4 4 for example
I'm not sure how to do it just between rows
 
I'd say keep it 1D for the entire process but the very last step
 
⎕←2↓∊0,¨0,¨⍳3 3
 
@Sherlock9
1 1 0 0 1 2 0 0 1 3 0 0 2 1 0 0 2 2 0 0 2 3 0 0 3 1 0 0 3 2 0 0 3 3
 
So something like this and then take every two and turn it into a thing?
Or could just interleave s
No that doesn't work either
 
ngn
here's another idea: 2↓∊,\0,4⍴1 and build a multiplication table from that
⎕←∘.×⍨2↓∊,\0,3⍴1
 
6:26 PM
@ngn
1 0 1 1 0 1 1 1
0 0 0 0 0 0 0 0
1 0 1 1 0 1 1 1
1 0 1 1 0 1 1 1
0 0 0 0 0 0 0 0
1 0 1 1 0 1 1 1
1 0 1 1 0 1 1 1
1 0 1 1 0 1 1 1
 
@ngn oh that's an interesting way to generate that
so that's another 12 byte plain Dyalog answer
 
ngn
@dzaima 14 byte
 
@ngn i have a 12 dfn :)
 
you... just challenged ngn...
 
ngn
:D
 
6:32 PM
and the golf is stupid either way actually - just removing the 2↓
 
ngn
there's a 10-byte answer already
 
oh wait i did change the algorithm :|
 
@ngn actually, it's still unedited, but it's 18 bytes
 
@ngn it's been under discussion about ]box on though
 
ngn
ah... ok then, challenge accepted
 
6:35 PM
I was about to edit the 14-byte version into that answer, actually
 
@ngn tbf, the -2 golf is actually a modified output format
 
But I was going to wait for your golf war to settle ;D
 
@Sherlock9 you can always edit the 18-byter in while you're waiting if you want to :P
 
@EriktheOutgolfer i realized that's not enough to get 12 though
 
better than having an invalid answer up ;-)
 
6:36 PM
@EriktheOutgolfer I thought dzaima's 12-byter with the 2↓ was lovely
 
@Sherlock9 what my 12-byter?
 
@dzaima I was going to edit it into my answer
If you're okay with that
(also what 18-byter?)
 
@Sherlock9 i've posted no 12-byters though
(also both my 12-byters abuse the fact that the input can be off by 1)
 
I just meant ∘.×⍨∊,\0,⎕⍴1
The one you implied earlier
 
@Sherlock9 ah, I've got a REPL&⎕ 12-byters
@Sherlock9 that's not what I implied :D
so i have a 10-byte REPL answer :D
 
6:40 PM
@dzaima I meant your implication here
Ah heck
Ahhhh
okay how?
 
@Sherlock9 i'm not just gonna give it away (ok maybe after a while if noone figures it out)
 
Alright, will get back to your riddle after fixing my invalid answer
 
7:11 PM
I'm still stumped but it's also 2 am, so I'm going to bed
Thanks for all the help, guys
 
@dzaima ಠ_ಠ "REPL&⎕-free" is what i meant
 
ngn
@dzaima so you don't have a 10-byte?
 
@ngn I have a REPL 10-byter, and 2 REPL&⎕-free 12-byters
 
ngn
@dzaima ok, i give up, it's taking me too long to guess it
 
@ngn do you have a 12 byte train answer?
 
ngn
7:26 PM
@dzaima no, not even 12
 
(i should probably mention that the 10-byter is a dfnication of one 12-byter)
not posting that currently though, here's the other 12-byter
since i'm the challenge author i'll wait a bit before self-answering
 
ngn
⎕←{∘.×⍨2↓∊,\×⍳⍵}4 ⊣⎕io←0
 
@ngn
1 0 1 1 0 1 1 1
0 0 0 0 0 0 0 0
1 0 1 1 0 1 1 1
1 0 1 1 0 1 1 1
0 0 0 0 0 0 0 0
1 0 1 1 0 1 1 1
1 0 1 1 0 1 1 1
1 0 1 1 0 1 1 1
 
ngn
that should be 12 with a instead of
 
@ngn aand
 
ngn
7:30 PM
@dzaima well, nothing. i just found it after you asked
 
57 mins ago, by dzaima
and the golf is stupid either way actually - just removing the 2↓
 
ngn
@dzaima i see - flexible output
 
after that, it's my 10-byter, so congrats! (didn't think that'd ever be said this way around :p)
 
ngn
i was expecting something more unexpected :)
 
playing around with ∘.f⍨ is what inspired the challenge. ×⍳ was from {∘.∧⍨∊×⍳¨⍳1+⍵} - a previous thought of mine, and ,\ was your idea
 
 
2 hours later…
Joe
9:45 PM
hello, how would i find out what port the macos version of dyalog is running on when in server mode?
 

« first day (780 days earlier)      last day (1877 days later) »