« first day (2 days earlier)      last day (2367 days later) » 

user165474
 
You can see the leaderboard
 
user165474
There's a 9-byte Jelly answer by ais523 (checked with the userscript), but I haven't seen the answer yet.
 
user165474
Or I could use the leaderboard. :P
 
The leaderboard is part of the userscript
The Jelly answer used some tricks to distinguish between the brackets though
 
user165474
Oh? Hm. I never noticed that before.
 
user165474
2:58 AM
Oh okay. My first attempt will probably be really long but I may need some hints later on
 
user165474
@LeakyNun My idea is to get 4 values (probably an array) and add 1 for open and subtract 1 for close, cumsum, and take the first instance of 0. Is this a bit overcomplicating things?
 
I don't think so.
 
user165474
Alright. I will try this.
 
3:41 AM
17
Q: Alphabet triangle strikes again

Leaky NunTask Your task is to print this exact text: A BCD EFGHI JKLMNOP QRSTUVWXY ZABCDEFGHIJ KLMNOPQRSTUVW XYZABCDEFGHIJKL MNOPQRSTUVWXYZABC DEFGHIJKLMNOPQRSTUV WXYZABCDEFGHIJKLMNOPQ RSTUVWXYZABCDEFGHIJKLMN OPQRSTUVWXYZABCDEFGHIJKLM NOPQRSTUVWXYZABCDEFGHIJKLMN OPQRSTUVWXYZABCDEFGHIJKLMNOPQ RSTUVWXYZAB...

Let's do this
 
user165474
Alright.
 
user165474
Oh more alphabet problems! :D
 
user165474
3:57 AM
@LeakyNun Is there a way to repeat the alphabet multiple times? It's always giving me AAAAAAABBBBBBBCCCCCCC...etc.etc
 
@HyperNeutrino ØAẋ26
 
user165474
Oh, okay. Thanks. I was using normal x ;_;
 
I can see that.
Can you use normal x to do that?
 
user165474
I don't think so because it vectorizes (?) (gives the first element y times, then the second y times, etc.)
 
@HyperNeutrino ØAWx'26F
 
user165474
4:05 AM
Hm. Interesting. What does the ' do?
 
user165474
@LeakyNun 16 bytes (rather long, I will work on golfing this now):
 
user165474
ØAẋ26
51RḂÐfR¢ṁY
 
de-vectorize, I think
TNB Dennis says that it's broken
 
user165474
Oh okay. I'll check the specs and see if I can find it.
 
user165474
"For monads, flat. For dyad, spawn."
 
user165474
4:08 AM
What does this mean?
 
As I said, Dennis says that it's broken
 
user165474
Oh alright.
 
user165474
This and this appear to both work.
 
doesn't mean it isn't broken
anyway, golf down your solution
 
user165474
Yep.
 
user165474
4:17 AM
@LeakyNun I'm looking for something to take two arrays and split the first array into slices of the sizes according to the second array. Is there anything like that?
 
@HyperNeutrino can you illustrate with an example what you want to do?
 
user165474
Let's say I have two arrays. x = [1] * 10, for example. y = [3, 2, 4, 1]. Then, I want a dyad that does (x, y) -> [[1, 1, 1], [1, 1], [1, 1, 1, 1], [1]].
 
user165474
Equivalent to y -> Map by R (range) -> mold
 
I don't think there is such a function
 
user165474
Hm. Alright.
 
4:26 AM
Never mind
A Jelly mindset is what I call macromanagement
to be eager to manage an array as a whole
i.e. vectorizing
It is different from Python in this very aspect, in its emphasis on vectorization
 
user165474
Yes. I'm just getting used to it so most of my code might look to Pythonic for this reason.
 
user165474
Oh hm, I read your TNB comment, that would have been useful to know in the docs.
 
user165474
ØA
51RḂÐfR¢ṁY
 
user165474
Quick trivial edit for 3 bytes
 
something is redundant here
 
user165474
4:31 AM
I think the helper link is not necessary
 
user165474
51RḂÐfRØAṁY
 
bingo
 
user165474
Yay :D
 
user165474
Hm. Dennis's answer is still 1 byte shorter according to the userscript's count
 
user165474
@LeakyNun Can you help me check how different Dennis's answer is from mine?
 
4:38 AM
I can
 
user165474
Alright Thanks.
 
But I want you to figure it out yourself
Resources:
● TIO: https://tio.run/nexus/jelly
● Tutorial: https://github.com/DennisMitchell/jelly/wiki/Tutorial
● Atoms: https://github.com/DennisMitchell/jelly/wiki/Atoms
● Quicks: https://github.com/DennisMitchell/jelly/wiki/Quicks
● Syntax: https://github.com/DennisMitchell/jelly/wiki/Syntax
 
user165474
No, I wanted to know how different it was, like quite similar, or very different approach?
 
similar
 
user165474
alright. i will try to figure it out
 
user165474
4:42 AM
@LeakyNun Is it this?
 
user165474
51Rm2RØAṁY
 
user165474
Using m2 to get every 2nd element instead of filtering by bit.
 
I believe you can count the number of bytes
 
user165474
It is now the same length as Dennis's.
 
nice
now come up with 2 more alternatives
and then you can post yours as a comment to the Jelly answer
 
user165474
4:44 AM
Same length?
 
yes
 
user165474
Alright. Will do.
 
user165474
26RḤ’RØAṁY
 
user165474
26ḶḤ‘RØAṁY
 
heh, that doesn't count :p
 
user165474
4:46 AM
aww :P
 
user165474
lol xD
 
user165474
4:58 AM
Wait, I recall something from one of my professor's T-Shirts
 
user165474
The odd numbers are the differences between squares.
 
user165474
So that's the third way to generate the odd numbers.
 
user165474
27Ḷ²IRØAṁY
 
congratulations
 
user165474
@LeakyNun I appear to have hit the output cache from when you wrote this :P
 
user165474
4:59 AM
Thanks :D
 
the output cache is a strange thing
 
user165474
Yes. It appears that the site remembers what it output for a given program and given arguments and it just gives the same output whenever anyone uses that setup again
 
@HyperNeutrino so are we going to continue this?
 
user165474
Continue what?
 
the bracket
 
user165474
5:03 AM
Ah. Yes, I am working on that right now.
 
user165474
@LeakyNun Darn, all of the brackets are 2 codepoints away from each other except () :(
 
heh
 
user165474
That's annoying. That could have simplified things quite a bit :( lel
 
try to list the codepoints of the eight brackets in binary
 
user165474
Oh hm. Good idea.
 
user165474
5:14 AM
I can't seem to see the pattern...
 
list them here
 
user165474
() 0101000 0101001
[] 1011011 1011101
{} 1111011 1111101
<> 0111100 0111110
 
user165474
Hm I noticed that the first three digits are unique.
 
you don't need three digits
 
user165474
Oh, the second and third.
 
user165474
5:19 AM
Wait no.
 
user165474
@LeakyNun Which digits do I need? I can't seem to find two digit places that would be unique.
 
The first two
 
user165474
But () and <> then have the same 01.
 
I see that we have a serious misunderstanding here
What are you trying to distinguish?
 
user165474
I'm trying to distinguish between different types of brackets, though that may be unnecessary.
 
5:28 AM
Think about what you are trying to distinguish
 
user165474
My idea is to assign each bracket type a unique value (probably just the codepoint or a modification on it), take the square root, negate the close brackets, cumulatively sum it, and find 0. Doesn't seem very Jelly-mindset but I can't think of a different method off the top of my head (other than the straightforward method which will be too long)
 
square root?
 
user165474
See, let's say I assign 2 to { and 3 to (. Then {{{)) would give a net of 0.
 
user165474
(I know that that's not balanced)
 
Continue explaining
 
user165474
5:34 AM
So by taking the square root, the ratio between the values is irrational so I won't get false 0s from it.
 
there's another way
of preventing the above from happening
 
user165474
hm
 
user165474
Wait I think that can't happen because the brackets must be balanced.
 
user165474
@LeakyNun I don't think I actually need the square root thing because the brackets have to be balanced so that won't happen.
 
@HyperNeutrino why do you have to distinguish between different types of brackets?
 
user165474
5:43 AM
That's a good question.
 
user165474
I don't...
 
user165474
Whoops.
 
user165474
I just need to distinguish which way it faces...
 
user165474
6:01 AM
@LeakyNun Okay so I have an idea where to go from here. It's late now so I'm going to go to bed. Thanks for the help today, cya!
 
bye
 

« first day (2 days earlier)      last day (2367 days later) »