« first day (37 days earlier)
← previous day
next day →
last day (271 days later) »
Leo
9:25 AM
@MartinEnder I've found an ordinal mode way to split a string on the stack in half:
..Y;m;!?z?
Martin Ender
ah, very nice :)
Leo
Basically,
Y
gives us a string with half the length,
m
truncates the old one to this length (so we get the first half), and
z
drops the first half from the full string, getting us the second one
Ordinal mode formatter V2
Making it work correctly with odd length strings might be too hard
Martin Ender
and making it work with
'
in the middle of the code ;)
Leo
well, I don't know how to deal with that in any case :D
Martin Ender
I think the only general solution is to pull the next character into the first half and then pad the second half with an additional space
4 hours later…
Leo
1:52 PM
Toeplitz challenge solution
. I'm particularly proud of how I managed to use
j
in ordinal mode :)
I'll post it as soon as I have some time to explain it adequately (and maybe golf it better)
Martin Ender
that looks pretty good
I haven't tried golfing mine yet
I wanna try another approach though where I don't read them one line at a time
Leo
I understand just now your solution, I like how you used
Z
!
Martin Ender
2:08 PM
meanwhile:
codegolf.stackexchange.com/a/121599/8478
looking forward to your 9-byte Cardinal solution :P
hm, I wish I had a good alternative for
&w...k
that can also do 0 repetitions
1 hour later…
Leo
3:25 PM
@MartinEnder better to avoid it, codepoint input would be expecially awkward in this challenge :P
nice idea with the tape, by the way!
At least one byte can be golfed
by letting the IP bounce
2 hours later…
Martin Ender
5:33 PM
@Leo oh cool, I tried something similar but couldn't get it work out. I like how the
]
is actually necessary to make the
!
not mess stuff up
« first day (37 days earlier)
← previous day
next day →
last day (271 days later) »
all rooms
Transcript for
May
18
May '17
19
May
21
Inside the Looking-Glass
Discussion about the 2D language Alice. GitHub:
github.com/m-e...
join this room
about this room
00:00
06:00
12:00
18:00
all times are UTC
site design / logo © 2024 Stack Exchange Inc;
legal
mobile