« first day (1544 days earlier)      last day (1111 days later) » 

12:15 AM
@rak1507 Does it have anything to do with {+/¨⍵=¨,\⍵}?
 
considering that is the solution (more or less), yes!
just need to trainify it
 
+/⍤=¨∘(,\)⍨?
That's a very big train
 
not quite
 
 
 
9 hours later…
RGS
9:09 AM
I'm defining the "density" of a train to be the ratio of operators to functions
The train +/⍤=¨∘(,\)⍨ has density 6/3 = 2, so it is a fairly dense train.
 
 
5 hours later…
2:14 PM
codegolf.codidact.com/posts/281384 I had a pretty shoddy 33 for this (the code I actually used to solve the problem on the site), interested in how low it can go
 
 
5 hours later…
6:51 PM
@rak1507 Lol I didn't read your problem properly and came up with a solution that did the exact opposite
 
caird did that too
and then I edited it to make it more obvious... and then you and marshall still did it
what can I do to make it obvious that it's decryption
 
Maybe you could put that into the title of the challenge and bold it...oh wait, you already did that
Putting the challenge part at the top and making "decrypt" all caps might help
 
it also doesn't help that the encryption of the last test case is also the decryption for some reason
what a coincidence
 
I guess decryption is just cutting in half and interleaving over and over, right?
 
seems like decryption equals encryption for lengths which are a power of 2, or one below one
 
7:01 PM
@user yea something like that
 
7:18 PM
@rak1507 Yay, I got your shoddy 33
 
incredibly different to my solution lol
@user sorry to be a pedant but the last test case, you return with an extra space at the end
not sure if that should be allowed or not
 
Oops, lemme fix that
 
 
1 hour later…
8:55 PM
0
Q: Read FITS files

J C GonzalezI have some experience in several programming languages, but I would like to try APL. I'm doing some tutorials, but I want to work in a practical example. I would like to read astronomical images from a file, in FITS format (a very common format for Astronomy data), and perform some calculations ...

 
ngn
@rak1507 i have 27
 
:D cool
definitely decrypting not encrypting?
 
ngn
@rak1507 the tests pass
 
great
 
ngn
{⍵[⍋(2⊥⍪⍉↑⍳2⍴⍨⌈2⍟n)∩⍳n←≢⍵]}
 
9:04 PM
do you have an account on codidact
ooh, that looks interesting
you found a way to generate the pattern, nice
 
ngn
-1: {⍵[⍋(2⊥⍪⍉↑⍳2⍴⍨⌈2⍟≢⍵)∩⍳≢⍵]}
 
how did you find that solution?
 
ngn
@rak1507 trial and error :)
@rak1507 can we assume the length of the input is below a certain limit?
 
for golf reasons or for time reasons?
 
ngn
@rak1507 golf
 
9:08 PM
hmm, not sure, tempted to say no because it would be nice to have something that works 'in general'
 
ngn
@rak1507 {⍵[⍋⍋⍉⊖2⊥⍣¯1⍳≢⍵]}
 
that is brilliant
I'm sure I've seen that before
or something like it
@dzaima can you do a grep for '⍋⍋⍉⊖'
 
@rak1507 none found (btw you can get your own Orchard search)
 
@ngn really nice, do you have a codidact account?
 
ngn
9:18 PM
@rak1507 no
 
are you going to post it or should someone else post it on your behalf
 
ngn
@rak1507 do many people use that now?
@rak1507 you can post it if you want
 
@ngn challenges are posted rarely, but people do answer
 
@ngn no but I'm posting all my questions there to try and create some activity
so cool that reversing the bit order does that
 

« first day (1544 days earlier)      last day (1111 days later) »