« first day (3959 days earlier)      last day (876 days later) » 

12:01 AM
0
Q: AoCG2021 Day 1: Automated delivery frenzy

BubblerOriginally from caird coinheringaahing's idea, I (Bubbler) am hosting Advent of Code Golf 2021. On each day from today (Dec 1) until Christmas (Dec 25), a challenge will be posted at UTC midnight, just like an Advent calendar. It is a free-for-all and just-have-fun-by-participation event, no lead...

4
 
Also CMP: Is BMG still fun?
 
@emanresuA nope
@Bubbler yep
 
@Bubbler fuuuuuuuuuuuun bored
 
CMQ: Is BMG still happening?
 
@Adám Yes
 
12:13 AM
I like having the smaller challenges, and having a bunch right after the other to choose from. It feels like a much more casual competitive environment. Or smth like that idk i just like it.
TIL something really useful: If you hit enter on mobile and it’s not the end of the message, it’ll insert a newline instead of sending the message.
 
AICMC: Compute whether two intervals intersect; i.e., if the intersection is non-empty, return true
 
Like this:
See?
 
@AaroneousMiller didn't work for me
 
@lyxal Will they be given in ascending order?
 
Ok I just did it again and it turns out it was automatically hitting shift since it was the beginning of the message. nvm
 
12:16 AM
@Adám I'll say yes
AICMC: Given a string that consists of only lower case letters, determine if it does not contain three consecutive "aaa"s
 
lambda x:"aaa"not in x
or if we can output backwards, lambda x:"aaa"in x
wait, three consecutive "aaa"s?
 
AICMC: Print the sum and average of elements in a given list,without using the built-in reduce function.
 
then lambda x:9*"a"not in x, I guess???
 
@lyxal Extended Dyalog APL, 8: ⍱'aaa'∘⍷ Try it online!
 
@hyper-neutrino that seems more correct
 
12:20 AM
Welcome to the 15th Biweekly Mini Golf. During this event, we'll post some CMCs (Chat Mini Challenges) for you all to solve. A new one will be added every 5 to 10 minutes. Feel free to keep suggesting drafts during the event. If you have any questions, don't be afraid to ask. Good luck!
5
 
CMC: Given a positive integer n, list the primes whose product is n. Repeats should be included
e.g. 56 -> 2,2,2,7
 
@lyxal APL, 7: 1∘⊥÷1,≢ Try it online!
 
AICMC: In a given list, print all combinations of 4 consecutive numbers.
 
@cairdcoinheringaahing J, 2 bytes built-in: q:
 
how to use the int() in mathjax?
 
12:21 AM
Is this just prime factorization?
 
Yeah, basically
 
@Fmbalbuena \lfloor\rfloor
 
@lyxal K, 2 bytes: 4' (though it only works in previous versions of ngn/k)
 
Except with powers expanded
 
In the latest ngn/k it's 3 bytes 4':
 
12:22 AM
AICMC: Write a method that accepts strings as input and returns true or false if the first string is an anagram of another by rearranging those letters.
 
@lyxal Extended Dyalog APL: ≡⍥∧ Try it online!
 
@cairdcoinheringaahing ARBLE, using Built-In, 15 bytes. primefactors(n)
 
Can you remove the (n) and submit as a function?
 
Actually, it works as a full program without the (n)
 
AICMC: If integers are divisible by 5 and 7, print 'Spiders'. Else if they're divisible by 3 only, display "Leg", else simply return "No".
6
 
12:24 AM
So 12 bytes for primefactors
 
FizzBuzz…
 
FizzBuzz but not really :P
 
I'm so used to using ARBLE's Absolutely fantastic input system.
 
@Adám truly amazing prospects for the future of AI :p
 
@lyxal J: Spiders`Leg`No{~1 i.~35 3|]
 
12:27 AM
AICMC: given a positive integer, If there is an odd number of digit 0s and 1, output a string containing only the last digit.
 
@lyxal In the binary representation, I presume.
And what do we do if there is an even number of 0s and/or 1s?
 
AICMCs are not very robust.
 
@Adám base 10 representation
@Adám I'll say return the original number
 
Huh.
 
@ATaco the sane ones aren't very robust
 
12:30 AM
@lyxal J: 10|^:(2|1#.2>#.inv)]
 
0
Q: How to shorten the python code?

FmbalbuenaI'm doing a program what takes a number from input (call x), loop from 0 to x (let's call Y) and print \$Y^Z+Z\$. When the program halts, prints "SUM: N" (without newline) where the N is the sum of the numbers of this output. Code: Python 3, 98 bytes E=print A=int(input()) B=[] for D in range(A)...

 
O h n o
 
AICMC: Given a list of alphabetical characters, build and return dictionary with frequency count for each character in that list (case insensitive)
 
@Bubbler Do modulo 10 zeroce or once depending on whether it has odd number of 0s and 1s in decimal
Is zeroce a word?
 
@lyxal Vyxal, 1 byte - Ċ
 
12:31 AM
Is that case sensitive?
 
AICMC: Given a string, print all possible palindromic partitions of the input
@ATaco yes, it is, so it's invalid as-is
 
AICMC: print all hexadecimal numbers (0xFF)
 
@Fmbalbuena Can I print a single digits, IE 0x6?
 
@ATaco print all including negative
 
Apparently zeroce is not a real word but someone had the same thinking as me :P
 
12:36 AM
Oh we doin' it that way? Bet.
 
@ATaco best answer
 
Prints all numbers up to the Double Integer Maximum, (And down to the Negative Double Integer Maximum), Then things get weird.
 
AICMC: print the input in reverse
 
@Fmbalbuena in APL.
@lyxal APL: ,∘≢⌸⎕C
 
@Adám ??? The full code.
 
12:41 AM
@Fmbalbuena Yes. Try it online!
 
footer?
cheater
input, not argument
 
@Fmbalbuena That's not per default I/O rules, but OK, ⌽⍞ then.
 
@Fmbalbuena The footer is just to move the assignment to a separate line, making byte counting easier.
 
@Fmbalbuena Vyxal,
And that is a full program taking input
 
12:47 AM
AICMC: write a program that prints the first 10 numbers of the Fibonacci sequence
 
@Fmbalbuena Funky, 11 bytes. "e".reverse
 
TIL half a cup is officially a "gill" in the US Customary system
 
AICMC: Given input as a string (JSON), return the number of levels in that structure's "nesting"
 
The "e" is required. I'm not sure why.
 
@ATaco NO, input
AICMC: print german numbers (
 
12:50 AM
@lyxal APL: |∘≡⎕JSON Try it online!
 
Input =/= Standard Input.
Function Input is a form of input.
 
AICMC: Return the smallest list of prime numbers that adds up to a given number if such a list doesn't exist return an empty list
 
AICMC: print the first n lines of a file
 
The complete program reading STDIO is 27 bytes. print(io.read()::reverse())
 
12:52 AM
@Fmbalbuena APL: ⎕↑⊃⎕NGET⍞1
 
AICMC: Complete the function that returns "Yes"/"No". Given a string, if its length is less than or equal to 3 return "Yes", otherwise return "No". Remove all punctuation from the given String and handle capitalization so consider puctuation characters such as apostrophes/quotation marks as part of the string, e.g "Selamat!" is considered 'Yes' basically just remove non-alphabet and return length <= 3
(italics is text I inserted for extra clarity)
 
@RedwolfPrograms took the words out of my mouth comment, on the latest tips questions
 
Lol the strikethrough doesn't render in the desktop notification I got for that reply (obviously), so I was wondering what a "mouth comment" is
Digraph constant suggestion: 2.54
 
AICMC: Solve without using string toLOWER() or String toUpperCase(). O(n) time required. From input "Hello WORLD", retrieve a new sentence which only contains three most common characters. All other letters must be replaced by space (' ').
(just ignore the time complexity restriction)
(because it has a love affair with inserting O(n) into things)
 
1:00 AM
@NewPosts Next year, starting September, I'm organising a "Advent of the Sandbox" event, where we go through the Sandbox and delete a bunch of dead proposals, and revive 24 or 25 to be posted as challenges through Decemeber
I've been meaning to do this for 2 years now - third time's the charm
 
AICMC: Given an integer array, partition the elements such that each of them would be equal to some number between 1 and 100
 
what
 
am i tripping or does that not make sense at all
 
I guess it could mean "bucket the elements of an integer array into a 'between 1 and 100' array and a 'not that' array"
But it doesn't really make sense
 
AICMC: Given an array containing all elements from 0 to n except one print element that is missing
 
1:04 AM
That's a good one
 
I understand it that you are given a list and have to cut it into chunks such that the sum of each chunk is between etc.…
 
@hyper-neutrino I think I accidentally left out the word sum there
It originally had Min instead of 1 so I had to do a little editing
Because I meant the sum should be in the range 1 to 100
@Adám correct
 
Sounds NP'y.
 
@lyxal APL, 8: ⊢~⍨∘⍳1+≢ Try it online!
 
1:08 AM
I need to make a golfing lang version of TypeScript Types
Same mechanics, just "golfy"
 
@lyxal Vyxal r, 2 bytes: Try it Online!
 
1:27 AM
CMC: Sort an array of non-negative integers into ascending order
 
@tjjfvi Jelly, 1 byte: S underdot
 
(I'm sure that's trivial in all y'all's golfing langs)
Yep
 
@tjjfvi vyxal, 1 byte: s no underdot
 
@tjjfvi Dyalog APL Extended: built-in , non-built-in ⍸¯⍸
 
Wow, Imagine not using underdots
Although, because underdots in Jelly generally indicate "inverse" functions, this implies that sorting an array is the inverse of summing that array
 
1:35 AM
CMC: given n!, output n
 
someone star "Welcome to the 15th Biweekly Mini Golf. During this event, we'll post some CMCs (Chat Mini Challenges) for you all to solve. A new one will be added..."
 
It was pinned earlier I think
 
according to the history, no ¯\_(ツ)_/¯ i thought it was too
 
Yeah, I pinned it
I then unpinned it after we went ~30 mins without a CMC
 
ah
I thought that'd leave it in the history ¯\_(ツ)_/¯
 
1:37 AM
Yeah, me too
Just gonna test something, no one yell at me
 
Right, can you make AoCG a site-wide event?
 
@hyper-neutrino ^ Potentially an "Upcoming Event", like LOTM?
 
sure, also, LoTM for december?
 
Can an RO pin this?
Cause I can't, having already pinned it
 
I already did... what the fuck happened to it
 
1:39 AM
I unpinned it for science
 
ಠ_ಠ
i thought chat was brok
 
BMG is rightfully over, no?
It's past 90 minutes since UTC midnight
more like 100 minutes
 
December LOTM looks to be BQN, if anyone (@Razetime posted the nomination) wants to post the LOTM post
 
@Bubbler yeah prob
 
@Bubbler Could you pin it anyway, for science? :P
 
1:41 AM
Yeah, pinning works for me
and then pinning again gives me "You have already voted, but the voting has been cleared by a moderator" :/
 
So, I can see the "pin this message" thing, but if I click it, it says
> You have already voted, but the voting has been cleared by a moderator
And the history has nothing :P
 
God, chat is broken :P
 
So if every RO has pinned and unpinned a message once, no non-mod RO can pin it back
It's fun
 
fun fact
I can't repin the message either
 
1:43 AM
@cairdcoinheringaahing Wait I unpinned it, so does this mean I'm a moderator, as I cleared te voting ? :P
 
> You have already voted, but the voting has been cleared by a moderator
 
Who is the damn "a moderator" lol
 
Why tf is there a pigeon at the beach?
Pigeons don't live at beaches
 
I kinda want to get a staff member in here to do some testing :P
 
@tjjfvi Vyxal, 5 bytes: Try it Online!
 
1:44 AM
@Bubbler Nooooooooo
What are we supposed to do for the next ~3.25 hours before aoc
 
Catija, if you're reading this, can you try to pin, then unpin, then pin again this?
 
Well, we have AoCG (but I know you answered it already :P)
 
@lyxal there's actually 2
And I don't like that
 
@tjjfvi Wow, this will even handle 7! = 5040
And it essentially uses unary
 
0
Q: Language of the Month for December 2021: BQN

BubblerIn accordance with our meta agreement, since one candidate received more votes than the others, we have a new featured language! Throughout December 2021, our Language of the Month will be: BQN What's a Language of the Month? See the meta post for nominations. In short, during December, those w...

 
1:49 AM
Fingers crossed on starting 2022 with Add++ as LOTM :P
 
@cairdcoinheringaahing I’ve voted for it
 
Apparently I need to create BQN tips question too
 
@tjjfvi Extended Dyalog APL: ¯! Try it online!
 
Is that essentially [inverse of] [factorial]?
 
Exactly that. ¯ is the negative symbol of negative numbers, so Extended has ¯f as a shorthand for f⍣¯1 meaning apply f ¯1 times.
 
1:56 AM
0
Q: Tips for golfing in BQN

BubblerWhat general tips do you have for golfing in BQN? I'm looking for ideas which can be applied to code-golf problems and which are also at least somewhat specific to BQN (e.g. "remove comments" is not an answer). Please post one tip per answer. At the moment of writing, the official BQN site is the...

 
Guys there's something wrong with my seagull
6
 
Did you try turning it off and back on again?
 
It's not red like the others
 
Well that can probably be solved by turning it off
 
Try shaking it a bit
There may also be some screws loose, so you might want to disassemble it to see if there's anything that needs tightening inside
 
2:06 AM
BQN time
 
@rues how do I do that?
@tjjfvi ^
(wrong reply lol)
 
@lyxal Options>Configure>Theme.
 
@lyxal pick it up and just pretend its your average baby, and treat it appropriately
 
@Adám set it to default?
 
Yeah, but if that doesn't work, just select "Red" manually.
 
2:08 AM
You should feed "seagull" to that AI and update its pfp
 
You might want to check for updates first.
 
Instructions unclear
It's lost a leg
But it is red now
 
Is it still under warranty?
 
Where do I check for that?
 
Is it open source? If so, you could fork it and fix the code yourself
 
2:09 AM
@lyxal Well, you'll first need a diamond worth at least 1,000 gp
 
@lyxal I mean, did you buy it in a store, or did you download it from some random place on the internet?
 
You wouldn't download a seagull
 
Why not?
 
@Adám I'd rather not comment on that for legal reasons :p
 
Are you promoting avian piracy here, Adám?
 
2:11 AM
@rues but wouldn't putting a fork in it kill it?
 
No, sorry. I thought it was the free trial version.
 
@lyxal ...but it would make it red
 
That's what you might think, but I've found seagulls to be surprisingly robust
 
@lyxal is that what happened to the leg?
 
Like chickens, they're very modular; rip off a couple limbs or their head and they're fine
 
2:12 AM
@AaroneousMiller idk I tried changing the theme like Adam suggested
 
It clearly has bugs.
2
Electron-powered, I bet.
 
I'm sure it's one of those newfangled quantum seagulls
 
Should I just get a new one?
 
I bet it doesn't let you list its system fonts either.
 
Buy the iGull, only $1000!
 
2:15 AM
eGull knock-off?
 
Super affordable, if you're looking for an overengineered and expensive bird
 
@lyxal Too late for a refund?
 
@rues probably
I heard they won't accept refunds for sanitary reasons...
 
I say bin it.
 
2:16 AM
Paint it a little and sell it on Ebay
 
@rues it's hard enough to define 'used' vs 'new' that i'm pretty sure the refund is just a short time limit, doesn't matter what condition it's in
 
@Adám yeah that sounds like the best
Anyone got any recommendations for the replacement seagull?
 
Why'd you buy a seagull anyway? Why not opt for a nice, affordable sparrow?
 
I think you can get used ones pretty cheaply at the beach
 
I know you don't get the same set of features, but seagulls are so overpriced
 
2:17 AM
I hear the pigeons are really good too.
 
Or you could go all in and get yourself a duck
 
@rues it was an impulse buy. I hate birds anyway
 
@rues Ducks are not plug-compatible with other birds.
 
Birds can be quite useful, you gotta keep up with the latest advances in technology
 
@rues ducks aren't as stylish as seagulls imo
 
2:19 AM
Yeah, bird tech really flies, these days.
 
@Adám No, but it's totally worth it to get a duck, even if you have to buy adapters and duck-specific stuff
 
I hate the small bird trend
The original dino-sized ones were the best
 
Not in production, though.
 
While the same apps don't work on them, the duck app ecosystem is huge
I'm using DuckDuckGo right now and it's so good
 
Yeah, they all bricked
Planned obsolescence, probably
 
2:20 AM
I hear they just lost internet connection and dropped out of the sky
 
At least all ducks are water-proof down to 1 m, so there's that.
 
@tjjfvi ikr? I hate it when I have to replace my bird every few years. So annoying
 
After careful consideration I've gone and gotten a new seagull
 
@Adám Yeah but their drop-resistance is much worse
 
 
2:21 AM
Ah, red and 1.5 legs. OK-ish.
 
It's a little hunched but I think there's a system preference to fix that
 
Meh, you could've done better. Is this refurbished?
 
You should be able to tune it.
 
I suggest jailbreaking it and installing Arch on it
 
*rebirdished
 
2:22 AM
@rues my dealer said it was the best he had
 
They always say that.
 
You saying I got scammed?
 
I'd get a different dealer, honestly, especially given your last seagull. I can hook you up with a guy I know, always gets you great quality birds super cheap
 
Who’s your seagull dealer?
 
@lyxal No, but I'd run a full systems check on it.
 
2:23 AM
@rues that'd be good
 
@rues I don't think the drivers will work.
 
@AaroneousMiller whoever rues recommends
 
I'm fairly sure there's some shady stuff going on behind the scenes, but I'll let it fly ¯\_(ツ)_/¯
2
 
Good think it isn't a kiwi then.
 
@Adám it crashed while doing so
 
2:24 AM
@Adám The designers really took to the whole "survival of the fittest" thing. Now every new generation is "the fittest bird ever in the flock"
 
@Adám It kept making these angry squaking noises
 
@lyxal Aight, so I just got off the phone with my dealer, and he's got a phoenix. Auto-renews, although the updates are a little fiery. Only $1000, you want me to ask him to hold on to it for you?
 
@rues $1000?!?! What does he think I am? One of the managing partners of a limb stealing organisation? Frick that's way too expensive
I think I'll opt for another seagull
 
@rues I'll take it if it's still available
About time to get a new bird
 
2:27 AM
@lyxal It's a quality purchase, though, and it'll last a lifetime, unlike seagulls that have to be replaced after a while
@UnrelatedString Hide before the birds come!
 
@lyxal Maybe you can build your own with a DIY set?
 
@tjjfvi Looks like lyxal doesn't want it, so you can have it
 
@Adám dang that's actually a good idea
 
Awesome, thanks
 
BRB just gonna go make my own custom seagull
 
2:28 AM
@Adám You might be able to scam some ashes off of someone who doesn't know how the updates work
 
@lyxal Be careful though, it's not for inexperienced users
 
@rues I think I know what I'm doing
I'm almost done too!
 
@lyxal Let me know how it went. I'm off.
 
Mmm, we'll see
 
Here we go, my own DIY seagull
 
2:29 AM
Beautiful
 
Ah frick I installed the head back-to-front
Anyone know how to easily fix that on the command line?
 
You might be able to remount just the face
Instead of the whole head
 
How does one do that?
 
@lyxal Shouldn't be a huge problem, honestly. It's only the other way round for aesthetic appeal
Had a seagull with the legs on the head and it worked just fine
 
Is there a simple bash one-liner to fix the head?
 
2:30 AM
You can't use bash here, it's a DOS prompt
 
Ah ofc
Suppose I'll have to download WSL then
 
@lyxal Python -m vyxal "ḣ$Ṙp" "e"
 
@lyxal hyu hyu hyyuuu yeow hyu hyu hyu hyuuuuuuu
 
Be sure to enable virtualization. That'll help your seagull pretend to be any kind of bird you want it to be
2
 
@AaroneousMiller oh thanks
 
2:32 AM
I had a chicken running a T-Rex VM once, very cool
 
That worked perfectly
 
@rues Pretty sure the chicken OS is just a small fork of T-Rex-OS
 
Who'd have thought a bit of vyxal could fix a bird?.
 
@tjjfvi Source: have chickens
 
@tjjfvi True, I'll try running a tiger VM sometime just for fun
 
2:34 AM
@rues the bird is purely a fashion statement. I don't like birds at all
 
Better seagull
 
Kinda minimalistic if you're into that
 
@lyxal (just for clarity, that's actually the same seagull...i accidentally took a picture of it facing the other way then got a picture of it facing the right way a second later)
(Adam's DIY seagull suggestion was a perfect segway into making a joke about the two pictures)
 
*segue
 
segue
ninja'd
 
2:37 AM
Eh idk

SeagullOS

31 mins ago, 30 minutes total – 148 messages, 9 users, 9 stars

Bookmarked 26 secs ago by lyxal

 
Birds are better than segways, CMV
Now that the bird conversation is over, can I ask what the seagull would even be used for? Transportation? Computations?
 
I told you it's a fashion statement
A flex on all the other equity partners at the limb stealing organisation
 
@Fmbalbuena it is hard
come to think of it in my case, before i actually watched nadeko snake, i:
- had heard most of the song but knew nothing about it
- could recognize parts of the op visuals, knew the name of it, and knew it was from bakemonogatari
but was not actually aware that the two were in fact the same
i merely *suspected* that ren'ai circulation was "the fucking space jam remix song"
 
@UnrelatedString lmao at "space jam remix song"
 
needed to listen to the whole thing on loop like
10 times
to break the association
it was too deeply ingrained
 
oh yeah i've seen that in my recommended before
oh no
 
it lowkey goes hard (but I like aviicii so ymmv)
 
it's ok; not smth i'd decide to listen to but it ain't bad at least
 
oh apparently the avicii song there is also something i have heard before and was not aware of the name of
i just have it filed as "song they play at the gym #74"
 
2:59 AM
oh fuck this does go hard
 
@UnrelatedString lmao, they play a weird combination of aviicii, taylor, and then just more modern generic pop music at the dinng halls & gym here
 
but then today they hit us with a nightcore + remix version of how far i'll go so hey!
 
@UnrelatedString highkey aviicii can be remixed into anything and go hard though so hey
 
3:00 AM
i can see that
 
3:25 AM
In order to keep this room a bit more orderly and avoid the long AoC countdown chains here
and also because caird said so
Nov 9 at 5:06, by caird coinheringaahing
Btw, I'm planning on creating an AoC room and pinning a link to it through December
Please keep Advent of Code countdowns and discussions in the AoC room :)
6
 
Wait AoC's not today is it
prematurely panics
 
it is
 
it's in 90 minutes
 
redwolf are you alright *pat pat*
you seem to be struggling with the concept of time lately
 
3:30 AM
It's nov 30th for me D:
 
I forgor about timezones
 
Well I guess I'm not using my AoC library today lol
 
see ET superior region <o/
it's day 1 it's probably faster to just write straight vanilla code
 
3:31 AM
Eh, maybe, although IMO the first few days it's nice to have some simple stuff easier to access
JS is great at doing simple stuff in a frick ton of bytes
 
oh yeah i forgot how midnight works
 

« first day (3959 days earlier)      last day (876 days later) »