« first day (2379 days earlier)      last day (2450 days later) » 

4:00 PM
ouch
 
carlos 35, uriel 30, totally 10
@EriktheOutgolfer Do you now have any challenge for 05AB1E?
 
I have 359 helpful flags...I think I'm on the top
 
@EriktheOutgolfer Mego has 500+ iirc
 
@ASCII-only can you fix the first bit?
 
4:17 PM
Were you ignoring me or just didn't have any?
Mego has 527 helpful flags btw
I have... 9 (and Neil 0)
 
I have one flag, and that one isn't very helpful at all. I can ask it to do things all day but it never bothers to lift a finger.
 
I have 85, but lots of these were validated by myself...
 
how do you check your flags
 
Profile > Activity?
 
4:20 PM
Below Impact
 
I have 6 lol
then again that doesn't count my old account IIRC
 
But what do you all flag when you directly VTC (except the mod attention)?
 
Is there a way to see the ratio helpful/flagged?
 
@Dennis Ha, nice
 
4:22 PM
and also I flagged something for edit wars
 
@Mr.Xcoder Unneeded comments, invalid answers, and spam, quite likely in that order.
@HyperNeutrino That's not really required btw. Community already flags those.
 
@Dennis What flag can one use for Unneeded comments? Comment flags?
Like too chatty / obsolete?
 
Yes. One of the default options is no longer needed.
 
@Dennis oh ok.
 
too chatty and obsolete are a thing of the past.
 
4:24 PM
Yeah, crossed out 44 is still 44 is one of them :)
 
@HyperNeutrino You can still flag them, just in case. Dismissing a single flag or 100 flags on the same post is the same amount of work. You either validate them all or dismiss them all.
 
Ah I see. Okay.
 
I miss Helka's challenges :(
@HyperNeutrino JHT?
 
4:39 PM
@Tobi did u get ur thing working?
 
4:52 PM
0
Q: Cardinal Code Challenge

CzarMattTask You're in charge of making a compass, of sorts. Imagine your source code as the compass "needle" where running at different orientations produces distinct output. Supported source code orientations are North, East, South, and West. Example Let's say you have source code: ABCD J K WXYZ...

 
This is my first CnR challenge, how does it look?
3
A: Sandbox for Proposed Challenges

MD XFHello, World! (CnR) cops-and-robbers decision-problem code-golf 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 exactly as shown above. Input may be taken via standa...

 
it looks like text
words everywhere
 
ಠ_ಠ
2
A: A Room Of Mirrors

NeilCharcoal, 55 bytes BNNJNN↷⎇⁼δ/⎇∧⁻⁻θ¹ζIε⁷I3⎇∧IζIε⁵I1PψW¬℅KK«¹F³¿∧κ℅KK«↷κ¶↷κ Try it online! Link is to verbose version of code.

 
@MDXF i friggin knew it
4
Q: Cardinal Code Challenge

CzarMattTask You're in charge of making a compass, of sorts. Imagine your source code as the compass "needle" where running at different orientations produces distinct output. Supported source code orientations are North, East, South, and West. Example Let's say you have source code: ABCD J K WXYZ...

i'm probably missing it, but does the question say that you have to output a different character?
 
5:16 PM
@Dennis abuuuuuse :p
(unless you want to delete spam posts as community or something)
@DJMcMayhem woah
 
@Poke poke :P
 
hello
 
0
Q: Is it a new highscore?

P. KtinosChallenge: In the language of your choice, write a program that generates a leaderboard with random scores and outputs it, then take a new score as input and check if it can be placed in the leaderboard, and output which place it is in. Specifications: You must generate a list of 50 "random" ...

 
@EriktheOutgolfer That can't really be avoided. The only proper way to delete a post as spam is to raise a spam flag, and a mod's spam flag is binding.
 
only community can delete posts as spam or offensive?
 
5:25 PM
Hey, we could set up a gang for close-voting/spam-deleting, like SOCVR :P
 
@MDXF umm, no
 
@MDXF at that point just set up bots :P
 
I was joking btw :P
I think gang close/delete-voting is as bad as up/down-voting rings and serial voting
gtg o/
 
What's it called if a language's integers can be arbitrarily large? Infinitely precise integers? Infinitely large integers? Arbitrary integers?
 
arbitrarily precise
 
5:31 PM
thank-you! I couldn't come up with the term.
 
;-; challenges that are impossible in practical languages
 
Ok this is ridiculous
When I put a puts call in my code, when I remove it it works
 
your code is putsist
 
0	 	1	 	10	 	63	 	324	 	1485
 	1	 	9	 	53	 	261	 	1161
 	 	8	 	44	 	208	 	900
 	 	 	36	 	164	 	692
 	 	 	 	128	 	528
 	 	 	 	 	400
 
cmc?
 
5:35 PM
the top line is the sequence 0 1 10 63 324 1485
the left side is the sequence 0 1 8 36 128 400
the triangle is computed by repeated difference
the top line is the binomial transform of the left side
CMC: binomial transform
 
@totallyhuman Every challenge that can be done in practical languages can (technically) be done in estoric ones.
 
@ppperry yes but i'm talking about the other way around
 
the reverse is true, too
 
not necessarily
 
(with the exception of unimplementable languages)
 
5:37 PM
Write a cubically quine then
 
4
Q: Cardinal Code Challenge

CzarMattTask You're in charge of making a compass, of sorts. Imagine your source code as the compass "needle" where running at different orientations produces distinct output. Supported source code orientations are North, East, South, and West. Example Let's say you have source code: ABCD J K WXYZ...

do that in a practical language
 
Or a Deadfish~ one
 
I guess, the quine is one exception
 
No it's not
There are some more exceptions on this cool site I found the other day
 
@totallyhuman actually it's true, since esoteric languages were made using practical ones
 
5:39 PM
380
Q: Build a digital clock in Conway's Game of Life

Joe Z.Since my Tetris question seems to evade being answered even to this day, I thought I'd create a slightly easier challenge, one that doesn't need any user input. Your task is to build a Game of Life simulation representing a digital clock, which satisfies the following properties: The clock d...

289
Q: Regex that only matches itself

Dylan MadisettiThere are some pretty cool challenges out there involving regex (Self-matching regex, Regex validating regex) This may well be impossible, but is there a regex that will ONLY match itself? NOTE, delimiters must be included: for example /thing/ must match /thing/ and not thing. The only match p...

 
@ppperry * can theorectically be done in esoteric Turing complete ones
 
Yes, but there are turing complete estoric languages
 
why would the quine be one exception?
the quine is not the hardest programming puzzle
 
"Since every Turing complete language has at least one quine, this is guaranteed to eventually return a result." There are some caveats to this. I can easily design a Turing-complete language that cannot output its own source code (consider a language whose source code is written entirely with letters, but which can only output 0s and 1s). Some TC languages don't have traditional output at all. The statement is only true if you define some encoding for arbitrary strings on whatever the language's output is. Then you can always find a program which produces output that encodes the source. — Martin Ender ♦ Jun 1 at 6:41
 
Ok?
 
5:41 PM
(ignore the last sentence of that comment)
 
@totallyhuman I bet it can be done in Perl
 
@AdmBorkBork Perl is pretty much an esolang lol
 
Sure, but it's still a practical language
a good chunk of the web is written or backended in Perl
 
>>> oeis.query([0,1,2,3,4,5,6])
[<Sequence [A007953: Digital sum (i.e., sum of digits) of n; also called digsum(n).]>, <Sequence [A001477: The nonnegative integers.]>, <Sequence [A002113: Palindromes in base 10.]>, <Sequence [A004086: Read n backwards (referred to as R(n) in many sequences).]>...
*scratches head*
 
5:57 PM
@DJMcMayhem I golfed the Brain-Flak down to about half the size. I thought you might want to take a look at it.
 
0
Q: Can these primes make squares?

AdmBorkBorkLet's take a prime number, such as 7. If we square that prime, we get 49. Notice, however, that we can take the decimal expansion of that square and split it so that we also get two or more squares, in this case 4 and 9. Whoa, neat! We can do the same for 13, which turns into 169, or 16 and 9. F...

 
@NewMainPosts Jelly, 9 bytes: oh wait I already posted that lol
 
@totallyhuman Umm, what's different between A002113 and A004086?
oic, nvm, lol
 
@WheatWizard My only regret is that I have but one upvote to give
4
 
@DJMcMayhem that's sad
 
6:08 PM
@DJMcMayhem which answer?
 
@EriktheOutgolfer why'd you delete it?
 
I'd rather post it to the original
 
(not completely the same)
 
3
A: Cardinal Code Challenge

Wheat WizardBrain-Flak, 29 bytes ## # #) (()()())#) #( ( Try it online! Brain-Flak, 38 bytes ###### (# (()()())#))(( #( ## Try it online! Brain-Flak, 41 bytes ##(#####(# (()()())# ##))()(( ####((#)#)# Try it online!

 
6:12 PM
Diggity-dang. Use the sandbox, people. lol
 
that's why sandbox problems are a big deal
 
Speaking of sandbox, is this ready to post?
3
A: Sandbox for Proposed Challenges

MD XFHello, World! (CnR) cops-and-robbers decision-problem code-golf 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 exactly as shown above. Input may be taken via standa...

 
mm a nice combination of words
+1
 
@MDXF Are the robbers trying to guess the input that makes it print Hello World?
 
@AdmBorkBork yep
 
6:16 PM
OK, that's not clearly specified
 
Ah
 
@MDXF Definitely not. The idea is fine, but C&R challenges require waaaaay more detail
 
@DJMcMayhem Oh I pretty much just copied the rules from Will it halt?
 
For example, will it have two threads, or will robbers crack with comments? What will the winner of the robbers be?
Heck for that matter, you don't even describe what a robber should do!
 
Yes editing
 
6:21 PM
Also, FWIW, I think the Your program cannot simply print whatever string it's given is pointless. Sure, a print(input()) submission would be horribly boring, but I don't see any reason to disallow it.
Also, another thing you should describe is What information is revealed, and what information is hidden.
Oh, and one other thing. is not appropriate for this challenge
 
Edited everything except the your program cannot simply print whatever string it's given because you have a point but I don't see any reason not to disallow it
 
@MDXF I don't see any reason to disallow it
that's downvotes' job imo
 
I don't want a bunch of boring submissions
It's a waste of my time and robbers' time
 
You won't get them. I guarantee it
maaaaybe 1 or 2?
 
Fine, I'll put it as a "please don't as it would be really boring"?
 
6:25 PM
better remove it altogether
 
But an answer like that is so mind-numbingly boring and horribly obvious, I can't imagine anyone who understand the challenge trying it
 
@DJMcMayhem newbies
 
@MDXF Even then...
 
such answers would still be invalid btw
 
I'd rather just say "don't do it" (either as a rule or just a please) than DV noobs
 
6:27 PM
You don't have to remove it
 
under the consensus of "serious competitors"
 
It would be kinda like saying for a kolmogorov complexity challenge Please don't submit an answer of print("the answer"). Sure, you don't want anyone to, but not very many people would in the first place, and it's not really worth explicitly disallowing IMO
 
@EriktheOutgolfer Oh okay. Removed
 
@MDXF One more thing you should definitely do. Make sure to disallow answers along these lines:
import some_crypto_library

if super_secure_hash(input()) == ...:
    print("Hello, World!")
 
@DJMcMayhem ah shucks....
 
6:30 PM
better require a unique output for each input
@Maltysen :p
 
@EriktheOutgolfer But then...
import some_crypto_library

i = input()
hash = super_secure_hash(i)
if hash == ...:
    print("Hello, World!")
else:
    print(hash + i)
 
@DJMcMayhem done
 
@DJMcMayhem i was gonna encrypt helloworld with a key and then decrypt it with the input
 
@DJMcMayhem hash isn't unique
 
But hash + i is?
@EriktheOutgolfer You could also do else print(i)
 
6:32 PM
Crypto functions and the like are already a loophole on CnR, but it's good thing to mention it explicitly.
 
@DJMcMayhem no, but multiple things could hash to the "correct" hash. so multiple inputs give hello world
 
@DJMcMayhem boooriiiing
 
@Maltysen Nothing wrong with that.
> Your program must print Hello, World! for at least one input
 
@DJMcMayhem but Eriks proposed rule was that all inputs give unique output, which wouldn't be broken by ur idea because of this
 
@Maltysen not a rule yet though
 
6:35 PM
@MDXF I'd say go more broad. Just ban cryptographic functions in general, rather than just hashing.
Which is (in a good way) more subjective, therefore less open to rules-lawyering. (in a weird way)
 
^
4 mins ago, by Maltysen
@DJMcMayhem i was gonna encrypt helloworld with a key and then decrypt it with the input
 
do we have a challenge to output a leaderboard given a question url?
 
any assembly people in? I am trying to understand what clang is doing in these two examples godbolt.org/g/CXorJP and godbolt.org/g/B27ftV
 
also i just thought of the title "take me to your leader" for that
 
why does it use vmulpd in one but not the other? it seems to forget that it can optimize complex multiplication.. unless I am reading the assembly incorrectly
 
6:43 PM
Yay, my sequence cop submission is safe. Likely because no one else golfs PowerShell.
On an unrelated note, more people should golf PowerShell.
 
True someone should learn SOGL
 
PowerSogl
 
does anyone know how to use python's socket module
 
you're trying to do websockets with builtin library?
 
6:56 PM
I regret that I have but one upvote to give. — Steve-O 4 hours ago
:P
 
CMC: Solve this in 2 lines of Brain-Flak
 
I need to ask some low level challenges to flush out the assembly experts :)
 
Scratch that CMC, its not possible
Or maybe it is
 
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...

 
oh wow that was fast
 
7:04 PM
@WheatWizard no
 
*cleans up sand*
 
@EriktheOutgolfer It is, I have one
(I think, I'm checking now)
 
oh wait...it's not jelly lol
 
I don't have one, but I still think it is possible
 
if source code is like this
(##########)
)##########(
 
7:08 PM
Can anyone do that challenge in Pyth?
 
aw man I thought there was a language named yth
 
what about xth?
 
Come on, don't exaggerate
 
or zth?
or ath? or bth?
 
anyways pls gib feedback on sandbox
and on NSP for being super fast today
 
7:10 PM
@EriktheOutgolfer Is this really necessary?
 
@totallyhuman ಠ_ಠ
 
0
A: List of bounties with no deadline

MD XFSome Cubically things I'm willing to give variable amounts of rep for solving some challenges in Cubically. Quine - 1000 or 1100 rep, see individual post here Print every character your program doesn't have - 200 rep Hello, World! (Every other character) - 200 rep More will be added as I find ...

 
@EriktheOutgolfer Try it online!
And its shorter than any 3 line one I've come up with.
Oh wait that's not what I meant
 
7:14 PM
you have some (()()))()() on the footer...unintentional?
 
That works
@EriktheOutgolfer Yeah I was using the footer as scratch
 
good luck with (()()))( on the footer
@WheatWizard it works O_O
 
@Mr.Xcoder I doubt it because newlines in Pyth print
 
@Maltysen I know. That's why I asked. May be possible with single-line code...
But no...
It is kind of impossible.
 
@Mr.Xcoder but when u rotate it it becomes newlines
 
7:27 PM
@Maltysen Yeah, I figured
 
0
Q: Would I be allowed to use this language?

fejfoThe language Today I was thinking about brainfuck, there are only 8 instructions (+-,.[]<>) these could fit in side 3 bits. So in 3 bytes (24 bits) there could fit 8 instructions. But with normal brainfuck each instruction is a byte. So I wanted to make my own language that compresses brainfuck...

 
my teacher just accused my pseudocode not being pseudo enough >_>
 
@totallyhuman I really wanna write a versatile pseudocode interpreter
 
@totallyhuman >_> Really?
 
@totallyhuman your teacher is subjective :p
 
7:38 PM
VTC totallyhuman's teacher as primarily opinion based.
12
 
Thanks @WheatWizard ... I played around with the comments every which way and the one I posted was the smallest I could find, lol.
 
"this is not really pseudocode Should be more English like"
c'mon
I don't see why my teacher has a problem with it, it looks mostly like python
 
@totallyhuman is this university/college or HS?
 
7:58 PM
HS
 
2
Q: Triangle a number!

Mr. XcoderWe are used to say that we square a number n when we compute n2. We are also used to say we cube a number when we compute n3. That being said, why couldn't we also triangle a number? How to triangle a number? First off, let's pick a number, 53716. Position it in a Parallelogram, whose side len...

 
0
A: List of bounties with no deadline

Wheat Wizard100 rep for beating me in the Cardinal code challenge What it says on the tin. Beat my Brain-Flak answer (in Brain-Flak of course) and I'll give you 100 rep.

 
@Maltysen Post it
 
oh lol its an actual challenge
 
@Maltysen You have my 🍪
 
@Mr.Xcoder ss._sM also works
 
8:18 PM
@Maltysen Let me try to golf that, didn't know ._ existed
I won't succeed, obviously, but...
 
Expected brownie points, instead received cookie. Hmm.
bait-and-switch
 
the brownie is a lie
 
@HyperNeutrino Thanks for the edit.
 
@fergusq thanks, giving a dummy input stream does the trick. Btw, in the parser I've noticed you have try/catch statements. How do they work? (afaik there is no docs for using it in roda-documentation)
 
@Mr.Xcoder no problem :P
 
8:21 PM
@Mr.Xcoder oh wait u can do digit list
as input
 
@Maltysen That's what I was typing right now. Do you read minds?!
 
ss._
 
@Maltysen tfw you realize this isn't some weird emoji
 
lambda n:sum((i+1)*n[-i-1]for i in range(len(n)))
 
@Maltysen Is that Pyth code?
 
8:25 PM
@Mr.Xcoder there's a nice 6 byte one that doesn't use the prefic builtin
s*V_Sl
@HyperNeutrino yeah lol
 
Ah :P
 
@totallyhuman lambda n:sum(-~i*n[-i-1]for i in range(len(n))) for -2 bytes
 
oh shiz nice
1
A: Triangle a number!

totallyhumanPython 2, 48 bytes lambda n:sum(sum(n[:i+1])for i in range(len(n))) Try it online! Takes input as a list of digits. Another cool solution I found (49 bytes): lambda n:sum((i+1)*n[-i-1]for i in range(len(n)))

 
@totallyhuman And ~i instead of -i-1 for -2 bytes
 
>.> stupid bitwise
thanks
 
8:28 PM
@totallyhuman It does not work
I have to go to sleep now, sorry!
 
what doesn't work?
 
Oh sorry
@totallyhuman My mistake
Bye!
 
@ETHproductions Glad I wasn't the only one.
 
Perhaps it doubles as a Pyth program and an emoji response to the previous message
 
8:31 PM
s._.s
they're squiggly arms
 
Ram horns
 
squiggly ram horns
 
@Cowsquack The syntax for try-catch is try do ... catch e ... done. You can raise an exception with the error function: error("a message").
e is a variable that contains an error object (iikka.kapsi.fi/roda/reference/Error.html)
here is an example of the try-catch syntax
 
Does anyone know why this fails to compile?
 
8:50 PM
hey I finally have a good post on meta :)
@StepHen well they do have lord in their display name... lord of the HNQ? :P
9
A: Do we need leaderboards on all challenges?

totallyhumanNot all challenges require leaderboards The reason leaderboards are used at all is to find answers based on byte count, based on language, based on user, etc.. Finding answers is not a big problem on challenges that only have a page's worth of answers or less. However, challenges with over 30 a...

 
@WheatWizard I'm super proud of this one. See any improvements?
 
@totallyhuman Weren't your previous posts good?
 
nope
I had two meta posts, both about fibtraction
a lot of people disagreed
well I don't mean good by good
i mean well-received
 
That people disagree doesn't mean that your posts aren't good, it only means that you have your own opinions, which are as valuable as other opinions.
 
@totallyhuman sorry singular "they" confused the crap out of me, as always
 
9:04 PM
:P
i don't like it much either but it's the best solution
 
I wish the data went further back
It seems to go against people that say genderless he started in the 20th century at least
 
o_O Woah
I have more than half of the stars on the board. :D
(46/79 visible for me)
 
@DJMcMayhem I had half the starred messages yesterday, but they all had one star
 
9:38 PM
tfw the 4 most recently active users aren't the last ones to talk/edit
 
@Mego Can black box functions have side effects?
I'd define a black box functions as pure functions
 
0
A: Sandbox for Proposed Challenges

LordFarquaadI've got a challenge, but I'm not quite sure how to implement it in a way that's on-topic. It's possible this type of question just doesn't mesh with PPCG, but that's what the SandBox is for, right? The gist is that I want a sort implemented lazily. So lazily that you don't actually write one, ...

 
Why'd I only get 2 rep for an upvote?
 
so, what are the questionable results? — philip_0008 12 hours ago
 
9:58 PM
@WheatWizard Rep cap?
 
Nope, haven't hit it yet
Only 170 for the day
asked on the meta
 
could it be upvote + downvotes. with a net upvoteness of 2?
 
Nope, no downvotes on the answer in question
 
but it says "upvote"
 
And also that shows up in the rep chart differently
 
10:06 PM
aw maaan the PPCG vs CR challenge was declined
 
10:20 PM
Hiya, ppcg member here. I think this challenge idea is such a bad one, and am thoroughly happy that you declined. I had thought the alleged "PPCG vs CR" thing had died a while ago, but someone thought it was a good idea to bring up fake hostility again. — Conor O'Brien 1 hour ago
 
i honestly think we're civil enough to avoid any of that
but whatever
maybe i'm overestimating the community
 
this community can't even handle site-related memes, what makes you think they'll handle this civilly?
 
The biggest problem was that it wasn't ready to go when it was announced
 
imo we handled memes fine :P
 
I still don't get why the meme question is deleted
 
10:24 PM
^
 
I feel the moderators should have at least had a discussion before deleting it.
 
the memes there were less than desirable I suppose
 
@ConorO'Brien +1
(I don't have a CR account cant actually +1)
 
lol, thx
 
getting fanatic in a few hours lol
 
10:29 PM
@totallyhuman Congrats! That was my first gold badge.
 
mm i'd say it's the easiest gold badge to get lol
CMC: output ""Hello, World!""
(yes, with the quotes)
 
Electorate might be a bit easier, but that depends on who you ask
I haven't gotten electorate yet myself.
 
IIRC fanatic is the most gotten gold
even if electorate seems easier
 
Is that site specific?
 
i think its global
 
10:41 PM
0
A: Sandbox for Proposed Challenges

SEJPMPolyglot OEIS! code-challenge polyglot sequence Introduction We all know and love the on-line encyclopedia of integer sequences (OEIS). So what if we made an off-line version? Well, that would be kinda too easy, wouldn't it and how would you select a sequence with our standard interface!? No...

 
:o that was quick from the bot
 
@totallyhuman p"Hello, World!" ruby, shorter than default hw :P
 
11:05 PM
o/
 
lol, there's this stock photo of a boat in the ocean and it's described as: "Boat in very large body of water"
 
-1
Q: tail: troll: file truncated

programmer5000Background When you run tail -f file in bash, the file is outputted and then any subsequent appends. However, when you remove something that has already been displayed, tail outputs: tail: nameoffile: file truncated Your Challenge When given an input f, append tail: [value of f]: file trunc...

 
11:27 PM
@NewSandboxedPosts :O nice
 
@NewSandboxedPosts bit confusing but will be a good challenge when it's tailored properly
 
@ASCII-only do u have time to work on VSL today >_<
 
@Downgoat no :(
Like actually no
Have science group work
 
:(
 

« first day (2379 days earlier)      last day (2450 days later) »