« first day (3964 days earlier)      last day (862 days later) » 

1:16 PM
0
Q: How long will my microwave run for?

GingerIndustriesFollowing the theme of strange kitchen appliances, let's talk about my microwave. Introduction My microwave has a keypad that is laid out like this: 30 > 15 1 2 3 4 5 6 7 8 9 +/- 0 S/M I can press the +/- and S/M keys to switch between adding and subtracting minutes or seconds. Th...

 
you know
If I had a nickel for every time someone made a CGSE post about strange kitchen applicances, I would have 2 nickels
It's not a lot, but it's weird that it happened twice
 
@GingerIndustries There's also
18
Q: Generate lazy microwave input

AdámRelated: Program my microwave oven and Generate lazy values. My colleague is so lazy that he doesn't even bother to move his finger when programming the microwave oven. (This is actually true!) Help him find the microwave input that gives the time closest to what he wants, but where all digits ...

 
@Adám okay so 3 nickels
@Adám That's 15 whole cents! this could maybe be profitable
 
@GingerIndustries Hey, I linked to another (closed) one.
 
@Adám 4 nickels?
 
1:20 PM
Maybe time for a ?
 
@Adám yes, that is an excellent idea
 
@Adám it has been done
@Adám what shold the tag wiki say
*should
 
Just to be clear: I was just joking.
There's no benefit of having that tag over a simple search
 
@Adám no, you were Adám
Get it right
smh
 
1:33 PM
@Adám ¯_(ツ)_/¯
 
@GingerIndustries Here, you dropped this: \
 
proceeds to steal dropped limb
 
@Adám I did include that
@Adám ¯_(ツ)_/¯
 
@GingerIndustries You need to double it to escape markdown.
 
@Adám ofc, 2 limbs are better than 1
 
1:35 PM
Otherwise \ is consumed to prevent _ from making italics.
 
¯\_(ツ)_/¯
 
E.g \\o -> \o
 
there we go
 
@lyxal hmm thought that would have worked
Anyhow o/ for real
 
\\\\\\\\o
the technical term for this is recursive backslashescapification
 
1:42 PM
CMC: Given a printable ASCII text, insert a backslash in front of every character which is neither a letter, nor a digit.
 
@Adám JavaScript, 31 bytes: s=>s.replace(/_|\W/g,x=>"\\"+x)
 
hm
lemme do some python
 
@pxeger Can you not do _|\W?
 
ah, didn't think of using something other than a [] character class lol
 
Test case: 7\_('o')_/F7\\\_\(\'o\'\)\_\/F
'_|\W'⎕R'\\&' in APL, which means that in QuadR it is:
_|\W
\\&
 
1:48 PM
@Adám can we assume input does not contain newlines?
 
Yes, as those are not printable ASCII.
 
oic
@Adám Vim, 16 bytes: :s/_\|\W/\\\0/g
 
@pxeger Python 3 w/o regex
@pxeger whoops, wrong person
 
1:53 PM
@pxeger Ford could make a lot of money selling 19/8
 
@PyGamer0 ooh
 
@Adám Python 3 w/o regex: lambda s: "".join([x if x in string.ascii_letters+string.digits else "\\"+x for x in s])
@Adám does need the string module to be imported
 
@GingerIndustries you can remove the spaces between the "s and their neighbouring characters
@GingerIndustries imports typically need to be included in the byte count
 
@pxeger okay. Byte count (including imports): 100 bytes lambda s:"".join([x if x in string.ascii_letters+string.digits else "\\"+x for x in s])
 
@Adám Python, 49 bytes lambda s:"".join("\\"*(1-c.isalnum())+c for c in s)
 
1:56 PM
@PyGamer0 what site is that
 
regex is hard and confusing
 
@AlanBagel cgcc
 
welp now it's 676
 
@AlanBagel noooooo
wait if someone upvotes
twice
696
 
@PyGamer0 well then
 
2:01 PM
@pxeger byte count is wrong. And also -1 byte (making 50, in fact): lambda s:"".join("\\"*-~-c.isalnum()+c for c in s)
 
@pxeger uh what does -~- do
 
I think it means negate, minus one and negate, and negate again
 
bitwise negation of an integer gives -(n-1)
 
@Razetime so it's negate, minus one and negate, and negate again
 
2:05 PM
-~-x is the same as (1-x) which is the same as (not x) (for booleans)
 
It seems to give -(n+1)
 
oh yeah
-(n+1)
 
I mean -(n-1)
 
@pxeger can you give a table of all ~- combinations??
 
yeah that would be great
 
2:07 PM
challenge: Given a string of characters consisting of either "^" or "v", return net SE reputation if ^ represents an upvote and v a downvote (from the perspective of the person being voted on)
 
@PyGamer0 the only really useful ones are ~ (-1-x), -~- (1-x), -~ (x+1), and ~- (x-1)
any more than that and it's better to use parens
 
-~ is very very commonly used to increment number without modifying it
 
@GingerIndustries is the starting rep 0 or 1
 
@GingerIndustries so 1 + (10 * number of ^s) - (2 * number of vs)?
 
@AlanBagel we'll say 1
@pxeger yes
 
2:10 PM
lambda s:1+(10*s.count("^"))-2*s.count("v")
 
@pxeger thanks!
 
@PyGamer0 also x-~y = x+y+1 and x+~y = x-y-1
 
how about lambda s:10*s.count("^")-2*s.count("v")+1
 
let's see if I can write a solution in KonamiCode
 
I think lambda s:10*s.count("^")-2*s.count("v")+1 is the shortest possible in python. Also lambda s,c=str.count:10*c(s,"^")-2*c(s,"v")+1 for 45 bytes.
 
2:22 PM
^ @RedwolfPrograms
 
Morning!
 
oh cool
my ping summoned him lol
@RedwolfPrograms o/
 
No new feedback
 
My golfing language has two special objects, wildcard and undefined. wildcard == x always returns true; undefined == x always returns false (even undefined == undefined). What should wildcard == undefined return?
 
@RedwolfPrograms ok
 
2:27 PM
@pxeger One should take precedence, most likely
 
@pxeger DivideByZeroError
 
Although this sounds like an odd and rarely useful concept for a golfing language feature
 
@pxeger wilddefined
uncard
caird
 
@RedwolfPrograms the idea is to simplify edge-case handling but maybe it's not really useful
 
@pxeger WildinedError
 
2:29 PM
@pxeger It should return true or false depending on if it's wildcard == undefined or undefined == wildcard
 
at the moment it takes the behaviour whichever is on the left hand side
but I feel like I shouldn't break =='s commutativity like that
 
undefined should take precedence
 
do you think undefined != undefined will break things, too?
 
> simplify edge-case handling
 
lol
good point
Well I'll add them, and if it turns out noone ever uses them or they break too many things, I can just remove them
 
2:37 PM
i had a question, i kind of think i answered it on my own, but i kind of still want you guyses opinionses
 
About to check my PSAT score
 
ooh good luck
or,well, hope you already had good luck
 
@thejonymyster guyses is a good word lol
@thejonymyster I was gonna say, that's not much use now lol
 
i grew up in the mobs, see
 
@pxeger Don't you know test scores are both passing and failing at once until you look at them?
4
 
2:39 PM
@RedwolfPrograms I mean, that statement can't be disproven...
 
so, question: for a question that takes no input, would it be allowed to take a constant input, adding those bytes to your total?
 
I doubt it, tbh
 
I'd say no, but I could see there being some old rule allowing it
Sort of like using the file name
 
right except i think the difference is like
filename is part of your program, while input is not
 
1470/1520 :/
 
2:41 PM
@RedwolfPrograms whats PSAT?
 
practice SAT
 
@RedwolfPrograms I don't really have a reference point on how good that is, as a brit; what were you hoping for?
 
@RedwolfPrograms at least better than 1469
 
@pxeger Perfect score :p
 
maybe its golf
 
2:42 PM
@RedwolfPrograms lol
 
1470 is pretty good, it means I missed five questions
 
what is
SAT?
 
A standardized test you use to get into college
 
some acronym test
 
@RedwolfPrograms so do you get 10 points for each? Why don't they just divide everything by 10?
 
2:43 PM
@pxeger Because giving people useful scores is not what college board likes
The more arbitrary your score seems, the more profit they make
3
 
dont want to interrupt but i am at my job and for a good, i dunno, five whole seconds, i completely forgot how to do it
3
i was just sitting here at my desk like. shit dude
 
you ok there? lol
 
uhh probably LOL
 
lol
 
anyway, off to do that now bye thanks for the help good golfing and happy trails
 
2:45 PM
o/
 
i/
 
3:34 PM
@lyxal Not sure about closed, but ~44% of all CGCC questions hit the HNQ
 
@cairdcoinheringaahing what does HNG stand for
 
We close ~38% of questions, so that leaves ~18% of questions that aren't closed and don't hit HNQ
@AlanBagel Hot Network Questions, a feed that shows active questions across the network
 
@cairdcoinheringaahing that's a surprising statistic
I wonder what percentage of questions get deleted
 
hey all my proposal has been sitting in the sandbox for almost 2 weeks now could i get some feedback on this? i don't want to go off posting this to the main site and getting feedback that should've been caught in the sandbox codegolf.meta.stackexchange.com/questions/2140/…
 
(within three first 48 hours, let's say)
@bigyihsuan looks pretty good to me, but I don't understand "If it is unambiguous that a cut of cars all moves as a unit from one siding to another, you can omit a step to the intermediate track,"
 
3:48 PM
so a lot of the time you're just moving a cut of cars from B/C/D to B/C/D
if you want to fully notate that you have to include an additional step of going to A, like `1ba 1ad` which, since the cut of cars the engine has hasn't changed between moving from B to D, i can notate it as `1bd` instead
though if it's like 1ba 2ba 12ad then you can't compact it since the cut on B changes before you move everything to D
besides 1ba 2ba 1adwouldn't be a legal move sequence because 1 is stuck "behind" 2, and you'd have to move 2 out of the way to move 1
aka the engine's cut of cars is a stack, with the top facing towards the sidings
 
4:07 PM
Reading the rows of this makes lots of low quality inspirational quotes
"be good. do first, say last. get long."
"think big, look high, want different" (picture of mountains in background)
 
Where this from?
 
Wikipedia's list of most common verbs and adjectives
 
Interesting
@RedwolfPrograms isn’t it out of 1600?
 
Nope, it's out of 1520 for some reason
Might be 1600 for the SAT itself
But it was 1440 for my PSAT 8, and 1520 for my PSAT 10
 
Oh thid is psat
I’m so pissed about the psat because i got a good score but it was before junior year so I would have had to take nmsqt again
and i took tge sat in 10th grade but colleges are test optional now so all that studying was for nothing
 
4:16 PM
They'd probably prefer you to have the test scores though, right?
 
   verb      |  noun
subscribe to | technoblade
 
@RedwolfPrograms they don’t hold it against you if no score (or so they claim)
 
Yeah, but it seems like it'd be assumed to be about average, so if you had like a perfect score I'd think you would do better
 
My sat score was okay so I’m sending it to colleges after all but still
 
Either a) scores would be assumed to be some specific number or b) nobody's scores would matter at all
I don't see how it could be anything other than those two
 
4:18 PM
@RedwolfPrograms i didn’t get a perfect score lol
 
Well, close I mean
@RedwolfPrograms Or c) they make up for it by increasing the importance of other factors, so if you're stronger in academics than that sort of thing I'd think sending in test scores would be a good idea
 
Sure yeah but it’s not going to impact my acceptance that much
I’m guaranteed to be accepted anyway because of my wonderful essay and accomplishments /s
 
@bigyihsuan I've got it now, but I'd suggest defining "cut of cars" somewhere because (as someone not familiar with railway jargon) it confused the wording a lot
@rues simple, just accidentally drop a briefcase of $10M cash in the Dean of Admissions' office
then you don't need to worry about your essay or anything
 
Good idea, could you lend it to me? :p
 
4:49 PM
@pxeger Or several pictures of the dean's family taken throughout the day
Preferably through the scope of a rifle for extra effect
 
uh
 
0
Q: Sum powers to n

SpitemasterEach natural number (including 0) can be written as a sum of distinct powers of integers (with a minimum exponent of 2). Your task is to output the smallest power required to represent \$n\$. For example: 2 = 1^2 + 1^3 // Output 3 9 = 1^2 + 2^3 = 3^2 // Output 2 15 = 2^2 + 2^3 + 1^4 + 1^5 + 1^6 ...

 
5:07 PM
@NewPosts lol, I could solve this in O(2^(n^3))
 
@RedwolfPrograms be it gooder do it firster say it laster get it longer
hey, how about mutual quines that share as few chars as possible
cmp: ^ cool or lame
 
could be interesting, yeah
assuming they have to be in the same language
 
right yea
fun idea to consider: allow different output forms for each one so they can avoid sharing the same like
idk how to word it but like
one could alert, one could console.log
unless thatd be bad lol
 
5:33 PM
@pxeger wildcard seems like the one more likely to be deliberately used for its particular properties, so i'd say it should take priority
 
5:45 PM
@pxeger No idea which would turn out more useful, but if undefined == undefined is false, I would expect undefined == wildcard also to be false. In this case testing x == wildcard would mean "there is some non-wildcard value w for which x == w is true."
 
great, more entirely conflicting answers! lol
 
But I think I would prefer if undefined == undefined were true. In which case, I think either true or false would make equal amounts of sense for undefined == wildcard. :P
 
I suppose you can use NaN if you really want it not to equal itself
 
Is there only one kind of equality comparison in this language? Another option would be (in Python terms) that undefined != undefined but undefined is undefined
 
I don't plan to add another kind, no
 
5:49 PM
Another thought: If undefined is conceptualized as "doesn't have a value," and wildcard is conceptualized as "matches any value," then undefined == wildcard should be false because undefined is not "any value," it is the lack of a value.
 
@DLosc I don't know, you might want x[i] == y[i] to be false if i isn't in either x or y
I could see that being used for various golfs
 
@pxeger follow in the footsteps of the great languages. Do whatever, wait for your language to become popular, then deprecate the old comparison operator and add one that makes sense
 
lol
 
When does the wildcard even show up?
I think it'd simplify things a lot to just remove that
Equality testing isn't even that common
 
@RedwolfPrograms Ah, a frame challenge, I see :P
 
5:53 PM
@pxeger not sure what it should be? simple, return undefined. undefined == wildcard is undefined
 
but then I need to decide whether undefined and wildcard are truthy or falsey respectively
 
Surely undefined is falsey, no?
 
undefined is obviously falsy, and wildcard is obviously truthy
 
@pxeger undefined ? x : y => undefined
 
well you'd think that, but is that actually the most useful way round
@Wezl-acautionarytale if you make too many things involving undefined just return undefined, you can never use it for anything
 
5:56 PM
There's some sort of is_undefined, right?
 
@pxeger okay, make undefined return something else. how about undefined => wildcard
 
@RedwolfPrograms [laughs in Pip, which has no direct way of testing if a value is nil]
@Wezl-acautionarytale oh no
 
I think I'm going to scrap this idea completely
 
Maybe keep undefined
But wildcard seems very niche
 
5:58 PM
undefined should be a variable that can be redefined :P
 
But whatever value undefined is set to should have the same behavior as undefined
E.g., if you run undefined = 2, 2 != 2
 
that's reverse assignment
 
No it isn't
5 mins ago, by Wezl - a cautionary tale
undefined should be a variable that can be redefined :P
 
it basically assigns 2 = undefined
 
When you make undefined something else though, the property no longer exists
 
6:04 PM
?
 
And 2 is still 2, so 1 + 2 is still 3
But 2 != 2
 
I already know 2 != 1!
that never changes!
 
This is how you know you messed up
I count at least three JS-typing errors lol
 
I'm trying to write Jelly rn, and the tell-tale sign you messed up here is getting lists which are much deeper than you wanted
 
undefined should be the only falsey value in a separate truthy/falsey system that has its own set of logical operators, if/while statements, etc. (Compare C preprocessor directives.)
@Adám Approximately /əx/, like German ach but with a much higher vowel.
 
6:11 PM
@pxeger jht is a goldmine
 
@Adám very short ɤ; then unvoiced uvular trill (which has no IPA character, it seems)
 
I pronounce a quiet "ugh" as "ugh", but an "UGH" as "you-gee-aitch" like it's intended to be
 
UGH = University of Ghana?
 
No, a loud "ugh"
Like "UGH THERE'S A DECAYING BAT IN THIS HOT WATER TANK"
 
how specifically do you pronounce the "ugh" bit though?
 
6:16 PM
"you-gee-aitch"
Duh
But quiet and sort of under my breath
Like a regular non-capitalized "ugh"
 
6:28 PM
Sort of like "OMG"…
How do you say "omg" then?
 
@Adám the same i guess
 
@Adám Imagine the sound someone swallowing a whole helium balloon would make
3
It's roughly akin to that
 
When you reach 10k rep, you get a button that says "edit tags" under every question
This seems to be no different whatsoever from editing the question, so I guess it's just for speed
in which case why not give it to all users with editing privileges?
 
That's something I think most users ask when they hit 10k lol
I guess it's because the 10k tools aren't particularly exciting on their own
I think at 10k you should be able to edit others' profiles
 
6:44 PM
@thejonymyster There's a challenge on sharing no characters & it's really hard
 
@RedwolfPrograms really? I wouldn't trust certain 10K+ users of this site with that privilege as far as I could throw them
 
Yeah I know, I'm joking making a joke :p
 
@RedwolfPrograms well maybe I should edit your profile to rename you to "joking"
or "making a joke", even
 
tag edits are non-bumping, so people mind less if you do lots of them
For example, you could go tag all of these
 
@pxeger you should make undefined == undefined return undefined, and !undefined also return undefined, etc.
 
6:48 PM
(not all of those, some won't be related enough)
 
wait, that bumped
 
I was gonna say, I thought tag edits still bumped
 
Yeah, if they didn't you could tag 40 questions with and get a (irrevocable) badge for it
 
Hm, I thought they didn't for some reason
anyway o/
 
6:55 PM
\o
 
@RedwolfPrograms which badge?
 
Taxonomist
Oh, 50 not 40
 
@emanresuA link plz
 
Getting used to having to put : after if statements is the hardest part of using Python for me lol
 
7:23 PM
also whats the like, i dont know what its called but like
shit how do i even ask this
how does code golf feel, in general, about easier questions? i imagine as long as it isnt something trivial, its still interesting to golf in most langs? dunno what im getting at
 
@RedwolfPrograms Yeah, APL's having : before if is obviously the right design.
 
CMC: Given a positive integer n, return whether n is coprime to ten
 
@thejonymyster Very much depends. Do you have something in mind?
 
lol i just realized that bump was actually my first retag
free badge tho
 
@LeakyNun APL: 1=10∘∨
 
7:32 PM
@LeakyNun Vyxal, 3 bytes: ₀ġċ Returns 0 if coprime to ten, else 1. If that's not valid, ₀ġċ¬
 
Indentation much? :p
 
0
A: Sandbox for Proposed Challenges

Alan BagelChunk Sort a List code-golf sorting Your task is to input a list of integers and chunk sort it. You may assume the input list can always be chunked into groups of 1, 2, and 3. Definition Chunk sorting (a term I made up for the purpose of this challenge) is the action of first chunking a sequence ...

Feedback ^
 
@RedwolfPrograms something pretty simple, along the lines of "check if all inputs are equal". idea i guess is that i like seeing weird esolangs compete / being able to compete in weird esolangs and some of the more challenging questions seem unapproachable xd
its possible i just need to get good though
maybe an "easy" tag
 
8:02 PM
@LeakyNun Zsh -F, 12 bytes: grep [1379]$
Outputs via exit code; 0 means coprime to 10; 1 means not coprime
(what do we output for 1? Mine says it is)
 
@pxeger 1 is coprime with 10
 
8:23 PM
Anyone want an invite to try a Google FooBar challenge? (idk what it does but it offered me an invite "for a friend" and I don't have those lol)
 
@RedwolfPrograms sure
are they safe to publicly share? Or do you want my email
 
Umm, probably better to email it
 
_@pxeger.com will do
 
I'd like to participate too.
 
Unfortunately I only have one link
Fight! Fight! Fight!
 
8:33 PM
@AlanBagel if I get it, I might be able to give you an invite of my own and we can start a foobar invite virus
 
link?
 
I sent it to pxeger, it only works for one person
 
start a google foobar pyramid scheme lmao
 
@RedwolfPrograms thanks!
 
8:37 PM
TIL _ is a valid email address (minus the domain) lol
 
so _@example.com is valid?
 
Apparently
 
IIRC, according to the spec, even @@pxeger.com would be valid
 
starting an email app that only allows _s for your email adress
 
although it's unlikely to be accepted anywhere
 
8:39 PM
fail
well we should check gmail at least, they should know what theyre doing right
 

« first day (3964 days earlier)      last day (862 days later) »