« first day (42 days earlier)      last day (266 days later) » 

7:04 AM
@Leo answer with explanation. hope that helps
 
Leo
7:22 AM
@MartinEnder it did, thank you :)
And I found a way to save bytes on the first jump tio.run/nexus/…
 
oh that's really neat, I'll edit that later
 
 
1 hour later…
8:53 AM
I tried a different approach for the Ordinal formatter, but currently it's 4 bytes longer (probably because it needs 4 bytes to pad the input to even length, because the general approach doesn't work for odd length) tio.run/nexus/alice#@x/…
it's also one of those times where I wish the return address stack did store the direction...
I also wonder why we don't always use this layout, it seems to save a byte
(so the original 28-byte solution might be 27 using this)
I guess it only works code sizes which are 0 or 1 (mod 4)
 
9:23 AM
oh nevermind, it's also the same byte count in general because we still have 3 mirrors. it just saved something here because my original had 4 mirrors and I needed to waste some bytes because w and k weren't moving in the same direction otherwise
 
Leo
10:16 AM
(same as the old one, just doesn't reverse the second half)
 
10:29 AM
nice :)
I think it needs some rearranging for code length 1 and 2 (mod 4) though
(because the way it's output now, the code doesn't end in the bottom right corner then)
 
Leo
@MartinEnder I think it's enough to place mirrors and @ accordingly
`123456` becomes
/426
\153@/
 
10:44 AM
oh you're right, that still works
 
Leo
Bug report: , in cardinal mode with negative argument seems to perform conversion to get the top stack element tio.run/##S8zJTE79/1/fX11BlSvG00FBQd8oSCchRe3//…
(could be a feature and not a bug, but the documentation says otherwise)
 
definitely a bug, thanks
 
11:19 AM
should be fixed on GitHub, but I'll wait with requesting a TIO update until I have time to test the fix properly
 
 
5 hours later…
4:12 PM
@Leo fixed
 
 
5 hours later…
8:55 PM
0
A: What's the Date?

Martin EnderAlice, 9 bytes /oT\ @%;' Try it online! Explanation I'll leave the exact control flow as an exercise to the reader, but the linearised code that is being run in Ordinal mode is: %T'T%;o@ And here is what it does: % Split an implicit empty string around an implicit empty string. Really ...

kudos if you can find a way to get rid of the @ or the ;
 
 
1 hour later…
Leo
10:24 PM
@MartinEnder you almost had it :) tio.run/nexus/alice#@x@jEsIVo5qv/v8/AA
 

« first day (42 days earlier)      last day (266 days later) »