« first day (2187 days earlier)      last day (2657 days later) » 
00:00 - 17:0017:00 - 00:00

5:12 PM
@LegionMammal978 Are you still working on Mthmtca? Could it work with Mathics?
 
5:23 PM
Does anyone here know how to alias JS' replace function? I tried r=String.prototype.replace but it doesn't work
 
5:34 PM
3
Q: Guide the Alphabet

carusocomputingGuide the Alphabet Given an array of directions, where the directions are defined as follows: NW N NE W . E SW S SE As indexes (you may use these indices for directions instead of the strings above): 0 1 2 3 . 4 5 6 7 Generate the corresponding alphabet String that represents the d...

 
@KritixiLithos That's because it modifies it in-place
Or at least I thought...
 
> This site is currently in read-only mode; we’ll return with full functionality soon. Follow @StackStatus or visit our status blog for more info.
@quartata So what would be a working alternative?
 
No idea, I don't know any JS
And it appears it isn't in place it's just weird
 
SE is down. :(
 
ninja'd
 
5:38 PM
I can still click the greyed out login button?
 
T_T
 
x="aaz"
"aaz"
String.prototype.replace(x,"a","b")
""
x
"aaz"
x.replace("a","b")
"baz"
x
"aaz"
 
I can still click the greyed out login button?
and now I'm getting 500 errors
 
How will I feed my crippling addiction now?
 
But simply doing r=replace doesn't work, so I tried out String.prototype.replace
Now, for some reason almost every message I post in chat is being repeated twice (I got a timeout and had to cancel it)
 
5:41 PM
@KritixiLithos I think that's clientside only. It's happening with me and I'm not seeing 2 messages from you
 
> We apologize for any inconvenience, but an unexpected error occurred while you were browsing our site. It’s not you, it’s us. This is our fault. Detailed information about this error has automatically been recorded and we have been notified.
 
@KritixiLithos I think that's clientside only. It's happening with me and I'm not seeing 2 messages from you
 
@KritixiLithos Refresh the page. I just saw it and that fixed it.
Though new ones still appear twice.
 
It happened to me, but the timeout stopped me from posting it
 
Think of how many programmer hours have been lost
Think of how many programmer hours have been lost
 
5:42 PM
SE appears to be having problems.
 
@muddyfish Are you all right?
 
@KritixiLithos yes
It means that I should finally get around to doing my maths revision
 
Can anyone else actually get to the PPCG site?
 
Oh well. I guess I'll just have to be productive instead
 
Erm... The site's down.
The network's down.
The Stack Exchange API's down.
 
5:43 PM
:( I just got +10 rep and was about to satisfy my curiosity by seeing what it's from.
 
In this time I might just attempt a GO challenge
 
@DJMcMayhem oh no, not that!!
2
 
... Hello?
 
the horror..
 
Is anybody here?
 
5:44 PM
@wizzwizz4 nope, you're all alone
 
Oh wow. A proper error. In plaintext
 
@wizzwizz4 Can you hear me?
 
I just got a ping.
It keeps echoing my messages, and the second one times out.
 
y'all act like you've never seen se down before
 
That was me
 
5:45 PM
Oh, hello! You've all appeared again! :-)
 
@quartata No really, this is my first time being active when SE went down
 
@aditsu I know, it's pretty much the worst thing I can imagine
 
That SE error message is ugly as hell
 
Aug 7 '15 at 18:38, by aditsu
abandon all work, ye who enter here
2
 
I was just about to bring a tank to a smallest-weapon fight, again
 
5:47 PM
The error page is 500'ing and thus we don't get the pretty error message
 
but SE decided to stop me
 
If this is the end of The Nineteenth Byte...
I'll miss you all. :'-(
 
@wizzwizz4 it was nice knowing you guys
 
@wizzwizz4 What do I do with my life now?
 
NY-SQL02 is locked up, we are moving services over now.
They've found the problem! ;-)
 
5:49 PM
@KritixiLithos not programming, I know that
 
The emergency admin console's up!
"this is fine" still works...
 
I just got logged out of chat :(
 
@wizzwizz4 still down for me
 
@muddyfish The end of the world is nigh!
 
apparently a hard refresh worked
 
5:52 PM
@aditsu No, the emergency admin console.
 
I think I'm going to solve the "Animate tacky light decorations" challenge now
 
This site is currently in read-only mode; we’ll return with full functionality soon
 
All works fine for me
 
@wizzwizz4 ahhh. The console that's never gonna give you up
 
@KritixiLithos You won't be able to submit.
 
5:52 PM
yay
 
It's back!
 
I'm back
 
@muddyfish I doubt it'll ever let you down either.
 
I wasn't logged in and couldn't do so until now
 
@wizzwizz4 yeah, it has an internal error, does it work for you?
 
5:53 PM
@aditsu The Retrocomputing one does.
 
Apparently I have read+write too
now to really get my fastest gun the west
 
We are up in read-only mode, restoring read-write shortly and digging into the root cause.
@muddyfish You have write?
Oh. It's working again!
 
Thanks for linking to a room we can't read :P
 
A write only comment — muddyfish 12 secs ago
 
ah, the site is back
 
5:54 PM
patrickroberts.github.io/bean/… I updated my Bean interpreter over the weekend. It supports programs that don't terminate now. It spawns them in a web worker by clicking the "multithread" option. I also have a "format" option that allows JSON.stringify to pre-process objects and strings before printing them
 
@DJMcMayhem What do you mean? I didn't break the only rule of the secret mod room!
 
I think pretty much everyone knows about TL.
also you didn't purge the revision history anyways
 
Is there a single-byte code page that contains only printable characters? I might look into using that...
 
@PatrickRoberts There is.
 
CP437
 
5:59 PM
I can't remember what it's called - oh, wait... It's that DOS one...
Ninja'd.
 
Is there any difference between:
std::ofstream outputFile;
outputFile.open(filename);
std::ofstream outputFile(filename);
 
The bytecount differs
 
This isn't golf :P
 
But it's all golf.
 
6:02 PM
@DJMcMayhem I suspect the latter is more efficient.
 
Really? Even with stuff like compiler optimizations?
 
@DJMcMayhem I mean, we're talking a tiny tiny tiny tiny difference. But most likely.
 
@KritixiLithos lies! All lies!
 
@KritixiLithos Can I shrink that image please?
 
6:05 PM
@wizzwizz4 Go ahead
 
@KritixiLithos Done! Minified the image.
 
> Image not found
 
I can see it fine
 
@wizzwizz4 Now I can't read what it says
 
@muddyfish Original here.
 
6:07 PM
@DJMcMayhem I removed that news from my feed yesterday, and today yet another "You've shown interest in Golf" appeared >:(
 
@KritixiLithos Which service are you using?
 
Google Now
 
I'm not surprised.
 
I know it can take in two words at once for showing suggestions, like "programming language" but it just disappoints me with showing just "golf"
 
@KritixiLithos It sorts by internal categories. Neither Retrocomputing nor code-golf are on that list.
 
6:11 PM
Ah, that makes sense.
But the one thing I like about it is that it gives "recent updates to a page you visit" giving a link to xkcd showing the latest comic :)
 
@KritixiLithos That's called a feed.
We've had those for decades.
 
Simple, yet useful
 
@quartata you gotta use .call
@KritixiLithos use .bind
 
How exactly?
 
E.g. var f = String.prototype.replace.bind(myString)
or you can use .call as I told quartata for any string
 
6:22 PM
Thanks, but I think I will just use replace since otherwise it is too verbose (I'm trying to golf something)
 
@Downgoat why
 
That looks unholy
 
@KritixiLithos create a strin wih replace
e.g.:
a[b="replace"]()
 
I will be back in a few minutes
 
6:27 PM
anybody knows his way in Coq? (the proof assistant)
 
@PatrickRoberts patrickroberts.github.io/… doesn't work... :-(
 
@wizzwizz4 you can't execute the function inside itself...
 
@PatrickRoberts I noticed.
 
Ugh, I was going to use some small caps in my language until I realized a lot of them look the same as lower case.
 
@BusinessCat Use "fool caps" instead.
 
6:30 PM
What's that?
 
@quartata because classes are not just namespace factory
 
> A sheet of writing or printing paper measuring about 13 by 16 inches.
 
An identity program (one that takes stdin and pipes it straight to stdout) is too long unfortunately: patrickroberts.github.io/bean/…
 
Would this program be shorter?
_.join`
`;
 
no, same length
 
6:37 PM
I was hoping to use them for constants. I guess I can always just use normal capitals.
 
@PatrickRoberts So you're going by encoded length, not source length?
 
correct
 
@PatrickRoberts Aw...
 
Or maybe like what Jelly does with two-symbol constants
 
@Downgoat Thanks a lot :)
 
6:42 PM
@DJMcMayhem you know MATL, right?
 
So all Bean programs require a Bean component and a JS component?
 
@BusinessCat no, it just allows a direct translation from JavaScript to Bean. The top field is just showing the equivalent JavaScript, minus the implicit input and output
 
@ConorO'Brien yup.
Do you have a MATL question?
 
yup
@DJMcMayhem I need to get all permutations of a set of length <N>. (say that its 5) How might I do this? I have Y@ but am thoroughly lost as to how to filter
 
6:48 PM
@ConorO'Brien I'm not sure what you mean. When I do 5:Y@ it works fine for me
 
patrickroberts.github.io/bean/… Here's an example where Bean is actually shorter than the equivalent JavaScript, especially when you consider how the implicit input would be handled in JavaScript.
 
@DJMcMayhem I mean, given an input (say, [1,2,3,4,5,6,7,8,9]). I want all permutations of length N (say 5) from this input.
 
Ah. That's nchoosek
@ConorO'Brien 5XN
 
oh, thanks!
 
7:06 PM
How do we count flags?
How many bytes would -f be?
 
@wizzwizz4 For a moment I thought you were talking about chat flags
 
Either +3 or +1, it's confusing
 
@DJMcMayhem I know that much, but which one?!
 
Is there a meta post for counting flags?
 
20
Q: On "interactive" answers and other special conditions

Jesse MillikanInteractive languages (and related issues) have afflicted me with a bunch of gripes regarding character count and program testing. Clarifying these should help coders in other languages like Mathematica and dc with similar issues. (And will also shut me up about it!) How much action on the user...

 
7:14 PM
@DJMcMayhem one more question: I am trying to find the number of elements in each row that are equal to 2 or 3. I have 2y=w3=+!s but this feel quite long.
how might this be shortened?
 
Hai
 
@ConorO'Brien how about 2/k1=
 
@KritixiLithos If you're interested, I needed the info for this.
 
Or to-2= but that's the same byte count
Oh and s on both of course
 
7:30 PM
Wait, I tought the consensus for flags was 1 byte per flag?
 
@TuxCopter Its 3 bytes for the first flag and 1 for each one after that. Some languages have a flag by default that is not counted thus it is +1 for each flag. It is essentially how many characters the flag adds to the command line.
 
oh ok
 
@DJMcMayhem thanks, this works good. Nice for general pairs of numbers, too
 
... Would a context-free language recogniser be accepted well-received as a challenge?
 
@WheatWizard I've started counting brain flak flags as +1 because it can be added to -f which is standard invocation
 
7:41 PM
@DJMcMayhem I only do that for challenges that take input. For things with no input (Kolmogorov complexity and Quines) I do +3
@SEJPM What do you mean?
 
@WheatWizard you get a context-free grammar and a word and have to decide whether the grammar covers the word, would you (or the community in general) like this as a challenge?
 
how would a quine with a command line argument work? would it have to output the argument? or would it function as normal
 
@SEJPM I would be surprised if it has not already been done. I think it would be a fine challenge
7
Q: Command-line flags in quines

DLoscFor languages that use command-line flags to modify their behavior, these flags are generally added to the byte count. But I don't see a ruling on what to do with command-line flags in quine challenges. I.e. suppose this was a quine: perl -ne 'quine_program'. I see a few options: Output the fla...

 
@WheatWizard damn, my search skills indeed sucked, it already has been done :( codegolf.stackexchange.com/q/7263/55329
 
@WheatWizard oh fantastic, thank you
 
7:51 PM
@ConorO'Brien are you writing a PPCG answer?
 
oh, no. I'm mainly doing this just to learn the language
that is, generating all combinations of 5-card hands and choosing those with two kings and two queens.
sure, there's a closed form, but that's tangential to the experience :P
 
@ConorO'Brien what language are you using?
 
@ConorO'Brien You might have already seen this, but there's matl.suever.net which is better than TIO because it has docs too
 
Arguably, better. ;)
 
8:03 PM
oooo, just had a new challenge idea :) Letting people generate a CYK-Table :) en.wikipedia.org/wiki/CYK_algorithm
 
@DJMcMayhem yeah, was using that, thanks :)
 
8:30 PM
tfw "|" is not a legal character in a URI but works fine in a URL (as far as Java is concerned)
argh
 
When I first read CYK I thought it was CYMK...
 
@BusinessCat :P
aaaand written down :)
 
8:50 PM
@Poke Aren't URL and URI the same thing
 
Anonymous
@Pavel Nope
 
Anonymous
A URL is a type of URI
 
Anonymous
A ISBN is another type of URI
 
@Mego so the URI is the base-class for anything that identifies stuff with text?
 
Anonymous
@SEJPM Essentially yeah. It's the umbrella standard.
 
8:54 PM
yeah there are a ton of URI standards
URL and URN are more common
as is ISBN as Mego pointed out
 
I just checked SO, apparently an ISBN is a kind of URN.
 
0
A: Sandbox for Proposed Challenges

SEJPMCompute the CYK-Table! code-golfgrammars Context-Free Grammars A context-free grammar is a grammar consisting of rules from one variable to a list of variables and symbols. Every string purely consisting of symbols that can be produced using these rules is said to be accepted by the language...

 
Anonymous
@Pavel Which is a type of URI
 
9:09 PM
1
Q: Negative Space Graphs

Wheat WizardTask You will be given a positive integer and you must output a "self-complementary graph" with that many nodes. If you don't know what a self-complimentary graph is the wikipedia article wont help you much so below are two explanations, a technical and a non-technical one. Non-Technical A gr...

 
0
A: Sandbox for Proposed Challenges

carusocomputingPhysical String Length Given the following information: (String) s - A string to be printed. (int) f - The font in which it is to be printed. (int) pt - The size of the font in which it is to be printed in pts (no decimals). Output: The physical length of the string (how many pixels...

 
9:36 PM
If google's homepage (google.com) went down, how long would it take you (personally) to notice?
 
Anonymous
@NathanMerrill I'd probably notice the nuclear war going on outside within a few minutes
 
@NathanMerrill minutes to hours depending on time of day
 
or, better put, if I blocked the url google.com on your computer, how long would it take for you to notice :P
 
Anonymous
@NathanMerrill Instantly
 
@SEJPM really? you visit their homepage that often?
 
9:38 PM
@Mego Same
 
@NathanMerrill I use the search-sidebar tool + it's my start page for FF
 
Anonymous
You'd have to physically be at my computer to make the change, so I'd notice the stranger in my apartment
 
@NathanMerrill until I checked my connection is fine and I used bing to find a "is it down for you too service"
 
Anonymous
And I live in Texas, so I'd ask how you got into my apartment after aiming a gun
 
9:40 PM
@Mego Is it custom built?
Can you actually pull the trigger, or is it just to scare people?
A penguin with a gun is pretty scary...
 
Anonymous
@DJMcMayhem Delete this PII please
 
@DJMcMayhem That's obviously a sketch.
 
Anonymous
@wizzwizz4 Neural interface. Playing FPS games is tricky and expensive.
 
Probably on commission.
 
9:42 PM
@NathanMerrill a few months at least, maybe never.
 
@Mego With a neural interface you'll have great reaction times.
 
@wizzwizz4 It's just a low quality picture, the camera was acting up
 
@TrojanByAccident Oh. :-/
 
Anonymous
It was an Instagram filter
 
9:45 PM
@Mego do most people in Texas actually own guns, or is it just a stereotype?
 
Anonymous
@Pavel Both
 
Anonymous
It's exaggerated, but not by much
 
I live in western Washington, where most people are very much for gun control. My friend's dad own a rifle, and I've noticed people who know that try to avoid him.
 
0
Q: War is peace. Freedom is slavery. Ignorance is strength

Helka HombaAs George Orwell wrote in 1984: War is peaceFreedom is slaveryIgnorance is strength Similarly, today, falsehoods are core presidential beliefs. Write a program or function that takes in one of the six main words from the Orwell quote and outputs its counterpart. Specifically: [input] -> ...

 
@NewMainPosts is this a challenge or a political jab?
 
Anonymous
9:58 PM
@DJMcMayhem Seems like the second. I edited the politics out. Shame on you, @HelkaHomba
 
@Mego insta-rolled-back
 
Anonymous
@HelkaHomba Really? You're going to start an edit war over that? You should know better. PPCG is a place for challenges, not political soapboxing.
 
@DJMcMayhem Both
 
Anonymous
If you want to voice your political opinions, find a more appropriate place than in a challenge.
 
Flagged it.
 
10:02 PM
@ATaco for being political?
 
Entirely.
Taking a jab at current events is fine, but arguing a political view is the realm of a different SE
 
@ATaco I'm not extremely familiar with politics.SE, but I imagine that "arguing a political view" is not appropriate there either.
 
Probably, being a zealot of your political views is rarely acceptable anywhere.
 
@ATaco My only view in that post is that Trump's widely debunked claim makes as much sense as the Orwell phrases.
 
A view that you refuse to remove, one that is not needed.
 
10:12 PM
If you posted that challenge to express that view as opposed to posting a good challenge, then... you shouldn't have posted that challenge...
 
Regardless, I'm not the one to administer judgement. That's up to the mods.
 
@ATaco No! You are welcome to have opinions, use close votes, etc. My view is that democracy is good.
 
Anonymous
@Dennis Thank you for the rollback
 
@HelkaHomba How do you jump from "democracy is good" to the conclusion that "using a PPCG challenge as a platform for my views is a good idea"?
 
@Downgoat ...and?
I mean I'd expect String.prototype.replace to take in the three strings
since it is the method right
 
10:19 PM
@Pavel Mathics? What's that?
 
@MartinEnder Honestly, I posted it in hopes to make more people aware of the voter fraud debate between Trump and (most) of the rest of the government+media, just like I might post about some math topic to make more people aware of that math topic. I realize I'm likening Trump to a dystopian society, but so be it if what he says mirrors a dystopian society.
 
How is raising awareness for a political matter remotely the same as raising awareness of a mathematical topic?
 
Anonymous
@HelkaHomba This is a site for programming challenges, not for raising awareness for a political topic.
 
See, That's a political view that you're sharing. Without that, this challenge is fine. Putting a narrative behind a challenge is fine too, but you're spreading a political opinion.
 
^, ^^, and ^^^
 
10:22 PM
@MartinEnder More people will talk about the matter in either situation. That's how they are the same.
 
Anonymous
Politics shouldn't come into play in PPCG challenges - especially hot-button issues that are only going to lead to controversy and vitriol.
2
 
@HelkaHomba Please keep your challenge free of political statements. Thank you.
13
 
How do content disputes work
 
Anonymous
It's insane to me that this discussion even needs to be had
 
^, At the very least this challenge does seem to have had the view removed. And look, the upvotes come climbing back.
 
That didn't spread a political statement.
Surprisingly, it simply said that politics exist, and used it as a narative.
 
@HelkaHomba That's bipartisan though
 
@HelkaHomba Go out and vote is more of a reminder than a political statement. Go out and vote for X would have been closed immediately.
 
Anonymous
Voting is good. Bashing a political figure is not. End of discussion.
 
Anonymous
Be Nice.
 
10:28 PM
@Mego Bashing a political figure is not good? So regardless of what they say or do, we have to accept it and not criticize? What if the political figure is a dictator advocating genocide?
 
Surely said dictator will reconsider his actions if he realizes he's being criticized in an online chatroom.
10
 
There's nothing wrong with criticizing political figures. Just don't do it as part of a PPCG challenge.
10
 
And especially don't post a PPCG challenge for the sole purpose of criticising political figures. Post good challenges.
14
 
I never said people should, but Mego was saying that no criticism of political figures should ever happen.
 
(I don't even think this is a bad challenge, but Helka explicitly said, he'd rather delete the challenge than remove the criticism.)
 
Anonymous
10:30 PM
@Gareth I never said you have to accept it. Plus, there's a considerable difference between bashing and criticizing. PPCG challenges are not the appropriate place for either.
 
That's obviously absurd.
 
Anonymous
@Gareth You clearly did not read what I said, and definitely did not take the context into account.
 
@Mego Can you add APL to your code page keyboards?
 
@Mego you said, and I quote: "Voting is good. Bashing a political figure is not. End of discussion."
 
Hey @Gareth the second letters of those words almost spells your username
 
Anonymous
10:32 PM
@quartata Probably. Can you get me a reference for the code page(s)?
 
Yeah one second
 
@LegionMammal978 It's essentially a free version of Mathematica, with some features missing. It's like what Octave is to MATLAB.
 
Anonymous
@Gareth within the context of PPCG challenges
 
@Mego PPCG may not be be the place, I concede that, but I was hardly bashing. I was giving attention to a political issue I feel is important: that the US president believes in baseless claims and repeats them to the people.
 
The place to give attention to that is on your Facebook / Twitter feed
 
10:34 PM
You did not need to do that, and it's not the place to do that.
 
Anonymous
@PeterTaylor Exactly. This isn't Facebook/Twitter/Reddit. Keep politics out of challenges.
 
@Timtech I have no idea what you are talking about.
 
2
Q: Output a program that outputs a program

Stewie GriffinChallenge: Write a code that, when executed will output the source code of a second program that can be executed in another language. The second program should output the source code of a third program that can be executed in a third language and so on. The last program should output PPCG with a...

 
@Gareth The six words in the challenge you were discussing
 
@NewMainPosts Hasn't this been done before?
 
10:43 PM
@Timtech I'm not discussing a challenge. The challenge that was tangentially related to the argument spells out aserslgst. I still have no idea what you mean.
 
@TrojanByAccident yes
Let me find it
56
Q: Rube Goldberg Hello World

SteeveDrozFor this golf, you will need to use more than one language. The task A Rube Goldberg machine is a contraption that takes an enormous number of complicated steps in order to execute a very simple task. The goal of this golf is to output Rube Goldberg... but not directly. The machine Your "mach...

different scoring
 
Alright nevermind then, sorry , I was referring to codegolf.stackexchange.com/questions/107937/…
 
@NewMainPosts I dislike questions like this which are only about doing an unbounded amount of work.
The task of outputting a fixed string is trivial and there is only the tedium in doing it in more and more languages.
 
Pinging NewMainPosts is a bit of a waste...
 
@xnor hahahaha that cop answer you linked was great
 
10:46 PM
@ATaco We just do that so others know which post we're referencing
 
:\
 
Can someone give me the value of "PPCG" in bf?
 
[-]
 
11:00 PM
@MartinEnder there goes the evil sheep challenge...
 
wat
@TrojanByAccident +[,.]
 
@MartinEnder @Dennis Can a period be added to the end of the title of codegolf.stackexchange.com/q/107937/26997 to make the 3 title phrases symmetric? I would have done this earlier if I had noticed. Edits I make now are not applied.
 
@wat Haha, very funny. I already got it anyway
 
Or does that fall under the trivial edit rules >.>
 
@HelkaHomba there's a good chance that SE strips periods from the end of titles.
 
11:07 PM
Oh, maybe
Indeed they are, nevermind
 
11:20 PM
I've started a chat room for the derangements question at chat.stackexchange.com/rooms/52408/cyclic-mutual-derangements , although I'm off to bed now so I won't see replies for a few hours.
 
11:31 PM
(actually code related): Tell me when you see it.
 
The heck?
 
Well that's obnoxious
 
@quartata Did you see the eye?
 
No I closed it because I didn't care
 
No? okay
I haven't looked through the full sources yet, but there are weird things going on on that page.
 
11:43 PM
-1
Q: Output programming language name

P. KtinosChallenge: In the programming language of your choice, take no input and output your programming languages name. Fair enough, right? Restrictions: You can't use any character that is included in your programming languages name, in your code. EG, if I wanna use Batch, I must not use chars 'B'...

 
The page is packed with illuminati references. o.o
 
11:59 PM
I have yet to learn a golf language and want to learn one. Any recommendations?
 
@ChristopherPeart Jelly is the golfiest golf language.
 
00:00 - 17:0017:00 - 00:00

« first day (2187 days earlier)      last day (2657 days later) »