« first day (2380 days earlier)      last day (2462 days later) » 
00:00 - 18:0018:00 - 00:00

12:01 AM
@MDXF aka vsl
 
^ probably you could actually do with command chain
 
@ASCII-only vsl?
 
@MDXF Vaccinated Seal Laughs
 
Anonymous
@flawr For the purpose of using black box functions as input for challenges, any side effects should be irrelevant. The function should be able to be treated as a pure function, modulo a few specific cases (like when an RNG is involved).
 
Have you made any progress finding a solution to A000236?
 
12:13 AM
Not really. I've only made myself more confused ._.
 
hey, do you want to see a square root of minus garfield I am working on?
 
I made a strange sequence that appears to return the input most of the time but for some primes returns a multiple of it. ._.
 
@ASCII-only isn't it the summer? >.>
 
@ConorO'Brien i live in upside down land remember
 
@ASCII-only but to you, we're the ones who live in upside down land
upsidedown-ception o_O
 
12:27 AM
@HyperNeutrino so if I am upside-down in upside-down land to someone who lives in upside-downland am I technically right-side up or upside-down
 
Neither. You are right-side left.
 
what does that even mean
 
it doesn't
(idk either lol)
 
"it doesn't mean?"
Aug 1 at 22:38, by ppperry
this is the danger of challenges
well, that was only one danger of challenges
the other one is that someone makes an answer that is very hard to continue the chain from.
 
@ASCII-only oh. so you guys are off during decemberish?
 
12:45 AM
@ppperry *cough* ;P
 
this loophole isn't specific to this challenge
 
hi
i am currently drinking what i assumed was "tropical mango" juice
 
@totallyhuman 你好
 
but i have found that it contains no juice
 
12:48 AM
lol
 
whatsoever
i have been betrayed
 
what does it contain then o0
 
it's just vitamins stuffed in water
 
:I then how does it taste like "tropical mango"
 
it doesn't
 
12:52 AM
lol
 
it tastes like tangy water
 
l_l well that sucks
 
i don't know how else to describe it
 
anyway sry gtg now o/
 
12:55 AM
@HyperNeutrino ಠ_ಠ
 
well, if we're posting irrelevant images, can I be posting my garfield edit?
2
 
Does anyone know if there's an algorithm for generating all unique (free) n-ominos?
Wow, I'm an idiot... for some reason I thought that the number of unique n-ominos was the n'th Catalan number
 
1:11 AM
0
A: The Bowlers-Golfers Fraction War

ppperryCPython 3.6.2, 25984 bytes t=int().__sub__(int()==int()) t=t.__sub__(int().__sub__(t));t=t.__sub__(int().__sub__(t));t=t.__sub__(int().__sub__(t));t=t.__sub__(int().__sub__(t));t=t.__sub__(int().__sub__(t));t=int().__sub__(t).__sub__(int()==int()) d=__builtins__.__dict__;l=list(d); c=d[l[t]]((d,...

and, after golfing many other answers to that challenge, I posted my own ...
 
ayy I made a comment exactly the comment length limit
xD
 
1:33 AM
@DestructibleLemon ಠ_ಠ it's not even oneboxed and occasional images are fine from what i've seen
 
As long as you're not doing large OT oneboxes it's usually fine. It's usually ignored also :P
 
1:45 AM
Hello
 
o/
 
rip OEIS challenge :'(
 
Progress on the next OEIS slow and unsteady. Uncertain of completion.
 
I'm gonna change the subject. Does anyone think cheese is good?
 
1:47 AM
it would be nice to be able to see a program that can compute the values regardless of how messy it is (as long as it's in a language I kind of understand); I would understand that over math explanations
@MDXF Surely someone in this world must.
 
Also baby ducks are fluffy. Unless they are rubber
 
only need a program that works
 
@MDXF 0/10 self promotion (/s xD)
 
Ok *begins argument about invalid OEIS sequences* better?
No?
 
1:49 AM
Let's talk about rubber ducks then
XD
 
The game of life Tetris thing :0
 
that's even less possible
 
No it's not xD
 
:o Ö D:
 
PhiNotPi is almost done on it
 
1:50 AM
hey, this sequence has been computed. That challenge has not been completed.
> almost
 
Wait the sequence has?!?
 
completed thing vs. almost completed thing. which seems more possible?
 
Then... why hasn't it been answered?
 
@MDXF WELL SOMEONE MADE IT !!!111!!11! :P
 
1:50 AM
@HyperNeutrino Ah yes
Can we just talk about ducks?
 
(I just noticed how un-random my 11-ing is)
 
pls?
 
Well in that case I'll just go back to reading the papers. Fortunately they're not extremely long; only 4 and 5 pages.
 
Ok
As long as we're not arguing about OEIS sequence A000236
...again
 
i want to argue about ducks
 
1:52 AM
yes pls
 
How about we don't argue?
 
@Downgoat This has probably been done before, but: I just sorta implemented func1 . func2 . func3 (x) syntax in JS :-D
 
Unless there's an OEIS sequence about ducks
 
why are there no more of giant duckies
 
send some more to duck chat
 
1:52 AM
> Numbers n of initial person such that the n-th person survives in the duck-duck-goose game.
2
 
@HyperNeutrino >_>
 
@ETHproductions :O proxies?
 
1:53 AM
@Downgoat Right, so you have to pass each function you want to use this way through a proxy-making function
But still, it works :D
 
@totallyhuman oh hi mendeleev
 
@ETHproductions You could modify Function.prototype. But cool, share source?
@MDXF you need two 'w's in the "aww" for "aww yiss"
 
1:54 AM
@MDXF 0/10 use this link
Why settle with JPEG quality 85? :P
 
Wait mdoifying function,protoypye wouldn't do anything
 
var makeFunctional = function(func) {
    return new Proxy (func, {
        get: function (target, name) {
            if (target.__proto__.hasOwnProperty(name) || !window.hasOwnProperty(name))
                return target[name];
            return makeFunctional(function(x){return window[name](func(x))});
        }
    });
}

var plus1 = makeFunctional(function(x){ return x+1; });
var times2 = makeFunctional(function(x){ return x*2; });
console.log(plus1 . times2 . plus1 (2)); // ((2 + 1) * 2) + 1 = 7
@Downgoat ^
 
So... what was the purpose of the rubber duck? xD
 
to duck around
 
1:57 AM

 Rubber Duck Debugging

For people who find rubber duck debugging to be a very effecti...
don't duck with my room
 
ಠ_ಠ
 
get it? get it? :P
 
oh for my duck's sake
 
Guys
 
2:00 AM
yes
 
My search engine is so relevant
DUCK DUCK GO
 
That's not a browser!
That's a search engine!
 
It's a search engine
 
ninja'd xD
 
*writes browser named after ducks* don't duck with me
 
2:01 AM
that's also my default search engine
Best thing to do on DDG when you have too much time: !ddg !ddg !ddg ... !ddg !ddg !ddg (search term)
 
This has provided two examples that show that codegolf.stackexchange.com/questions/133600/… is way oversimplified
 
Now I'm gonna make a challenge based on printing duck ASCII-art
 
@ppperry yup :P
 
so
That challenge is hard for a computer to decide, anyway.
 
Would a challenge replacing all instances of the f word with duck be considered a ?
 
2:03 AM
er
no
"For challenges which involve deciding whether or not the input meets certain criteria, and outputting based on the state of a Boolean value, either truthy or falsy, representing that decision. "
 
No. is about determining if an input satisfies a condition.
 
Oh yeah duh it's only truthy-falsy
 
(ninja'd xD)
 
I have forgotten that like five times XD
 
@Downgoat Is there any way to make a proxy apply to all functions objects of a certain prototype?
 
2:07 AM
0
A: Sandbox for Proposed Challenges

MD XFImplement a space-based golfer code-golf Some two-dimensional esolangs, such as Forked and some non-esolangs, such as Python, can sometimes require spaces before lines of code. This isn't very golfy. Your task is to make a tool to make these languages golfier. Also because I'm lazy and writing ...

 
CMC: replace every word in string with duck
 
@totallyhuman lambda s:'duck '*-~s.count(' ')
wait what's a word
 
lambda s:' '.join(['duck']*len(s.split()))
oh ok then
nvm me
 
@totallyhuman Fails for foo\nbar
(where \n is a literal newline)
 
If a word is just [A-Za-z], then lambda s:re.sub('[A-Za-z]+','duck');import re
 
2:10 AM
@HyperNeutrino Fails for input containing newlines
 
a string is words split by spaces
there
 
@ppperry Fails for anything containing non-word characters like !!#%$%&$^%*&$^@&
 
quit over complicating CMC's :P
 
er, what fails for things containing non-word characters
 
my first solution
depends on the definition of a word
 
which now that totallyhuman has specified, makes my solution valid
 
no, it doesn't
your solution silently converts newlines to spaces
 
@ETHproductions Kinda sorta maybe idk brb checking
 
import re;lambda a:re.sub("\w+",a,"duck")
 
@MDXF ._. I expected it but an explanation would be nice
 
2:14 AM
@MDXF Done
 
Why hasn't the new-sandboxed-posts bot posted yet
 
I needed to find all of the links
 
Thank ya sir
 
@ppperry It's not instantaneous :P
 
oh
 
2:14 AM
Yeah it would be a dupe
Darn
 
Now I gotta think of a challenge that implements duck puns
 
I upvoted your other recent though. That one looks fun
 
:D
 
I have no idea why I did but I must've been really bored cuz I just joined IPS.SE earlier and wrote an answer that's probably longer than any SE answer I've written so far ._.
 
2:15 AM
since we're talkin about sandbox
eyes on this?
0
A: Sandbox for Proposed Challenges

totallyhumanTake me to your leader code-golf internet stack-exchange-api Have you ever found a good code-golf challenge to answer, answered it and then found out somebody posted a shorter solution in the same language? Challenge Write a program/function that takes a PPCG question ID and outputs a leade...

 
@totallyhuman not excuse to self-promote :P
 
anyway brb o/
 
@ETHproductions looks like it's not possible to change Function.prototype, but perhaps in other JS environments (e.g. node) it might be possible
 
@MDXF this is actually encouraged :P
 
@totallyhuman Yes ik I was kidding
Well if we're all doing encouraged self-promotion does anyone wanna contribute to Forked? increments contribution request counter to 5
 
2:18 AM
@ETHproductions I think might be possible if we can somehow change descriptor for Function.prototype as rn it is readonly
 
I highly doubt that is possible, why else would they put it in readonly
 
so we don't do this :P
 
just switch to haskell :P
 
I guess the other option is to loop through all existing objects and all of their properties and set each function to a functionalfunction
 
we could try to do some really shady shit and create a fake Function which kinda sorta copiesish the prototype Object
 
2:21 AM
Function={prototype:function(x){alert(x)}} works, weirdly
not sure if there's anything we can do with that
 
though I don't think that would modify existing functions' prototypes
 
> Function('return 1 + 1').asdf
< "a"
> Function('return 1 + 1')()
< 2
I have the proxy returning a
doesn't affect existing functions though
 
yeah, I know
that's what we'd need to get around
 
TIL you can git clone repo wikis
 
2:44 AM
@Downgoat How does the first one work?
I get undefined
 
@Downgoat wait functions can be defined by source code? ._.
 
@HyperNeutrino Yes.
 
derp
I do seem to have noticed that printing a function that was defined in the code will print its source though
 
Notice Function and not function
 
yeah
from my experience tho defining a function and then printing it will print its source code lol
 
2:52 AM
for (var key of Object.getOwnPropertyNames(window)) {
    if (!/Storage$/.test(key) && window[key] !== window && window[key] != null) {
        if (typeof window[key] === "function") {
            window[key] = makeFunctional(window[key]);
        }
    }
}

Number . String . RegExp (new Date()) // gave me /1501901543759/
This is fun :-)
 
ooh this looks interesting
 
Next step toward functional programming: make all prototype functions global (so instead of "abc".toUpperCase(), you can do toUpperCase("abc"))
 
Just thought I'd throw this question out there to you expert golfers. Is there a meta post or any resource somewhere that has a list of more basic operations / functions that are used often within typical math / data manipulation code golfing challenges?
 
@PatrickRoberts just browse two or three golfing langs and take the common denominators
 
@ETHproductions Is "abc".toUpperCase() equivalent to String.toUpperCase("abc")?
 
3:02 AM
@StepHen That's a pretty good idea, thanks. Do you have any particular suggestions? I'm collecting ideas for extending JavaScript functionality, so anything oriented to Math / Array manipulation would probably be most helpful.
 
@PatrickRoberts Jelly, 05A1BE, etc
the common ones
 
@HyperNeutrino It is, I guess. I didn't know that
 
Alright, thanks
 
I just guessed that from knowing how Python works :P
 
It's not like that with all properties though
Date.prototype has a .getSeconds method, but Date does not
 
3:04 AM
Ah okay.
btw I don't know what prototype is
 
@HyperNeutrino the class stuff
@HyperNeutrino it has methods and class vars
 
ok
so is it the static stuff or the instance stuff
 
you can change any class at any time with class.prototype.<name>
@HyperNeutrino instance?
I think
 
as in is it the stuff consistent with the class or does it change with every instance of the class
 
class itself
 
3:08 AM
oh ok
 
Array.prototype.split = lets you change the split method
or you can add new methods to the array class
 
That's really cool :D
 
yeah but it also means that you have to be careful :P
 
this just gave me a reason to maybe use JS again
 
Except Array.prototype doesn't have a split method :P
 
3:09 AM
@StepHen Don't worry, I won't anyway.
 
@ETHproductions yeah well you know what I mean
@HyperNeutrino when I say that, I mean any JS code you touch could have overwritten any class's methods or properties
 
In Python one of the things that annoys me is that you can't change the functions of built-in classes so you have to create wrappers
@StepHen Ah okay, I see.
And then there's Java where you can't change any operators :I Even reflection is not the most useful thing and it's really annoying
 
Yeah I really like how Python does the __ __ stuff with classes and operators
 
@StepHen Then again, that's the best part: you can add one
 
3:24 AM
@ETHproductions bind op kinda sorta brings this
 
3:39 AM
Guys have you seen this
1
A: Most efficient cubifier

Kamil DrakariCubically, Score: 86.98 U3D1R3L1F3B1U1D3~:7+1(-1@3(-1%1)6:1+3111@6%1-31111+004@6:1+11111%6:1+45@6:1-1%6~:7+1)6 Try it online! Turns out, all you need is conditional loops, a face equal to 1, and consistent End-Of-Input behavior.

 
 
1 hour later…
4:51 AM
@MDXF You realized you bountied 100 rep and not 1000 right?
I mean you can't bounty 1000 at a time but you can bounty more that 100 at a time.
Otherwise we'll be here for 10 weeks
 
 
2 hours later…
6:43 AM
also: new short ppcg thing just it isn't really short: not-s.tk?g
 
No onebox?
 
7:05 AM
0
Q: Gcoeara Email Address

jasonChallenge Given an email address, your task is to determine and print if it's valid or not. Condition for valid email A valid email address must be in the form: pqrs@gcoeara.com pqrs can be replaced by exactly 4 lowercase English letters. The domain (@gcoeara.com) must remain same for every ...

 
 
2 hours later…
9:07 AM
I have a question, how would you use the input on TIO in C# code? Is it even possible?
 
 
2 hours later…
11:01 AM
@NewMainPosts huh?
 
11:44 AM
Can I get feedback on this:
3
A: Sandbox for Proposed Challenges

programmer5000 I'm looking for feedback, especially on the winning criterion. I just added a new winning criterion. Look at the "Winning" sections for the cops and robbers. code-challenge cops-and-robbers decision-problem Just Hangin' Find the input that hangs the program Cops: This is the cop'...

I just changed the winning criterion for both the cops and the robbers, and I want feedback on that.
 
@programmer5000 Taking a look rn
 
Thanks
 
@programmer5000 Highest score wins... What?!
Why?
Before your submission is cracked, your score is 0
@programmer5000 So if your answer is safe, you have no chance of winning?
@programmer5000 I suggest putting it as such: Highest Score wins. and Before your submission is cracked, your score is .
Do you agree?
@Downgoat Do you think code review would kill me if I used i > 1 && (2..<i).map({i % $0}).filter({$0 == 0}).count == 0 for primality checking?
Yaaay, PPCG has exactly 8.4 k questions!
3
s/questions/challenges
 
12:09 PM
@Mr.Xcoder Sounds good
 
@programmer5000 Looks good now.
Cannot wait to compete (if you post it before I'm off :))
that spoiler tho
 
12:29 PM
@HyperNeutrino I didn't even see / fully read / remember the OEIS answer chaining challenge :o
 
1:29 PM
@programmer5000 what's wrong with the usual CnR + code-golf for cops?
 
I just wanted something diffrent
PPCG has waay too much codegolf
 
@programmer5000 make some polyglot challenges? :p
 
1:54 PM
0
Q: Just Hangin' (Cops)

programmer5000Find the input that hangs the program This is the cops' post. The robber's post is here. Your challenge is to make a program that terminates on all inputs except one (or more)1. Please, don't "implement RSA" or anything mean to the robbers. Use obscure languages and features, not boring e...

0
Q: Just Hangin' (Robbers)

programmer5000Find the input that hangs the program This is the robbers' post. The cops' post is here. Your challenge is to find one or more input(s) that hangs a cop's program. You only need to find one input, and it doesn't need to be the desired one. Clarification: The only valid inputs are constant ...

 
@totallyhuman no more carrot spam
Pls
@programmer5000 because most other challenges are offtopic
 
Anonymous
2:11 PM
5 messages moved to Trash
 
> There's a possibility that every challenger could include a leaderboard. While I do not currently see any disadvantages to this, I'm not sure if the community would agree.
any thoughts?
 
Anonymous
@totallyhuman Context?
 
6
Q: Do we need leaderboards on all challenges?

Jarko DubbeldamI noticed a bunch of edits showing up in the edits queue where the usual javascript leaderboard is added to challenges. Example Example I think the leaderboards are fine, but do we really need to add these to challenges that have been inactive for quite some while?

so i was wondering if, instead of people editing one in
the challenger included it in the first place
 
Anonymous
Yeah that's not a problem. The problem is a bunch of trivial edits bumping posts to the front page.
 
@totallyhuman how can a random potato challenge poster (like me) find this script?
 
2:17 PM
@NewMainPosts As I commented in the sandbox, that challenge is a duplicate of codegolf.stackexchange.com/questions/135365/…
 
54
Q: Leaderboard Snippet

Martin EnderI've been using a stack snippet for a while to generate leaderboards for my simpler or more popular code golf challenges. I want to share the code for this snippet here so others can use it more easily as well. Feel free to put feature requests and bug reports in answers, or let me know in chat....

 
2:27 PM
can i get eyes on this?
 
@totallyhuman ew web challenge
 
 
2 hours later…
4:54 PM
Yay I got bronze in
 
@WheatWizard No you have to double every time
I'm doing 100, 400, 500
slowly, so I don't lose privileges
 
You don't have to double over 500
I've awarded 1000 rep bounties before ;)
Oh I see
I mistunderstood
My bad
@MDXF Wouldn't want to lose access to those site analytics right. ;P
 
0
Q: print the minimum number of operations required to separate the coins

Vijay SinghThere are n blocks numbered from 0 to n-1 inclusive for each box i contains r[i] red coins b[i] blue coins and g[i] green coins.we need to separate the coins by their color. in each operation we can pick a single coin from some box and put it into another box. it is considered the coins are separ...

 
@WheatWizard 'course not :P
 
5:35 PM
@totallyhuman I found a crack, do I post it or wait for someone else to?
 
i've no idea
 
-2
Q: "Hello, World!" (Cops' thread)

MD XFThis is the cops' thread. The robbers' thread is here. Your challenge is to write a program or function that, with a certain input, prints the exact string Hello, World! and a newline. Capitalization, spacing and punctuation must be exact. Input may be taken via standard input, a file, or comma...

-2
Q: "Hello, World!" (Robbers' thread)

MD XFThis is the robbers' thread. The cops' thread is here. Your challenge is to take an uncracked submission from the cops' thread and find, for what input or inputs, the program will print Hello, World! and a newline. Capitalization, spacing, and punctuation must be exact. Please comment on the co...

 
Yeah yeah. For some reason, popularity in sandbox != popularity on main
 
@Downgoat I added syntax for applying arguments to a function, so for x => x.map(z => z + 1).join("") you can now do map._(z => z + 1) . join._("")
Would it be better to just have the function postfixed with a _ (or maybe a $), like map_(z => z + 1) . join_("")?
 
@MDXF IMO, you can't really use the sandbox to determine if the challenge is good. It's more for determining what problems it has, and how to make it better.
 
5:39 PM
Well yeah but I didn't expect 4 sandbox upvotes to correlate to 4 main downvotes
 
It's really good at catching things you hadn't thought of, but it isn't great at letting you know how well it will be received.
 
Apparently so
@WheatWizard do you know if OPs are supposed to crack submissions?
'cause I'd already found it (link) but I didn't know if I should post it
 
@MDXF Yeah its usually ok
 
Darn!
 
@MDXF I don't think it's terrible, but the biggest problem I see is just that the spec is short. Concise specs are good, but not at the risk of clarity, and C&R requires much more specification then normal. For example, my C&R is about 20 paragraphs long (each) with code examples. Your two together are 7, with no examples
 
5:43 PM
Wow
Oh examples. Yeah that would've been a good idea
I guess I should've looked at more CnR posts, instead of just one well-received one
 
@MDXF Why did you protect this question? It hadn't gotten any invalid answers lately afaict.
 
The hardest thing about writing challenges is coming at it from the perspective of someone who doesn't know anything about your challenge
 
@Dennis It had 24 deleted answers
I thought that was grounds for protection. I was kinda surprised Community hadn't protected it
 
16
Q: When should challenges be protected?

DJMcMayhemUsers with 3,500 rep (or 15,000 if when we get a site-design) can protect challenges. This makes it so that users who have not earned 10 rep on the site can not answer. As a user with this privilege, I have no idea when it would be appropriate to use. This is because the idea of "protecting ques...

 
Ah
 
5:59 PM
sees (4) The Nineteenth Byte, clicks on tab (removed) (removed) (removed) (removed)
 
00:00 - 18:0018:00 - 00:00

« first day (2380 days earlier)      last day (2462 days later) »