« first day (10 days earlier)      last day (83 days later) » 

12:18 AM
In the case of a full program, yes.
 
 
17 hours later…
4:55 PM
Is there an easy way to give the permalink's output a more pleasant format? display shows ellipses because the array is too large.
1
A: The Back-and-Forth Sequence

DennisJulia 0.4, 44 bytes f(x,k=endof(x)+1)=(try k=2find(x)[k/2]end;k) This function accepts a single integer in form of the list of its binary digits as input. The algorithm is equivalent to the one from @Agawa001's answer and my Jelly answer. Try it online! How it works find(x) returns the 1-b...

 
:D
? I see no ellipses
 
Because I used show. That's unaligned and ugly though.
Pretty, but incomplete.
 
Dang, the unexported Base.print_matrix(STDOUT, <array>) usually works but I think it falls back to the ellipses printing when the matrix is really big.
When in doubt, find an unexported Base function in the source code :P
 
Wonderful. Thanks!
 
My pleasure!
 
 
1 hour later…
6:12 PM
@AlexA. f(A,n)=n<1?eye(A):[A[i,:][:]⋅f(A,n-1)[:,j]for i=m=1:size(A,1),j=m] should work for matrix power.
Fifth power is slow as hell though. 97 seconds on my machine.
 
Why is the [:] necessary?
97 seconds?!
Will that even work on TIO?
 
Because it's not a vector, but a row array. is picky that way.
 
Oh right.
 
No, it won't work on TIO. It's slow because f(A,n-1) is called times.
 
D:
Good god
 
6:15 PM
Regular funcrions are usually memoized. I wonder why that doesn't happen here...
 
:P
Yeah idk
Posted. Thanks!
 

« first day (10 days earlier)      last day (83 days later) »