« first day (3973 days earlier)      last day (877 days later) » 

12:00 PM
totally unrelated, but
Welcome to the 16th 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!
 
Ooh, and at a humane hour (for me) too!
 
and to start things off, we have an actual human written draft:
in BMG Drafts, 13 hours ago, by pxeger
Draft: (standard I/O rules) output the sequence of positive integers which are divisible by 2 an even number of times. i.e. 1 3 4 5 6 7 9 10 11 12 13 14 15 16 17 ...
AICMC: Write a function that takes in a string and outputs only lowercase english letters.
 
@Adám IMO, the polite thing to do is to ask the person about their preference
 
AICMC: Given a positive integer n. Return the number of composite integers in range [1,n] that have odd divisors.
 
@lyxal I assume that means filter way everything but lowercase English letters.
 
12:03 PM
@Adám correct
 
@lyxal APLX, 4: ⍞∩⎕a
 
@lyxal So all odd composite numbers? :P
 
AICMC: Print the second last level of a binary tree with space separated per node
@cairdcoinheringaahing hey don't blame me, blame the computer ;p
 
@lyxal ?
 
@Adám so given a binary tree in any convenient format (object, list of nodes, whatever) print the second last level
If that's too abstract, I have another one:
AICMC: Return the longest integer in a given list.
 
12:06 PM
What if there are multiple?
 
output the maximum/minimum
 
@lyxal Jelly, 5 bytes. Try it online!
 
Do negative ints count as longer than their positive equivalent?
 
Of course :P
 
@Adám I'll say yes because the - is part of it
 
12:07 PM
You can make the "-" in front as long as you want, so technically, if the list has any negative number, that should be the longest :P
CMC: "Roll" n 20 sided dice (random number 1 to 20), and select the ith largest (n and i positive integer inputs)
 
hmm the AI seems to be in an unhelpful mood tonight. It's generating either completely non-objective CMCs or just describing easy things in fancier terms
 
Winter Bash has started
4
 
@cairdcoinheringaahing APL: ⎕(⊃∘⍒⊃⊢)?⎕⍴20
 
@cairdcoinheringaahing And I already have a hat on 5 sites I haven't visited in weeks
 
m90
@lyxal C (gcc), 55 bytes: n;main(){while(__builtin_ctz(++n)&1||printf("%i ",n));} -- Try it online!
 
12:13 PM
@lyxal Dyalog APL Extended, 13: {⍵⊃⍨⊃⍒≢∘⍕¨∧⍵} Try it online!
 
@cairdcoinheringaahing Vyxal, 7 bytes: ƛ20℅;si
 
CMC: Given a Unicode string, return a string of equal length where every character differs from the corresponding character in the input.
E.g. ABC
 
@Adám Vyxal, 3 bytes: C›C
 
@lyxal How does that work?
 
@cairdcoinheringaahing Oh god, am I about to get 177 copies of the same hat, but for each site? Its up to 13 already
 
12:16 PM
@Adám to character codes, increment and back to characters
 
@lyxal Does it work on my example input?
 
depends on what that first character is
 
U+10FFFF
 
m90
@lyxal Improved: C (gcc), 48 bytes: n;main(){while(++n)(n&-n)%3-1||printf("%i ",n);} -- Try it online!
 
@Adám then no
 
12:18 PM
Then that's not a valid solution :-)
 
C›»∆#½»%C for 9 bytes
 
@lyxal How?
 
to character codes, increment, modulo 10FFFF_16 and back to char codes
 
Clever.
 
»∆#½» is just that number compressed in bijective base 255
 
12:21 PM
@Adám Jelly, 8 bytes Œ!nẠ¥Ƈ¹Ḣ
Just gets all derangements, then selects the first one lexicographically
 
Fails on AAAA
Wouldn't it be possible to e.g. flip the 1s bit of each character?
Here's an interesting solution in APL: {n↑⍵~⍨⎕UCS⍳n←≢⍵}
No, wait. That's not good.
 
0
A: Sandbox for Proposed Challenges

caird coinheringaahingOrder of an algebraic number Consider some arbitrary polynomial with integer coefficients, $$a_n x^n + a_{n-1}x^{n-1} + \cdots + a_1x + a_0 = 0$$ We'll assume that \$a_n \ne 0\$ and \$a_0 \ne 0\$. The solutions to this polynomial are algebraic numbers. For example, take the polynomial $$x^4 - 10x...

 
oh man, funny hats
 
CMQ: Does CodeGolf SE have hats?
 
Yes
Every SE site does
 
12:34 PM
When?
Oh!! I see it. visible excitment
 
y'all really just put cmq over every question y'all ask lmao
 
@Riker CMQ: Does prepending **CMQ** to questions annoy you ;p
 
nah i just think its funny but also kinda ill-fitting
i would just expect it to be an actual question with multiple answers, like 'what do y'all think of x' rather than a yes/no or simple answer
 
everyone loves CMQ questions
 
12:38 PM
@Riker CMQ: Yes
 
hmmmmm
 
CMQ: Yes? :P
 
uh oh, the winter bash menu has replaced the right side dropdown on mobile
 
@user lol you removed the ping.
 
m90
@lyxal x86 32-bit machine code, 14 bytes, fastcall convention, takes 1-indexed position: 31 c0 40 0f bc d0 83 e2 01 01 d1 e2 f5 c3 -- assembly: .text; .global f; .intel_syntax noprefix; f: xor eax, eax; repeat: inc eax; bsf edx, eax; and edx, 1; add ecx, edx; loop repeat; ret;
(continued) Try it online!
 
12:50 PM
VLQ? NAA?
 
@Fmbalbuena What post?
 
@cairdcoinheringaahing Read the comments of the answer
 
Oh right. VLQ = "very low quality". NAA = "not an answer"
 
34
A: What are our specific abbreviations and terms?

AdámSee also Stack Exchange Glossary - Dictionary of Commonly-Used Terms. Abbreviations marked with a star (*) are chat specific. Catalog: A type of simple on-topic challenge where the challenge's aim not so much to find a winner as it is to create a catalog of solutions in many languages. CG: Code G...

 
solved my puzzle from yesterday :)
hello all!
 
1:04 PM
do i get -1 rep whenever i downvote?
 
@PyGamer0 Depends what you downvote.
 
i downvoted an answer
 
Where?
 
on cgcc
 
Main?
 
1:12 PM
CMQ: How to turn on dark mode on CGCC?
 
There isn't one, but you can use a style sheet injection plugin.
 
@grandBagel browser plugins
 
So can I use settings?
 
@PyGamer0 Only if you downvote an answer
 
1:15 PM
@cairdcoinheringaahing ah
 
Looks like there are a few hats based around accepting/accepted answers, so that's going to be annoying for hat collectors here :/
 
Although dzaima's CSS has issues. I find that this works better:
body{
    background: rgba(0, 0, 0, 0.9)
}
#content,.topbar-dialog {
    filter: invert(0.9) hue-rotate(180deg);
}
#content img,.-link.topbar-icon-on {
    filter: invert(1) hue-rotate(180deg);
}
 
@grandBagel If this is about the hat, apparently you can't earn that hat outside of SO sites
 
@JoKing Aww
 
Except for when you could earn it on all the sites by mistake, but they fixed that :P
 
1:17 PM
Double aww
 
I briefly had it on CGCC, then it was stolen away from me like it was candy and I was a baby
 
Triple aww
 
which hat?
 
Glare reducers
@cairdcoinheringaahing How about Beta/Private Beta?
 
I don't think there are any sites in private beta at the moment, but yes, even beta sites do
 
1:26 PM
it's hat time
 
Do Beta sites have any special hat-related stuff?
 
Only SO has any special hat-related stuff, and that's the hat for using dark mode
Aside from that, hats are identical across the network
 
to be honest, this top hat doesn't fit me very well
 
Why can't not-SO sites have dark mode?
 
(aside from the hat that Redwolf got cheated out of last year, but that was last year)
 
1:31 PM
that's better
@cairdcoinheringaahing how does one get cheated out of a hat
 
@grandBagel See "Future Releases" at the end of this
@GingerIndustries Last year, there was a Defender of the Unicorn hat manually awarded for reporting ways of cheating at a minigame called Hat Dash.
Can't remember exactly what Redwolf did, but he maintains that he should've been awarded the hat
 
@cairdcoinheringaahing huh
 
May 5 at 20:08, by Redwolf Programs
I'm still mad at SE for giving out a hat for cheating at the winter bash game when I was the #1 player in terms of time spent and worked for quite a while to help report cheated scores
 
@cairdcoinheringaahing incidentally, I notice that your name displays as "caird" and therefore doesn't get chopped off. How do I do this?
 
Add a space, or a -
2
 
1:36 PM
0
A: Sandbox for Proposed Challenges

justANewbieChallenge You should write a program that has one in (your code in bytes) chance to print out a 4. So if your code has n bytes, your code should have 1 in an n chance to print out a 4. Rules You should not use any whitespace or comments to get to the number that you want. You shouldn't use any l...

 
It's why hyper is "hyper-neutrino" instead of being "HyperNeutrino" like he used to be
 
1:50 PM
Okay, that did it
 
why do yall have random hats on yall pfp
 
Question: I'd like to know more about how languages such as Vyxal and 05AB1E compress strings; is there a specific place I should ask/look?
 
And I assume because, well, tis the season!
 

 Vyxal

For discussion about Vyxal. Repo: github.com/Vyxal/Vyxal | Org: ...
 
1:52 PM
Thanks!
I knew I had seen that somewhere but had forgotten...
 
@GingerIndustries Nice that they've taken the southern hemisphere into consideration this year.
 
@Adám Oh yeah, Summer Bash
 
Hold on, how can there be penguins at the winter bash? It is summer for all penguins right now!
3
 
@Adám hmmmmmmmmmmmmm
 
> All hats can be earned on any participating Stack Exchange site.
 
2:06 PM
I got a hat by doing basically nothing...
 
@Komali The SE darkmode one?
 
Nah, "I voted on Code Golf!"
I voted ¯\_(ツ)_/¯
 
The true test of an esolang is to be included in the CGSE header background image
 
@lyxal Retina, 7 bytes: T`lp`l_ (assumes input only contains printable ASCII)
@Adám Retina 0.8.2, 11 bytes
 
@Neil How?
 
2:18 PM
@Adám changes all non-newlines to X, then exchanges Xs with newlines, thus guaranteeing that no character maps to itself
probably would have looked funnier if I had used . instead of X
 
@Neil Oh, that's clever. 7 in QuadR like that: Try it online!
 
ugh, I wish SE wouldn't taunt me with "Show 1 more comment" but then not show anything
 
Ooh winter bash!
 
2:34 PM
In a certain code language, ‘348’ means ‘she likes apples’, ‘8375’ means ‘parrots likes apples lot’ and ‘748’ means ‘she likes parrots’. What is the code for ‘parrots’ in that language?
^ solve that
 
@PyGamer0 Off topic. Belongs on Puzzling.SE
 
isnt it just [hover](7)
well that didnt work but its trivial isnt it
 
3=apples 4=she 5=lot 7=parrots 8=likes
 
@Adám you solved the entire thing
 
I almost accidentally clicked "no hats for me" ._.
 
2:39 PM
i feel like 8375 should be 5378
 
@thejonymyster [hover](ftp:// "7")
 
That was actually quite interesting to golf.
 
since the like sentence structure for the others are object subject verb
lmao golfing the hover links
 
This version works particularly well, because (my) browser doesn't show a URL hint, only the hover tip.
Also, clicking it has no effect, so it is truly just a hover effect.
I should document this.
 
2:43 PM
oh that rules
 
Can anyone confirm that it works as well on Chrome?
 
i got a hat
 
Ooh I do love when I get 10 emails per day from random colleges
 
the hover effect works, and clicking takes me to about:blank#blocked (tested on chrome)
 
2:44 PM
Works on Chredgium.
 
Hey I got another hat!
 
its summer bash for emanresu A/lyxal/JoKing
am i missing someone?
 
ASCII-Only, but he's not been active in like a year
 
@thejonymyster Yeah, same on Chredgium. It seems I cannot get around that.
 
I got Thought Bubble secret hat!
 
2:48 PM
wait, people who work at RedHat already have a hat throughout the year
 
No idea how I got it
 
my hatloaded here
 
How to wear mutiple hats?
 
I don't think you can, unless at least one is entirely inside your avatar, in which case you can screenshot it, use it as avatar, and wear another hat on that.
 
@Adám I'll try that.
 
3:00 PM
@Catija How comes your hat is behind your avatar?
 
Is it?
Shouldn't be.
Looks fine to me?
 
Oh, my bad. I had a user style sheet that caused it. Sorry.
 
:D
Odd that it was just me and not others, though.
 
Wasn't just you, but it was very noticeable on your avatar.
Dark mode for all of SE when?
(That's the only reason for me to have user CSS.)
 
The nice part of polish notation is all the close-parens at the end. It's just visually satisfying
 
3:19 PM
@GingerIndustries ? PN doesn't need parens.
 
@Adám I.E. Lisp
 
I see. That's not classic PN, though, because functions are data. Classic PN (e.g. RPN of HP calculators) maintains a distinction, obviating the need for parens.
 
0
Q: Generate the Chess Numbers™

SegganI was browsing Stack Overflow when I saw this post in Puzzling in the hot network questions and decided to make a challenge out of it (all credit goes to the creator of the challenge). Overview A Chess Number is a number that, when converted to base 18, results in a valid chess coordinate pair, w...

 
Maybe this question should include an algorithm overview?
 
3:51 PM
I didn't even do this, but got 8 points for some reason
And that's not how you spell "Quiz"
 
@RedwolfPrograms wait what
 
@RedwolfPrograms hm people do love solving quizziez
 
4:09 PM
@RedwolfPrograms looks like a science class, can’t expect tge teacher to have English or math skills /s
 
4:24 PM
i have to go to physical school tomorrow :/
 
4:38 PM
@Adám nope, I know that.
 
4:58 PM
How to get Glare reducers?
 
use either high contrast or dark mode
 
@hyper-neutrino Where?
 
Pog
 
@Fmbalbuena only available on stack overflow (and its language variants)
 
I wish I understood why Glare reducers was a snorkel instead of ... sunglasses.
 
5:14 PM
lol, yeah... ¯\_(ツ)_/¯
 
Though, I have similar questions about other hats... Like... Starfish... is a tiara of ... clamshells?
 
5:28 PM
Huh... that's the fastest I think I've ever gotten a secret hat. No idea what I did to earn it. :P
 
I got like ten instantly last year lol
 
@DLosc You get that hat when you fill out you chat user's about section
 
I guess it's retroactive, then. I haven't touched that in weeks.
 
Thought bubble?
 
Yup
@Fmbalbuena ^
 
5:35 PM
how to get Thought bubble?
 
That can't be true
 
@cairdcoinheringaahing but it is
 
No.
 
Pretty sure Thought Bubble is for viewing your own profile
That's how I got it on MSE (like, I didn't have it, clicked on my profile, then had it)
 
@cairdcoinheringaahing got it right after filling out my about thing
 
5:36 PM
which you probably did by viewing your profile
 
@cairdcoinheringaahing ah, whoops
 
Most of the hats are released on a cache... so if you got it immediately after, that may not have been why.
 
Yeah, I just got it a second ago and didn't change anything
 
¯\_(ツ)_/¯
 
also yeah never trust timing on SE
 
5:36 PM
Also, imagine not having the Santa hat
 
@cairdcoinheringaahing well how do you acquire it
@cairdcoinheringaahing i wish to be festive
 
It's a fake hat
 
It's absolutely not a fake hat, it's a 100% real Winter Bash hat
 
I have a Santa hat ^_^
 
Real hats don't show in chat user profiles
 
5:37 PM
@cairdcoinheringaahing ... from a prior year.
 
It just happens to be from 2019 :P
 
@tjjfvi yes, they do
 
@Catija shhh :P
 
@tjjfvi I have one, try zooming in
 
... but... you ... just... :sigh:
 
5:38 PM
Fun fact, my other profile picture also has a hat :P
 
@tjjfvi you might have hats off if you don't see them
or you need to reload :p
 
Yeah, if you want to see hats in chat you have to refresh the page.
 
i've already clicked between rooms like 6 times this morning so i don't have to worry about not being up-to-date for long usually :p
 
And then you can count them if you want, to obtain chat hat stats
 
I'm torn between hat hunting or not this year. I was top of the leaderboard last 2 years IIRC, but I'm not sure I have the energy to
 
5:39 PM
I have a real hat.
 
I mean that they don't show at chat.stackexchange.com/users/533049
 
Should I put my real hat onto my profile picture for the winter bash?
 
ok i turned off hats and reloaded and they instantly disappeared
then i turned them on and reloaded and they still haven't returned for several minutes
 
Hats are elusive.
 
5:42 PM
> No edits or flags on a positive, open question asked during Winterbash for one week.
I'm tempted to edit every new question for the next 3 weeks just to stop people getting this :P
 
defining variable
in Charcoal?
 
@Adám Must be penguins that live at a northern hemisphere zoo. (I would also mention Galapagos penguins, but I guess they're equatorial so it's not exactly winter for them either.)
 
@cairdcoinheringaahing Does a zero width space work?
 
@DLosc I did think of them, but… yeah, as you say.
 
@tjjfvi No idea
 
5:49 PM
I'm stuck Try it online!
 
Charcoal doesn't like infinite loops
 
@Neil what i do to work?
 
what are you trying to do?
Assign(0, a); for (1000) { Print(Cast([a, Negate(a)])); Assign(a + 1, a); }
(MapAssign(Incremented, a); also works)
 
@Neil print all integers
 
yeah Charcoal doesn't like doing that
 
5:52 PM
And there we go
I am now festive
 
That is a satisfying piece of chaining to beat all other answers by at least 3 bytes :D
 
@Neil only outputs when the program halts?
 
well, you can use Dump(); Clear(); I guess
 
best I could come up with was Assign(0, a) while (1) { Multiprint(Cast(a)); Dump(); Move(:Left); Print(1); Dump(); Clear(); MapAssign(Incremented, a); }
Dump(); is rate-limited though so this will time out rather than overflowing the output limit
 
5:58 PM
how to join string and int
 
@tjjfvi You can't put ZWSs in usernames, so no
 
It might be useful to show the polynomials in the test cases
 
Good thing that Wolfram has MinimalPolynomial so I don't have to do the tedious work :P
 
Just posted a cop on the steganography CnR from a while back:
0
A: Hide a message in an image - Cops

Redwolf ProgramsLow difficulty Image 1: ABCDabcd01:::: Image 2: Fun fact: The practice of designing a cryptographic algorithm which itself uses cryptography to allow the designer of the algorithm to read any message is known as "kleptography" (not relevant to this, just an interesting field that's a friend-o...

 
6:11 PM
APOL now has 4 for loop types
I'm beginning to run out of f character variants
 
fun fact: i discovered https:/tio.run then CGCC.
@RedwolfPrograms idk
but it's copied from images of chat.
 
i hate my life
i just recorded a 40-minute-long video without turning my microphone audio on in OBS
 
@hyper-neutrino Why?
 
@hyper-neutrino is it the sort of video where that was all of the work
 
@thejonymyster yes because it was a lesson on how to solve aoc 15
 
6:26 PM
@hyper-neutrino You should be able to reconstruct the sounds by back-calculating the current state of the universe using the laws of physics.
6
 
and you could just watch me type but the whole point is my explanation
@Adám reverse laplace's demon :P
 
@hyper-neutrino Can't you do a voice-over, or do you show your face?
 
Oh there's tutorials for these things? :0
 
@Adám I could voice it over but like, that'd still take me 40 minutes to record the voiceover and it'd be easier to just do it again
 
@hyper-neutrino lol
 
6:26 PM
actually, maybe not a bad thing. consider it practice :D the second run-through will be better
@Komali well not officially, but I plan to do one for this because it seems to have been quite tricky
 
@hyper-neutrino Play the at 2× speed and speak faster.
 
and I might as well share my competitive programming experience since I suspect some people would be interested - i have accumulated almost 60 stars on my AOC solutions repository since i'm the highest ranked person with easily accessible solutions
 
@Adám Or, more realistically, by analyzing the vibration of an object on camera (if there was a camera)
Which has been used for surveillance purposes before, with special IR lasers through windows
 
@RedwolfPrograms and which still freaks me out that it is possible
 
6:31 PM
Even better was camera on fax machine.
 
is string nliad?
 
In most languages yes
 
is negate monad?
 
Should be
@RedwolfPrograms ("most" because Ash's strings could take arguments)
 
is "while" monad?
is "(" and ")" monad?
 
6:34 PM
@Fmbalbuena It would be a quick
 
(in Python)
@RedwolfPrograms oh
 
while is not a function it is a control flow structure
 
@Fmbalbuena Oh, Python doesn't have nilad/monad/dyad stuff
 
( and ) are not functions they are syntactical components
 
@RedwolfPrograms "+"?
 
6:35 PM
also ^^; there are still like, unary and binary operators and you can talk about the arity of a function, but it doesn't matter because you don't have things like chaining rules or whatever
and also strings are not nilads they are just values. python is not functional
 
In either sense
 
What is Tacit programming?
 
@hyper-neutrino Reminds me of the time I had written 4 chapters of a fanfic and then my USB drive failed. I did end up rewriting it all, and it was probably better the second time through. But it also taught me the importance of backups. :P
 
Nothing what's Tacit programming with you?
2
 
Why Jelly is Tacit programming?
 
6:36 PM
@Fmbalbuena Tacit languages have a strong focus on chaining functions together to do things, rather than naming arguments explicitly
@Fmbalbuena Jelly's tacit system can save bytes in some cases, and it makes it harder to learn so the Jelly elite don't have competition :p
 
Tacit programming, also called point-free style, is a programming paradigm in which function definitions do not identify the arguments (or "points") on which they operate. Instead the definitions merely compose other functions, among which are combinators that manipulate the arguments. Tacit programming is of theoretical interest, because the strict use of composition results in programs that are well adapted for equational reasoning. It is also the natural style of certain programming languages, including APL and its derivatives, and concatenative languages such as Forth. The lack of argument...
 
@DLosc Tbf, fanfic is always better the second time you write it :P
 
@Fmbalbuena If you stick to your APL studies long enough, we'll get to that.
 
APOL is ostensibly a golfing language but in reality isn't very good for golfing
 
where can i read up on apol?
 
6:48 PM
I would know because I made it myself
 
@GingerIndustries Something is wrong with the markup for V
 
@Adám so it is
 
@GingerIndustries ?
 
@Adám fixed
@Adám ???
 
needed more Fs.
 
6:51 PM
vyxal bot not working, @hyper-neutrino.
in sandbox
 
Just added a very large number of examples to the APOL github repo
 
@RedwolfPrograms ⍝Wolf Programs
(Ledwolf Programs)
 
@Fmbalbuena thumbwolf programs
 
suswolf
 
@GingerIndustries no, this doesn't end with "ed" nor "ad".
 
6:54 PM
redthumb programs?
like the complement to a green thumb
 
Or, possibly, the result of an unfortunate accident with a potato peeler
 
@Fmbalbuena that's by design
 
Redwolf Pro grams.
 
vyxal bot only operates in one channel at a time and right now it's set in the vyxal room
only i can swap it
 
6:56 PM
@hyper-neutrino oh
 
professional grandma
 

« first day (3973 days earlier)      last day (877 days later) »