« first day (3949 days earlier)      last day (900 days later) » 
00:00 - 09:0009:00 - 00:00

12:16 AM
that is unfortunate
 
12:33 AM
@pxeger your copy as code golf submission button is broken on the staging site on mobile
I click it, and it doesn't actually copy anything to my clipboard
It's also broken on the main site too
 
@Fmbalbuena I can't just do that for you. Just wait a few days to get some feedback from multiple people
@emanresuA That sounds like enough for TC to me (that said, it is kinda limited)
 
Make me an infinite loop with map and filter :p
 
You don't need that, just recursion
 
Hmm, true
 
I'm not sure if map and filter would be adequate without laziness though. I feel like laziness shouldn't matter but it's more a gut feeling than something I can prove
 
12:44 AM
All you'd need on top of recursion is a way to have a base case
So yeah, either laziness somewhere, or some sort of conditional operator
With first class functions there's maybe something you could do, if trying to run a number as a function or something like that isn't an error
Could you do something with SKI combinators?
 
0
A: "Hello, World!"

lyxalTictac, 2 bytes 𝕜h Attempt it Online! Hmm yes just another one of those konstant style answers. 14 bytes "Hello, World! Lol

 
@RedwolfPrograms Whoa there, no need to go skiing just yet
 
Oh huh, a little piece of the plastic on the side of my laptop is broken, above one of the USB ports
I mean I practically throw it a couple times a day, so that's not entirely unexpected lol
 
(By "practically throw it" I mean I'll toss my backpack on the ground, which has my laptop in it :p)
 
12:50 AM
ಠ_ಠ
 
@RedwolfPrograms Factorial without any real control flow
 
*imagines redwolf slam dunking laptop into basketball net*
 
It's also been hit by very large and fast moving objects various times
 
@RedwolfPrograms so your mom?
(oh rekt)
 
@lyxal Well, it hasn't been slam dunked, but it's been hit by a basketball which was involved in such a process
Well, twice actually
 
12:52 AM
@RedwolfPrograms Actually, you're right, SKI doesn't need any real control flow at all
What have you been doing to your laptop?
 
Last year I had PE, and for the final half hour or so we could just sit around on our laptops/phones (it was officially for "studying"). Sometimes people would keep playing basketball or whatever we were doing that day, and they weren't very good at not hitting people.
 
Darn, and I thought I had it good because we spent the period just walking
 
That's what I did lol, but after an hour of that it gets a bit boring
 
Y'all actually getting to barely do anything in PE?
 
Imagine doing PE for over an hour
 
12:55 AM
Well, we had to do the fitnessgram pacer test, a multistage aerobic capacity test
 
I got lucky and got to do 45 minutes, but then we had to do it every day
Those beeps still give me nightmares
Always felt like puking after that and the mile
 
@RedwolfPrograms (it progressively gets more difficult as it continues. The 20 meter pacer test will begin in 30 seconds. Line up at the start. The running speed starts slowly, but gets faster each minute after you hear this signal.)
 
Stop, please!
 
@RedwolfPrograms we just called it the beep test
 
I did second best in my class in 5th grade on the push up and sit up sections
 
12:57 AM
Other than that, though, high school PE was pretty chill
The most I could do were like 2 pushups and 3 situps :P
Those numbers have probably gone down to 0 and 1 now :P
 
I actually looked forward to PE because we didn't do anything too hard, and walking around was nice when there was music
 
@user I had a dislike for PE when it was sports such as volleyball/football because those were the sports where I had to be in a team and actually socialise with people outside my friend group
 
And since everyone's there for the credit, you're not expected to care
 
Sucks to take it in the winter, though
 
but PE was cool when it was things like the trampoline park and tennis
 
12:59 AM
@RedwolfPrograms It was like my Art I class, where I sat next to either one or two drug dealers
 
@lyxal I like that because I let other people carry me. You don't have to socialize with people at all, just stand there and when everyone's done picking teams, the teacher's forced to assign you to someone. Once there, stand at the back and occasionally jump or something to show that you're participating. Gets you an A every time
 
@RedwolfPrograms If you even put ten minutes into something it's way better than they're used to
 
Please like and subscribe for more shitty PE tips
@RedwolfPrograms I never understand how people get drugs
 
@user sure, but not when you're with a bunch of sports tryhards
 
1:00 AM
0
A: Sandbox for Proposed Challenges

dingledooperEven sum subarrays code-golf array integer subsequence Given an array of integers, count the number of contiguous subarrays with an even sum. You may assume that the array is non-empty, and contains only non-negative integers. This is code-golf, so the shortest code in bytes wins. Test Cases Input -

 
Supposedly everyone has easy access to drugs but never once have I been able to get any (not that I want any, of course)
@lyxal Especially when you're with a bunch of sports tryhards. First participate and mess up horribly, then they'll be forced to let you sit the game out :P
This was literally my strategy at a basketball camp my parents made me go to
 
@user What, people don't ambush you at all hours of the day, offering you drugs? Those videos they showed us in school on what do are useless!
 
@user that wasn't my experience. I had to save face somehow because that was also the class I was in for other subjects.
 
@RedwolfPrograms ikr, reality is so sad
@lyxal Step 1 of becoming a gamer: Don't care about saving face, accept your position in society :P
 
tfw you're too lazy to hunt down a link to the posted challenge, so in the sandbox post you just delete it and link to the wikipedia disambiguation page for "pancake"
 
1:03 AM
And honestly, no one reasonable can expect you to be good at sports just because
 
@user you don't get it. I was playing the long game of less suffering in other classes because I was separated from my usual friend group in classes
 
Dang, it was named after a dude named Pancake
 
Play the even longer game and learn how to survive without friends
 
@RedwolfPrograms No giant pancake town after all :(
 
How do you know it isn't? :P
@user (also, if you try too hard, you might end up falling flat on your face, but the opposite might also happen: you might not be trying hard enough but when you chuck the ball randomly to make like you're passing to a teammate, you might make a 3-pointer shot with 4 seconds left on the clock)
 
1:06 AM
@user nah nah what you do is that you become kinda infamous for doing a little trolling
also, I liked being a part of the squad I was with
 
I would say becoming invisible is much better. That way, when you do a little trolling, it makes it much more shocking :P
@lyxal Understandable
 
Look as introverted as I am, I did enjoy a little socialising here and there
 
I think most people do, including introverts
 
Besides, it's kinda fun over-analysing friendship group dynamics
 
Although I don't remember the definition of introvert anymore
What I do know is that ambiverts are better salesmen than introverts, thanks to College Board
 
1:17 AM
@user how to get 10k rep in 1 year?
 
Write good answers and/or good questions, I guess ¯\_(ツ)_/¯
Your goal shouldn't really be getting rep, though, this site is mostly just for enjoying yourself
 
Ok i'm posting a question (Tips for golfing in Chef).
 
You don't have to notify me of that
@Fmbalbuena (if you're asking me because I have 10k rep, I think it took me over a year for that, and I posted tons of kinda uninteresting answers during the first few months of the pandemic because I was bored. I wouldn't recommend doing that)
 
@user I like answering.
 
0
Q: Tips for golfing in Chef

FmbalbuenaWhat general tips do you have for golfing in Chef? I'm looking for ideas which can be applied to code-golf problems and which are also at least somewhat specific to Chef (e.g. "remove unnecessary whitespace" is not an answer). Please post one tip per answer.

 
@emanresuA if I didn't already have a codepage planned for v3 I'd steal this
also
excellent markdowing
 
@emanresuA is there some commonly used automation tool i haven't heard of
 
I just use answers from here:
20
Q: Code a code page

DenkerIntroduction A code page maps integer values to a specific character. We can visualize a code page like this: +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+ | | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | A | B | C | D | E | F | +---+---+---+---+---+---+---+---+---+---+---+-...

 
oh
forgot about that
 
Big brain
 
but yeah you need to escape the pipe character inside the table
 
����������������� Fizzbuzz in Perhaps probably
 
i should keep as one of the actual characters just for the meme
 
and it just acts as a random op
so ����������������� could actually be a fizzbuzz if you're lucky
 
maybe it could be the operator that takes a random computation and deterministically outputs all of the possibilities
or it could just form digraphs and �� does that
because i feel like that's kind of a niche functionality
 
1:48 AM
@UnrelatedString don't you mean ��?
 
i'm fairly sold on one of the digraph formers being : for aesthetic reasons so it would be really funny for another one to be
 
welp it's time for me to go steal more code from Jelly
 
because I haven't the foggiest how to multiply matrices
 
@lyxal Same lol :P
Except I'm stealing all of Jelly's code
or most of it at least
@lyxal @ in Python
 
1:50 AM
i think jelly defers to some other library for it but it's not complicated
 
@emanresuA yeah but does that work with lazylists? I think not.
 
@emanresuA python doesn't actually implement @ for any of its types, it just defines @ as the operator you should use if you're going to use something for matrix multiplication
 
@UnrelatedString :o it uses sympy
 
@UnrelatedString ಠ_ಠ
 
like the dunder is literally __matmul__ iirc but no built in type uses it at all
it's just for numpy/sympy/etc.
 
1:52 AM
i think ... is too lol
 
oh yeah i totally forgot about that
just a builtin singleton with special syntax that only holds meaning in external libraries
 
Python is weird
 
update: I have stolen 0 jelly because it doesn't account for custom multiplication
 
2:18 AM
In conclusion, I've written my own matrix multiplication function that doesn't actually care about size because it's just dot product (vectorised multiplication and sum) for each row for each column or something like that
 
2:44 AM
@lyxal this sounds good
 
@hyper-neutrino wait that’s why that exists?!
 
3:18 AM
i think so
 
Python creators are some real symps
 
I love google translate
 
3:35 AM
lol
 
google translate sure is special
have y'all ever heard of
Mr. Furumi has communism
 
what now
 
3:55 AM
Lifehacks.se is a weird place
 
there's a lifehacks se???
 
Lol that's exactly what I was about to comment on
I was halfway through typing "lifehacks is the only site where you get upvotes for telling someone to urinate in a sink"
 
Today is a sad day. No more glass kettle. :(
 
I had to take it back because it was placing these little black specks in my water
And I have no clue what tf they were
Idk if it was plastic or metal corrosion, but it sure wasn't good.
(and it isn't the water source - I made sure to make sure it was the kettle doing it)
Can I get an F in the chat lads?
 
4:06 AM
F
 
F
What the frick, GFS has 500 rep...
 
My sockpuppet could now do reviews if it wanted lol
 
F
 
This wikipedia "see also" tells an interesting story
 
???
 
4:11 AM
Ooh, rearranging see also's to make a story sounds fun
 
Which article is this from?
 
I forgot
 
You forgor 💀
 
@GoldFarmerSprow And once again I'm sad that my username is too short to have any fun anagrams. :(
 
Which is not a variant of the board game, luckily
 
4:14 AM
@RedwolfPrograms for a history class?
 
@RedwolfPrograms Disambiguation note: "For fights caused by the popular board game, see Violence in Monopoly"
 
@lyxal No, just casual reading
 
4:30 AM
@DLosc colds
 
@user and clods, and scold. None of which are fun.
I guess "old CS" could be a description for concepts like Turing machines and lambda calculus. :P
 
@DLosc well at least you have anagrams that are actual English words
 
@lyxal Fair enough, fellow 5-character username holder
 
@DLosc I don’t know, i quite like “clods” :p
@DLosc I’m lucky to have two more anagrams with such a short name
 
@user sure you are
2
 
4:41 AM
And one of them is great for a sock
 
@DLosc the cost of being cool 😎
 
Ally X
 
@user Hmm... If I wanted to make a sock account, I could call it DLsoc
 
Lyl Ax (lil axe)
 
Lylax (lilacs)
 
4:44 AM
@DLosc Sounds more like a drug to me :P
 
@DLosc would be a bit confusing but it’s a good idea to have a sock whose name immediately identifies your original account
 
"Take three tablespoons of Lylax after meals"
@user If I had a sock, I'd name it "emanresu rehtonA"
 
@emanresuA Xylal cures xylophonophobia. Contact your doctor today. Sideeffectsmayincludeexcessivemeneingunintelligiblestuff…
@emanresuA creative:p
 
Ikr
 
@user hey so uh NASA called. They're mad at you for fuelling conspiracy theorists by suggesting space doesn't exist.
 
4:48 AM
@user "Side effects may include excessive men ein gun intelligible stuff"?
 
I meant memeing, oops
 
Trying to figure out what a side effect of "excessive men" would involve :P
 
Also, no guns, it’s unintelligible stuff :p
@DLosc not excessive men, excessive men einguns
Einguns are no joke
 
5:02 AM
Excessive men sounds like a side effect for a GMO perfume
 
I love how this claims to be secure and durable yet has 50 issues
 
@DLosc It could also be a side effect for pills that make you pregnant
 
> pills that make you pregnant
 
Shhhhhhhhhhh
 
> Dear Ryan,

Your achievements have earned you the opportunity to take Montana State University's quiz
Wow, I feel so accomplished
 
5:11 AM
unbelievable
 
I love how every single college spam email tries to make it look like they're giving you advice or something like that
It's always a pdf, a personality quiz, or for the fancy ones, a link to a webinar
 
@RedwolfPrograms meanwhile, this is what I got
 
What I don't get is why colleges like Stanford and UChicago feel like they need to send out spam to get people to notice them
 
> Hi <Lyxal>,

Congratulations!

Based on your Schools Recommendation Scheme (SRS) application, you are eligible for admission to the Bachelor of Software Engineering (Honours) at the <University>.
What a nerd getting college recruitment spam
 
5:15 AM
i have never actually gotten stanford spam but yeah holy shit it's crazy how much chicago sends out
 
Real gamers just get accepted straight away
 
@UnrelatedString All of the stanford spam I've gotten is through physical mail, oddly
 
i'm not sure if i've stopped getting it because i'm actually enrolled at unc or if i've just stopped reading that email
hmm
i think i got some thickass booklet from harvard once but can't remember anything from stanford
 
Is Stanford where you go to learn how to be a Dream stan?
 
Like, all of the other mail-mail spam I get is for smaller, in-state schools. It's a bit surprising to me that well known colleges on the other side of the US would think they need to do that.
 
5:20 AM
@RedwolfPrograms what are you thinking of doing at college? (I.e what degree?)
 
I haven't the slightest clue
Maybe CS
I'd mostly just be going for a piece of paper to get jobs with, and for the social aspects (new friends, getting the farthest possible from my family, that sort of thing)
 
5:36 AM
> True or false: Head-on collisions are deadly at high speeds.
Getting the most out of driver's ed
 
False
head-on collisions are only deadly at low speeds
like really low speeds
like 0.000000000000000000000000000001 km/h slow
why?
because you spend so long getting into the head-on collision that you die of boredom and or hunger/dehyrdation
whichever one comes first and whichever one you don't have enough resources to combat
 
5:53 AM
marvin, you have earned the award for literally destroying 5 people's sanity lool as a reward you will get a trophy yaaaay
wait my brother sent that ^^
also i found this
wait my brother sent that ^^
bruh
hi o/
 
Whomst'd've the frick is marvin?
 
duck a dill dill dill say a boy get kill
 
and how do I get in contact with Marvin to destroy more people's sanity? /s
 
@PyGamer0 Maybe you should work on not giving people unauthorized access to your computer :p
 
go and watch carzzey on yt to see marvin with crazy facts
@RedwolfPrograms i am not at my house
eeee÷
 
5:56 AM
@RedwolfPrograms @PyGamer0 but at least tell me who this marvin is.
 
i am at *******
 
you should especially avoid unauthorized access to your computer while you're not at your house
 
ok bye
now my eld bro talk
why i cant see people on some chatroom :(
 
@PyGamer0 you shouldn't let other people onto your account lol. you want me to kick your sessions?
actually idek if it works on chat
 
========================================================== 315 passed in 4.53s ==========================================================
I know that should be posted in vyxal chat, but i don't care because all the tests pass
and that's epic.
 
6:08 AM
poggers
 
and they don't silently fail either
 
that's 315 legit test passes and I'm very happy
 
@hyper-neutrino what does kick my sessoon mean
 
now we just gotta do the remaining 14 digraphs that can't have test cases because they use functions or are non-determinisitic
 
6:09 AM
i can log you out everywhere
but if your brother isn't using your computer anymore then w/e
 
or if we've simply threatened him into hiding
 
@hyper-neutrino ok i assume ou can also delete my account lol
 
ok well yeah but why would I do that
you have just enough rep to avoid destruction :p
 
for pon range(len(lhs)):
    lhs[index] = rhs(index, lhs[index], ctx)
copilot generating a new kind of python loop
for pon
 
the for pon loop
 
6:15 AM
pongers
5
 
I had for po intended to fill it as for position in ... but it gave me a for pon loop
different question: does anyone know how one might implement: Fill by coordinates - Given function + list, call with each (potentially multidimensional) coordinate of list, as list of integers, and insert result into corresponding location
because I don't.
 
i'm not sure how to read that except as a very bad way to explain a deep map
 
it's also described as:
For each value of a (all the way down) call b with the
                  coordinates of that value and put that at the
                  appropriate position in a.
 
oh so it's multidimensional index → deep map
 
(weird spacing is just from the fact it's inside a comment and there's a 72 char limit for comments)
@hyper-neutrino but there's only two arguments
a list of co-ords and a function
It's also described as
Fill a matrix by calling a function with the lists of coordinates in the matrix.
 
6:21 AM
for each value of a, call b with the coordinates of that value is just deepmap(b, multidimindex(a))
 
oh
and uh what's the difference between deepmap and normal map?
 
more specifically?
(i honestly don't know the difference, hence the question)
 
if you have a list of lists map maps over the lists but deepmap maps over the elements of the lists (unless those elements are lists in which case you get the idea)
 
map(f, [[1,2],[3,4]]) := [f([1,2]),f([3,4])]
deepmap(f, [[1,2],[3,4]]) := [[f(1),f(2)],[f(3),f(4)]]
 
6:25 AM
oh so basically just normal penetrative vectorisation?
 
basically
 
is there a jelly equivalent I can reference?
 
not a quick that does that afaik
 
i think vectorization is by default recursive
and there's no quick to force it
 
6:33 AM
most things either don't vectorize or vectorize to depth 0
 
I meant the entire fill function
 
some things do vectorize to different depths
@lyxal wdym
 
12 mins ago, by lyxal
Fill a matrix by calling a function with the lists of coordinates in the matrix.
like there's already a vectorise function to handle the deep mapping stuff
 
you can use the table quick for the 2d case probably
maybe some way you could use the multidimensional enumerate stuff
 
but I'm not sure on the expected IO for the whole entire "fill by coordinates"
 
6:34 AM
i think the implication is that you have an array already and you just discard the values currently in it
 
I more mean should something like fill_by_coordinates([0, 0, 0, 0], lambda x: x * 2) return [0, 2, 4, 6]? (assuming 0 indexing)
 
i think
 
f=lambda a, g, pos=(): [f(b, g, pos+i) if isinstance(b, list) else g(pos+i) for i, b in enumerate(a)]
 
you can use the multidimensional indices atom, ŒJ
although like
 
then shallow map over that, then...
 
6:37 AM
that technically returns [[1], [2], [3], [4]] i think
 
yeah not sure what to do from there
i think that's the desired behavior
 
yeah cuz it's a 1D index
there is no deep map, you just need to decide what to do depending on the atom you follow up with
 
as in the function over the ŒJ then somehow reconstitute it to the original shape
i forget if can actually do that
 
doubt it
because the result of ŒJ will be one layer too deep
because each value gets converted into a list of coordinates
 
@pxeger correction: f=lambda a, g, pos=(): [f(b, g, (*pos, i)) if isinstance(b, list) else g((*pos, i)) for i, b in enumerate(a)]
 
6:41 AM
but the function is supposed to take a list of coordinates (one for each axis)
 
at least jelly mold works unlike vyxal mold lmao
 
@lyxal I think this will do it
 
oh no what does vyxal mold do
 
@UnrelatedString oh you mean mold it back into the original form?
 
yeah
as in
 
6:42 AM
like (a, b) → multidim indices (a) → recursive map (b, result) → mold (result to a)
 
normal map
but yeah
 
wut
wait if it's 1d then why not just J
 
@hyper-neutrino hey it works now
 
oh it does? pog
 
stop judging 2.6 by the functionality of 2.4 ;p
 
6:43 AM
no doesn't ŒJ give a 2d list for all dimensions of input
 
ok i haven't used vyxal since <2.4
 
@hyper-neutrino *<2.5
2.4.1 is what the site uses
 
so a shallow map should process each of the multidimensional indices properl
y
 
@UnrelatedString no
 
each multidimensional index being a flat list of indices for each axis
 
6:44 AM
wait
i cannot read
 
yeah that's exactly what i meant
 
uh yeah your message is right nvm i forgor 💀
wait idk what i even thought we were talking about... ¯\_(ツ)_/¯
why would multidim indices be the same shape as the input
wow my brain is rusty 🐒
 
@pxeger thank you for the black magic frickery
it looks very nice inside my code
 
you can rewrite it to not be a lambda if you want lol
 
no no it's better as a lambda
it adds to the comedic effect of vyxal
 
6:47 AM
true
embrace the jelly internals vibe
 
admittedly, I had to modify it to use safe_apply and lists, and it got autoformatted, but the spirit of it still remains
 
beautiful
 
copilot is not a good spell checker btw
 
7:18 AM
honestly it looks pretty good formatted like that aside from the fact that you assign a lambda then call it once on one pair of arguments
 
7:39 AM
Me: sets vs code to autoformat python using black
VS code: autoformats python using black
The github linter test run: sorry, there's an error on the black formatting check
Thank you very cool
 
is that that github actions thing
 
Yeah
 
7:54 AM
@UnrelatedString :5966267Yes
@lyxal That looks abut righth
Can you solve the halting problem for push-down automata?
 
8:39 AM
for operator in [">", "<", ">=", "<="]:
    Function(operator, 2, ...)((lambda f: lambda *x: all(f(a, b) for a, b in zip(x, x[1:])))((lambda o: eval(f"lambda x, y: x {o} y"))(operator)))
somehow i ended up writing this idek how
 
not gonna bother fixing tho; this is half meant to be scuffed
 
what is this for btw
 
making a "programming language" mostly intended for its REPL for aoc lol
 
8:57 AM
Pro life tip: don't limit golfing to code.
 
00:00 - 09:0009:00 - 00:00

« first day (3949 days earlier)      last day (900 days later) »